@nocobase/client 0.9.2-alpha.2 → 0.9.2-alpha.3

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 (315) hide show
  1. package/es/acl/Configuration/FilterDynamicComponent.d.ts +2 -0
  2. package/es/{schema-component/antd/table-v2/hooks/useUserVariable.js → acl/Configuration/FilterDynamicComponent.js} +32 -4
  3. package/es/acl/Configuration/schemas/scopes.js +3 -0
  4. package/es/application/Application.d.ts +1 -0
  5. package/es/application/Application.js +12 -2
  6. package/es/block-provider/FormFieldProvider.js +9 -1
  7. package/es/block-provider/TableSelectorProvider.js +3 -2
  8. package/es/block-provider/hooks/index.js +18 -13
  9. package/es/board/CardAdder.js +1 -1
  10. package/es/board/ColumnForm.js +4 -4
  11. package/es/board/DefaultColumnHeader.d.ts +1 -1
  12. package/es/board/DefaultColumnHeader.js +6 -6
  13. package/es/collection-manager/CollectionField.js +16 -13
  14. package/es/collection-manager/CollectionManagerProvider.js +10 -2
  15. package/es/collection-manager/Configuration/AddCollectionAction.js +1 -1
  16. package/es/collection-manager/Configuration/CollectionFields.d.ts +2 -0
  17. package/es/collection-manager/Configuration/CollectionFields.js +458 -0
  18. package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -3
  19. package/es/collection-manager/Configuration/ConfigurationTable.js +4 -2
  20. package/es/collection-manager/Configuration/ConfigurationTabs.js +6 -2
  21. package/es/collection-manager/Configuration/EditCollectionAction.js +4 -4
  22. package/es/collection-manager/Configuration/EditFieldAction.js +1 -1
  23. package/es/collection-manager/Configuration/OverridingCollectionField.js +1 -1
  24. package/es/collection-manager/Configuration/schemas/collectionFields.d.ts +2 -0
  25. package/es/collection-manager/Configuration/schemas/collectionFields.js +1 -1
  26. package/es/collection-manager/Configuration/schemas/collections.js +8 -5
  27. package/es/collection-manager/action-hooks.d.ts +2 -1
  28. package/es/collection-manager/action-hooks.js +10 -7
  29. package/es/collection-manager/hooks/useCollectionDataSource.js +2 -2
  30. package/es/collection-manager/hooks/useCollectionManager.d.ts +1 -0
  31. package/es/collection-manager/hooks/useCollectionManager.js +2 -0
  32. package/es/collection-manager/interfaces/checkbox.js +7 -0
  33. package/es/collection-manager/interfaces/checkboxGroup.js +7 -0
  34. package/es/collection-manager/interfaces/components/index.js +1 -1
  35. package/es/collection-manager/interfaces/createdBy.js +5 -1
  36. package/es/collection-manager/interfaces/email.js +7 -0
  37. package/es/collection-manager/interfaces/linkTo.js +6 -0
  38. package/es/collection-manager/interfaces/m2m.js +6 -0
  39. package/es/collection-manager/interfaces/m2o.js +6 -0
  40. package/es/collection-manager/interfaces/multipleSelect.js +10 -0
  41. package/es/collection-manager/interfaces/o2m.js +8 -1
  42. package/es/collection-manager/interfaces/o2o.js +6 -0
  43. package/es/collection-manager/interfaces/percent.js +10 -0
  44. package/es/collection-manager/interfaces/select.js +10 -0
  45. package/es/collection-manager/interfaces/updatedBy.js +5 -1
  46. package/es/collection-manager/types.d.ts +1 -0
  47. package/es/filter-provider/utils.d.ts +8 -3
  48. package/es/filter-provider/utils.js +42 -27
  49. package/es/locale/en_US.d.ts +7 -0
  50. package/es/locale/en_US.js +8 -1
  51. package/es/locale/ja_JP.d.ts +15 -0
  52. package/es/locale/ja_JP.js +17 -2
  53. package/es/locale/pt_BR.d.ts +16 -0
  54. package/es/locale/pt_BR.js +18 -2
  55. package/es/locale/ru_RU.d.ts +15 -0
  56. package/es/locale/ru_RU.js +17 -2
  57. package/es/locale/tr_TR.d.ts +16 -1
  58. package/es/locale/tr_TR.js +18 -3
  59. package/es/locale/zh_CN.d.ts +16 -0
  60. package/es/locale/zh_CN.js +17 -1
  61. package/es/pm/PluginManagerLink.js +5 -3
  62. package/es/pm/index.js +1 -1
  63. package/es/schema-component/antd/action/Action.js +1 -1
  64. package/es/schema-component/antd/association-select/AssociationSelect.js +56 -35
  65. package/es/schema-component/antd/association-select/useServiceOptions.js +3 -2
  66. package/es/schema-component/antd/checkbox/Checkbox.js +4 -3
  67. package/es/schema-component/antd/collection-select/CollectionSelect.d.ts +2 -2
  68. package/es/schema-component/antd/collection-select/CollectionSelect.js +6 -6
  69. package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +3 -0
  70. package/es/schema-component/antd/error-fallback/ErrorFallback.js +47 -0
  71. package/es/schema-component/antd/error-fallback/index.d.ts +1 -0
  72. package/es/schema-component/antd/error-fallback/index.js +1 -0
  73. package/es/schema-component/antd/filter/useFilterActionProps.d.ts +2 -0
  74. package/es/schema-component/antd/filter/useFilterActionProps.js +127 -7
  75. package/es/schema-component/antd/filter/useValues.js +7 -8
  76. package/es/schema-component/antd/form-item/FormItem.d.ts +3 -0
  77. package/es/schema-component/antd/form-item/FormItem.js +81 -16
  78. package/es/schema-component/antd/form-item/SchemaSettingOptions.js +2 -3
  79. package/es/schema-component/antd/form-v2/Templates.js +24 -18
  80. package/es/schema-component/antd/gantt/components/calendar/top-part-of-calendar.d.ts +1 -1
  81. package/es/schema-component/antd/gantt/components/calendar/top-part-of-calendar.js +3 -3
  82. package/es/schema-component/antd/gantt/components/gantt/style.js +1 -1
  83. package/es/schema-component/antd/gantt/components/grid/grid.d.ts +2 -2
  84. package/es/schema-component/antd/gantt/components/grid/grid.js +2 -2
  85. package/es/schema-component/antd/gantt/components/grid/style.js +1 -1
  86. package/es/schema-component/antd/gantt/components/other/arrow.d.ts +2 -2
  87. package/es/schema-component/antd/gantt/components/other/arrow.js +3 -3
  88. package/es/schema-component/antd/gantt/components/other/horizontal-scroll.d.ts +1 -1
  89. package/es/schema-component/antd/gantt/components/other/horizontal-scroll.js +1 -1
  90. package/es/schema-component/antd/gantt/components/other/style.js +1 -1
  91. package/es/schema-component/antd/gantt/components/task-item/bar/bar-display.d.ts +1 -1
  92. package/es/schema-component/antd/gantt/components/task-item/bar/bar-display.js +1 -1
  93. package/es/schema-component/antd/gantt/components/task-item/bar/bar-small.d.ts +2 -2
  94. package/es/schema-component/antd/gantt/components/task-item/bar/bar-small.js +6 -6
  95. package/es/schema-component/antd/gantt/components/task-item/bar/bar.d.ts +2 -2
  96. package/es/schema-component/antd/gantt/components/task-item/bar/bar.js +9 -9
  97. package/es/schema-component/antd/gantt/components/task-item/bar/style.js +2 -2
  98. package/es/schema-component/antd/gantt/components/task-item/milestone/milestone.d.ts +2 -2
  99. package/es/schema-component/antd/gantt/components/task-item/milestone/milestone.js +2 -2
  100. package/es/schema-component/antd/gantt/types/bar-task.d.ts +2 -2
  101. package/es/schema-component/antd/gantt/types/date-setup.d.ts +1 -1
  102. package/es/schema-component/antd/gantt/types/gantt-task-actions.d.ts +3 -3
  103. package/es/schema-component/antd/gantt/types/public-types.d.ts +1 -1
  104. package/es/schema-component/antd/grid/Grid.js +23 -9
  105. package/es/schema-component/antd/icon-picker/IconPicker.js +1 -1
  106. package/es/schema-component/antd/input/EllipsisWithTooltip.js +21 -2
  107. package/es/schema-component/antd/menu/util.js +0 -1
  108. package/es/schema-component/antd/page/Page.js +10 -2
  109. package/es/schema-component/antd/pagination/index.js +1 -1
  110. package/es/schema-component/antd/record-picker/InputRecordPicker.js +3 -4
  111. package/es/schema-component/antd/record-picker/useFieldNames.js +1 -1
  112. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  113. package/es/schema-component/antd/remote-select/RemoteSelect.js +75 -13
  114. package/es/schema-component/antd/select/ReadPretty.js +5 -2
  115. package/es/schema-component/antd/select/Select.js +3 -9
  116. package/es/schema-component/antd/table/Table.Array.js +2 -2
  117. package/es/schema-component/antd/table-v2/FilterDynamicComponent.js +2 -138
  118. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +6 -5
  119. package/es/schema-component/antd/table-v2/Table.js +2 -2
  120. package/es/schema-component/antd/upload/ReadPretty.js +2 -1
  121. package/es/schema-component/antd/variable/Input.js +11 -5
  122. package/es/schema-component/antd/variable/JSONInput.js +4 -4
  123. package/es/schema-component/antd/variable/TextArea.js +1 -1
  124. package/es/schema-component/antd/variable/Variable.js +3 -3
  125. package/es/schema-component/antd/variable/VariableSelect.js +8 -8
  126. package/es/schema-component/antd/variable/XButton.d.ts +1 -1
  127. package/es/schema-component/antd/variable/XButton.js +4 -4
  128. package/es/schema-component/common/utils/uitls.d.ts +9 -0
  129. package/es/schema-component/common/utils/uitls.js +37 -3
  130. package/es/schema-component/core/DesignableSwitch.js +5 -3
  131. package/es/schema-component/hooks/useComponent.js +2 -2
  132. package/es/schema-component/hooks/useDesignable.js +2 -2
  133. package/es/schema-component/hooks/useFieldTitle.js +4 -4
  134. package/es/schema-initializer/SchemaInitializer.js +2 -2
  135. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.js +14 -7
  136. package/es/schema-initializer/items/DestroyActionInitializer.js +2 -2
  137. package/es/schema-initializer/items/FilterActionInitializer.js +2 -2
  138. package/es/schema-initializer/items/FormBlockInitializer.js +3 -3
  139. package/es/schema-initializer/items/G2PlotInitializer.js +1 -1
  140. package/es/schema-initializer/items/KanbanBlockInitializer.js +9 -9
  141. package/es/schema-initializer/items/MarkdownBlockInitializer.js +3 -3
  142. package/es/schema-initializer/items/PrintActionInitializer.js +2 -2
  143. package/es/schema-initializer/items/RecordAssociationBlockInitializer.js +5 -5
  144. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +9 -9
  145. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +5 -5
  146. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.js +4 -4
  147. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +5 -5
  148. package/es/schema-initializer/items/RefreshActionInitializer.js +2 -2
  149. package/es/schema-initializer/items/SubmitActionInitializer.js +2 -2
  150. package/es/schema-initializer/items/TableActionColumnInitializer.js +2 -2
  151. package/es/schema-initializer/items/TableCollectionFieldInitializer.js +2 -2
  152. package/es/schema-initializer/items/TableSelectorInitializer.js +5 -5
  153. package/es/schema-initializer/items/UpdateActionInitializer.js +2 -2
  154. package/es/schema-initializer/items/UpdateSubmitActionInitializer.js +2 -2
  155. package/es/schema-initializer/items/ViewActionInitializer.js +2 -2
  156. package/es/schema-initializer/utils.js +17 -10
  157. package/es/schema-settings/DataTemplates/FormDataTemplates.js +28 -12
  158. package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +2 -1
  159. package/es/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +9 -2
  160. package/es/schema-settings/LinkageRules/ValueDynamicComponent.js +2 -1
  161. package/es/schema-settings/SchemaSettings.d.ts +4 -1
  162. package/es/schema-settings/SchemaSettings.js +32 -19
  163. package/es/schema-settings/VariableInput/VariableInput.d.ts +13 -0
  164. package/es/schema-settings/VariableInput/VariableInput.js +37 -0
  165. package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +4 -0
  166. package/es/schema-settings/VariableInput/hooks/useDateVariable.js +129 -0
  167. package/es/schema-settings/VariableInput/hooks/useUserVariable.d.ts +5 -0
  168. package/es/schema-settings/VariableInput/hooks/useUserVariable.js +68 -0
  169. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +1 -0
  170. package/es/schema-settings/VariableInput/hooks/useVariableOptions.js +18 -0
  171. package/es/user/VerificationCode.js +7 -8
  172. package/lib/acl/Configuration/FilterDynamicComponent.d.ts +2 -0
  173. package/lib/{schema-component/antd/table-v2/hooks/useUserVariable.js → acl/Configuration/FilterDynamicComponent.js} +32 -4
  174. package/lib/acl/Configuration/schemas/scopes.js +3 -0
  175. package/lib/application/Application.d.ts +1 -0
  176. package/lib/application/Application.js +12 -2
  177. package/lib/block-provider/FormFieldProvider.js +9 -1
  178. package/lib/block-provider/TableSelectorProvider.js +3 -2
  179. package/lib/block-provider/hooks/index.js +17 -12
  180. package/lib/board/CardAdder.js +1 -1
  181. package/lib/board/ColumnForm.js +4 -4
  182. package/lib/board/DefaultColumnHeader.d.ts +1 -1
  183. package/lib/board/DefaultColumnHeader.js +6 -6
  184. package/lib/collection-manager/CollectionField.js +16 -13
  185. package/lib/collection-manager/CollectionManagerProvider.js +10 -2
  186. package/lib/collection-manager/Configuration/AddCollectionAction.js +1 -1
  187. package/lib/collection-manager/Configuration/CollectionFields.d.ts +2 -0
  188. package/lib/collection-manager/Configuration/CollectionFields.js +468 -0
  189. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -3
  190. package/lib/collection-manager/Configuration/ConfigurationTable.js +4 -2
  191. package/lib/collection-manager/Configuration/ConfigurationTabs.js +5 -1
  192. package/lib/collection-manager/Configuration/EditCollectionAction.js +4 -4
  193. package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
  194. package/lib/collection-manager/Configuration/OverridingCollectionField.js +1 -1
  195. package/lib/collection-manager/Configuration/schemas/collectionFields.d.ts +2 -0
  196. package/lib/collection-manager/Configuration/schemas/collectionFields.js +2 -1
  197. package/lib/collection-manager/Configuration/schemas/collections.js +8 -5
  198. package/lib/collection-manager/action-hooks.d.ts +2 -1
  199. package/lib/collection-manager/action-hooks.js +13 -9
  200. package/lib/collection-manager/hooks/useCollectionManager.d.ts +1 -0
  201. package/lib/collection-manager/hooks/useCollectionManager.js +2 -0
  202. package/lib/collection-manager/interfaces/checkbox.js +7 -0
  203. package/lib/collection-manager/interfaces/checkboxGroup.js +7 -0
  204. package/lib/collection-manager/interfaces/components/index.js +1 -1
  205. package/lib/collection-manager/interfaces/createdBy.js +5 -1
  206. package/lib/collection-manager/interfaces/email.js +7 -0
  207. package/lib/collection-manager/interfaces/linkTo.js +6 -0
  208. package/lib/collection-manager/interfaces/m2m.js +6 -0
  209. package/lib/collection-manager/interfaces/m2o.js +6 -0
  210. package/lib/collection-manager/interfaces/multipleSelect.js +10 -0
  211. package/lib/collection-manager/interfaces/o2m.js +8 -1
  212. package/lib/collection-manager/interfaces/o2o.js +6 -0
  213. package/lib/collection-manager/interfaces/percent.js +10 -0
  214. package/lib/collection-manager/interfaces/select.js +10 -0
  215. package/lib/collection-manager/interfaces/updatedBy.js +5 -1
  216. package/lib/collection-manager/types.d.ts +1 -0
  217. package/lib/filter-provider/utils.d.ts +8 -3
  218. package/lib/filter-provider/utils.js +44 -28
  219. package/lib/locale/en_US.d.ts +7 -0
  220. package/lib/locale/en_US.js +8 -1
  221. package/lib/locale/ja_JP.d.ts +15 -0
  222. package/lib/locale/ja_JP.js +17 -2
  223. package/lib/locale/pt_BR.d.ts +16 -0
  224. package/lib/locale/pt_BR.js +18 -2
  225. package/lib/locale/ru_RU.d.ts +15 -0
  226. package/lib/locale/ru_RU.js +17 -2
  227. package/lib/locale/tr_TR.d.ts +16 -1
  228. package/lib/locale/tr_TR.js +18 -3
  229. package/lib/locale/zh_CN.d.ts +16 -0
  230. package/lib/locale/zh_CN.js +17 -1
  231. package/lib/pm/PluginManagerLink.js +4 -2
  232. package/lib/pm/index.js +1 -1
  233. package/lib/schema-component/antd/action/Action.js +1 -1
  234. package/lib/schema-component/antd/association-select/AssociationSelect.js +55 -34
  235. package/lib/schema-component/antd/association-select/useServiceOptions.js +3 -2
  236. package/lib/schema-component/antd/checkbox/Checkbox.js +4 -3
  237. package/lib/schema-component/antd/collection-select/CollectionSelect.d.ts +2 -2
  238. package/lib/schema-component/antd/error-fallback/ErrorFallback.d.ts +3 -0
  239. package/lib/schema-component/antd/error-fallback/ErrorFallback.js +55 -0
  240. package/lib/schema-component/antd/error-fallback/index.d.ts +1 -0
  241. package/lib/schema-component/antd/error-fallback/index.js +16 -0
  242. package/lib/schema-component/antd/filter/useFilterActionProps.d.ts +2 -0
  243. package/lib/schema-component/antd/filter/useFilterActionProps.js +130 -8
  244. package/lib/schema-component/antd/filter/useValues.js +6 -7
  245. package/lib/schema-component/antd/form-item/FormItem.d.ts +3 -0
  246. package/lib/schema-component/antd/form-item/FormItem.js +81 -15
  247. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +1 -2
  248. package/lib/schema-component/antd/form-v2/Templates.js +24 -18
  249. package/lib/schema-component/antd/gantt/components/calendar/top-part-of-calendar.d.ts +1 -1
  250. package/lib/schema-component/antd/gantt/components/calendar/top-part-of-calendar.js +2 -2
  251. package/lib/schema-component/antd/gantt/components/gantt/style.js +1 -1
  252. package/lib/schema-component/antd/gantt/components/grid/grid.d.ts +2 -2
  253. package/lib/schema-component/antd/gantt/components/grid/style.js +1 -1
  254. package/lib/schema-component/antd/gantt/components/other/arrow.d.ts +2 -2
  255. package/lib/schema-component/antd/gantt/components/other/arrow.js +2 -2
  256. package/lib/schema-component/antd/gantt/components/other/horizontal-scroll.d.ts +1 -1
  257. package/lib/schema-component/antd/gantt/components/other/style.js +1 -1
  258. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-display.d.ts +1 -1
  259. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-small.d.ts +2 -2
  260. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-small.js +2 -2
  261. package/lib/schema-component/antd/gantt/components/task-item/bar/bar.d.ts +2 -2
  262. package/lib/schema-component/antd/gantt/components/task-item/bar/bar.js +4 -4
  263. package/lib/schema-component/antd/gantt/components/task-item/bar/style.js +2 -2
  264. package/lib/schema-component/antd/gantt/components/task-item/milestone/milestone.d.ts +2 -2
  265. package/lib/schema-component/antd/gantt/components/task-item/milestone/milestone.js +1 -1
  266. package/lib/schema-component/antd/gantt/types/bar-task.d.ts +2 -2
  267. package/lib/schema-component/antd/gantt/types/date-setup.d.ts +1 -1
  268. package/lib/schema-component/antd/gantt/types/gantt-task-actions.d.ts +3 -3
  269. package/lib/schema-component/antd/gantt/types/public-types.d.ts +1 -1
  270. package/lib/schema-component/antd/grid/Grid.js +23 -9
  271. package/lib/schema-component/antd/input/EllipsisWithTooltip.js +20 -1
  272. package/lib/schema-component/antd/menu/util.js +0 -1
  273. package/lib/schema-component/antd/page/Page.js +9 -1
  274. package/lib/schema-component/antd/pagination/index.js +1 -1
  275. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +3 -4
  276. package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  277. package/lib/schema-component/antd/remote-select/RemoteSelect.js +75 -12
  278. package/lib/schema-component/antd/select/ReadPretty.js +5 -2
  279. package/lib/schema-component/antd/select/Select.js +3 -9
  280. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.js +3 -139
  281. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +6 -5
  282. package/lib/schema-component/antd/table-v2/Table.js +2 -2
  283. package/lib/schema-component/antd/upload/ReadPretty.js +2 -1
  284. package/lib/schema-component/antd/variable/Input.js +10 -4
  285. package/lib/schema-component/antd/variable/JSONInput.js +2 -2
  286. package/lib/schema-component/antd/variable/TextArea.js +1 -1
  287. package/lib/schema-component/antd/variable/VariableSelect.js +4 -4
  288. package/lib/schema-component/antd/variable/XButton.d.ts +1 -1
  289. package/lib/schema-component/antd/variable/XButton.js +1 -1
  290. package/lib/schema-component/common/utils/uitls.d.ts +9 -0
  291. package/lib/schema-component/common/utils/uitls.js +43 -4
  292. package/lib/schema-component/core/DesignableSwitch.js +4 -2
  293. package/lib/schema-component/hooks/useComponent.js +2 -2
  294. package/lib/schema-component/hooks/useDesignable.js +2 -2
  295. package/lib/schema-initializer/SchemaInitializer.js +2 -2
  296. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.js +14 -7
  297. package/lib/schema-initializer/utils.js +17 -10
  298. package/lib/schema-settings/DataTemplates/FormDataTemplates.js +28 -12
  299. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +2 -1
  300. package/lib/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +9 -2
  301. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.js +2 -1
  302. package/lib/schema-settings/SchemaSettings.d.ts +4 -1
  303. package/lib/schema-settings/SchemaSettings.js +37 -21
  304. package/lib/schema-settings/VariableInput/VariableInput.d.ts +13 -0
  305. package/lib/schema-settings/VariableInput/VariableInput.js +47 -0
  306. package/lib/schema-settings/VariableInput/hooks/useDateVariable.d.ts +4 -0
  307. package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +136 -0
  308. package/lib/schema-settings/VariableInput/hooks/useUserVariable.d.ts +5 -0
  309. package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +75 -0
  310. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +1 -0
  311. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +25 -0
  312. package/lib/user/VerificationCode.js +1 -2
  313. package/package.json +6 -5
  314. package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -10
  315. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -10
@@ -173,6 +173,7 @@ export default {
173
173
  "Optional fields": "Campos opcionais",
174
174
  "System fields": "Campos do sistema",
175
175
  "General fields": "Campos gerais",
176
+ "Inherited fields": "Campos herdados",
176
177
  "Parent collection fields": "Campos da coleção pai",
177
178
  "Basic": "Básico",
178
179
  "Single line text": "Texto de uma linha",
@@ -451,11 +452,13 @@ export default {
451
452
  "Dialog": "Diálogo",
452
453
  "Delete action": "Excluir ação",
453
454
  "Custom column title": "Título da coluna personalizado",
455
+ 'Column title': 'cabeçalho da coluna',
454
456
  "Original title: ": "Título original: ",
455
457
  "Delete table column": "Excluir coluna da tabela",
456
458
  "Skip required validation": "Ignorar validação obrigatória",
457
459
  "Form values": "Valores do formulário",
458
- "Fields values": "Valores dos campos",
460
+ "Fields values": "campo removido",
461
+ 'The field has bee deleted': 'O campo foi excluído',
459
462
  "When submitting the following fields, the saved values are": "Ao enviar os seguintes campos, os valores salvos são",
460
463
  "After successful submission": "Depois do envio bem-sucedido",
461
464
  "Then": "Então",
@@ -644,6 +647,19 @@ export default {
644
647
  "Column width": "Largura da coluna",
645
648
  "Sortable": "Classificável",
646
649
  "Enable link": "Habilitar link",
650
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": "Isso provavelmente é um bug interno do NocoBase. Por favor, abra um problema em <1>aqui</1>",
651
+ "Render Failed": "Falha na renderização",
652
+ "Feedback": "Feedback",
653
+ "Try again": "Tente novamente",
647
654
  'Click or drag file to this area to upload': 'Clique ou arraste o arquivo para esta área para fazer o upload',
648
- 'Support for a single or bulk upload, file size should not exceed': 'Suporte para upload único ou em massa, o tamanho do arquivo não deve exceder'
655
+ 'Support for a single or bulk upload, file size should not exceed': 'Suporte para upload único ou em massa, o tamanho do arquivo não deve exceder',
656
+ 'Default title for each record': 'Título padrão para cada registro',
657
+ 'If collection inherits, choose inherited collections as templates': 'Se a coleção herda, escolha as coleções herdadas como modelos',
658
+ 'Select an existing piece of data as the initialization data for the form': 'Selecione um pedaço de dados existente como os dados de inicialização para o formulário',
659
+ 'Only the selected fields will be used as the initialization data for the form': 'Somente os campos selecionados serão usados como dados de inicialização para o formulário',
660
+ 'Template Data': 'Dados do modelo',
661
+ 'Data fields': 'Campos de dados',
662
+ 'Add template': 'Adicionar modelo',
663
+ 'Display data template selector': 'Exibir seletor de modelo de dados',
664
+ 'Form data templates': 'Modelos de dados do formulário'
649
665
  };
@@ -357,11 +357,13 @@ declare const _default: {
357
357
  Dialog: string;
358
358
  "Delete action": string;
359
359
  "Custom column title": string;
360
+ 'Column title': string;
360
361
  "Original title: ": string;
361
362
  "Delete table column": string;
362
363
  "Skip required validation": string;
363
364
  "Form values": string;
364
365
  "Fields values": string;
366
+ 'The field has bee deleted': string;
365
367
  "When submitting the following fields, the saved values are": string;
366
368
  "After successful submission": string;
367
369
  Then: string;
@@ -499,7 +501,20 @@ declare const _default: {
499
501
  'Single select and radio fields can be used as the grouping field': string;
500
502
  'Sign up successfully, and automatically jump to the sign in page': string;
501
503
  "Search and select collection": string;
504
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": string;
505
+ "Render Failed": string;
506
+ Feedback: string;
507
+ "Try again": string;
502
508
  'Click or drag file to this area to upload': string;
503
509
  'Support for a single or bulk upload, file size should not exceed': string;
510
+ 'Default title for each record': string;
511
+ 'If collection inherits, choose inherited collections as templates': string;
512
+ 'Select an existing piece of data as the initialization data for the form': string;
513
+ 'Only the selected fields will be used as the initialization data for the form': string;
514
+ 'Template Data': string;
515
+ 'Data fields': string;
516
+ 'Add template': string;
517
+ 'Display data template selector': string;
518
+ 'Form data templates': string;
504
519
  };
505
520
  export default _default;
@@ -357,11 +357,13 @@ export default {
357
357
  "Dialog": "Диалог",
358
358
  "Delete action": "Удалить действие",
359
359
  "Custom column title": "Пользовательский заголовок колонки",
360
+ 'Column title': 'заголовок столбца',
360
361
  "Original title: ": "Заголовок по умолчанию: ",
361
362
  "Delete table column": "Удалить колонку таблицы",
362
363
  "Skip required validation": "Пропустить обязатеьную проверку",
363
364
  "Form values": "Значения формы",
364
365
  "Fields values": "Значения полей",
366
+ 'The field has bee deleted': 'Поле было удалено',
365
367
  "When submitting the following fields, the saved values are": "При отправке следующих полей, сохраненные значения такие",
366
368
  "After successful submission": "После удачной отправки",
367
369
  "Then": "Затем",
@@ -498,7 +500,20 @@ export default {
498
500
  "Print": "Печать",
499
501
  'Single select and radio fields can be used as the grouping field': 'Одиночное поле выбора и радиополя могут использоваться в качестве поля группировки',
500
502
  'Sign up successfully, and automatically jump to the sign in page': 'Зарегистрируйтесь успешно и автоматически перейдете на страницу входа',
501
- "Search and select collection": "Search and select collection",
503
+ "Search and select collection": "Поиск и выбор коллекции",
504
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": "Это, вероятно, ошибка внутреннего устройства NocoBase. Пожалуйста, откройте проблему <1>здесь</1>",
505
+ "Render Failed": "Ошибка рендеринга",
506
+ "Feedback": "Обратная связь",
507
+ "Try again": "Попробуйте еще раз",
502
508
  'Click or drag file to this area to upload': "Нажмите или перетащите файл в эту область, чтобы загрузить",
503
- 'Support for a single or bulk upload, file size should not exceed': "Поддержка одиночной или массовой загрузки, размер файла не должен превышать"
509
+ 'Support for a single or bulk upload, file size should not exceed': "Поддержка одиночной или массовой загрузки, размер файла не должен превышать",
510
+ 'Default title for each record': "Заголовок по умолчанию для каждой записи",
511
+ 'If collection inherits, choose inherited collections as templates': "Если коллекция наследуется, выберите наследуемые коллекции в качестве шаблонов",
512
+ 'Select an existing piece of data as the initialization data for the form': "Выберите существующие данные в качестве исходных данных для формы",
513
+ 'Only the selected fields will be used as the initialization data for the form': "Только выбранные поля будут использоваться в качестве исходных данных для формы",
514
+ 'Template Data': "Шаблон данных",
515
+ 'Data fields': "Поля данных",
516
+ 'Add template': "Добавить шаблон",
517
+ 'Display data template selector': "Отображать селектор шаблона данных",
518
+ 'Form data templates': "Шаблоны данных формы"
504
519
  };
@@ -174,6 +174,7 @@ declare const _default: {
174
174
  "Field display name": string;
175
175
  "Field type": string;
176
176
  "Field interface": string;
177
+ "Title field": string;
177
178
  "Date format": string;
178
179
  "Year/Month/Day": string;
179
180
  "Year-Month-Day": string;
@@ -273,7 +274,6 @@ declare const _default: {
273
274
  "Allow linking to multiple records": string;
274
275
  "Allow uploading multiple files": string;
275
276
  "Configure calendar": string;
276
- "Title field": string;
277
277
  "Start date field": string;
278
278
  "End date field": string;
279
279
  Navigate: string;
@@ -356,11 +356,13 @@ declare const _default: {
356
356
  Dialog: string;
357
357
  "Delete action": string;
358
358
  "Custom column title": string;
359
+ 'Column title': string;
359
360
  "Original title: ": string;
360
361
  "Delete table column": string;
361
362
  "Skip required validation": string;
362
363
  "Form values": string;
363
364
  "Fields values": string;
365
+ 'The field has bee deleted': string;
364
366
  "When submitting the following fields, the saved values are": string;
365
367
  "After successful submission": string;
366
368
  Then: string;
@@ -498,7 +500,20 @@ declare const _default: {
498
500
  'Single select and radio fields can be used as the grouping field': string;
499
501
  'Sign up successfully, and automatically jump to the sign in page': string;
500
502
  "Search and select collection": string;
503
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": string;
504
+ "Render Failed": string;
505
+ Feedback: string;
506
+ "Try again": string;
501
507
  'Click or drag file to this area to upload': string;
502
508
  'Support for a single or bulk upload, file size should not exceed': string;
509
+ 'Default title for each record': string;
510
+ 'If collection inherits, choose inherited collections as templates': string;
511
+ 'Select an existing piece of data as the initialization data for the form': string;
512
+ 'Only the selected fields will be used as the initialization data for the form': string;
513
+ 'Template Data': string;
514
+ 'Data fields': string;
515
+ 'Add template': string;
516
+ 'Display data template selector': string;
517
+ 'Form data templates': string;
503
518
  };
504
519
  export default _default;
@@ -174,6 +174,7 @@ export default {
174
174
  "Field display name": "Alan görünen adı",
175
175
  "Field type": "Alan türü",
176
176
  "Field interface": "Alan arayüzü",
177
+ "Title field": "Başlık alanı",
177
178
  "Date format": "Tarih formatı",
178
179
  "Year/Month/Day": "Yıl/Ay/Gün",
179
180
  "Year-Month-Day": "Yıl-Ay-Gün",
@@ -273,7 +274,6 @@ export default {
273
274
  "Allow linking to multiple records": "Birden çok kayda bağlanmaya izin ver",
274
275
  "Allow uploading multiple files": "Birden çok dosya yüklemeye izin ver",
275
276
  "Configure calendar": "Takvimi yapılandır",
276
- "Title field": "Başlık alanı",
277
277
  "Start date field": "Başlangıç tarihi alanı",
278
278
  "End date field": "Bitiş tarihi alanı",
279
279
  "Navigate": "Navigate",
@@ -356,11 +356,13 @@ export default {
356
356
  "Dialog": "Pencere",
357
357
  "Delete action": "İşlemi sil",
358
358
  "Custom column title": "Özel sütun başlığı",
359
+ 'Column title': 'Sütun başlığı',
359
360
  "Original title: ": "Orjinal başlık: ",
360
361
  "Delete table column": "Tablo sütununu sil",
361
362
  "Skip required validation": "Zorunlu alan kontrollerini atla",
362
363
  "Form values": "Form değerleri",
363
364
  "Fields values": "Alanların değerleri",
365
+ 'The field has bee deleted': 'Alan silindi',
364
366
  "When submitting the following fields, the saved values are": "Aşağıdaki alanlar gönderilirken kaydedilen değerler",
365
367
  "After successful submission": "Başarılı gönderimden sonra",
366
368
  "Then": "Then",
@@ -497,7 +499,20 @@ export default {
497
499
  "Print": "Yazdır",
498
500
  'Single select and radio fields can be used as the grouping field': 'Gruplama alanı olarak tek seçim ve radyo alanları kullanılabilir',
499
501
  'Sign up successfully, and automatically jump to the sign in page': 'Başarılı bir şekilde kaydolun ve otomatik olarak oturum açma sayfasına geçin',
500
- "Search and select collection": "Search and select collection",
502
+ "Search and select collection": "Koleksiyon ara ve seç",
503
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": "Bu, NocoBase iç işlevleri hatası olabilir. Lütfen <1>burada</1> bir sorun açın",
504
+ "Render Failed": "Oluşturma başarısız",
505
+ "Feedback": "Geri bildirim",
506
+ "Try again": "Tekrar dene",
501
507
  'Click or drag file to this area to upload': "Dosyayı yüklemek için buraya tıklayın veya sürükleyin",
502
- 'Support for a single or bulk upload, file size should not exceed': "Tek veya toplu yükleme destekler, dosya boyutu aşmamalıdır"
508
+ 'Support for a single or bulk upload, file size should not exceed': "Tek veya toplu yükleme destekler, dosya boyutu aşmamalıdır",
509
+ 'Default title for each record': "Her kayıt için varsayılan başlık",
510
+ 'If collection inherits, choose inherited collections as templates': "Koleksiyon miras alırsa, kalıtılan koleksiyonları şablon olarak seçin",
511
+ 'Select an existing piece of data as the initialization data for the form': 'Formun başlangıç ​​verileri olarak mevcut bir veri parçasını seçin',
512
+ 'Only the selected fields will be used as the initialization data for the form': 'Yalnızca seçilen alanlar, formun başlangıç ​​verileri olarak kullanılacaktır',
513
+ 'Template Data': 'Şablon Verisi',
514
+ 'Data fields': 'Veri alanları',
515
+ 'Add template': 'Şablon ekle',
516
+ 'Display data template selector': 'Veri şablonu seçicisini görüntüle',
517
+ 'Form data templates': 'Form veri şablonları'
503
518
  };
@@ -224,6 +224,7 @@ declare const _default: {
224
224
  "Optional fields": string;
225
225
  "System fields": string;
226
226
  "General fields": string;
227
+ "Inherited fields": string;
227
228
  "Parent collection fields": string;
228
229
  Basic: string;
229
230
  "Single line text": string;
@@ -509,11 +510,13 @@ declare const _default: {
509
510
  Dialog: string;
510
511
  'Delete action': string;
511
512
  'Custom column title': string;
513
+ 'Column title': string;
512
514
  'Original title: ': string;
513
515
  'Delete table column': string;
514
516
  'Skip required validation': string;
515
517
  'Form values': string;
516
518
  'Fields values': string;
519
+ 'The field has bee deleted': string;
517
520
  'When submitting the following fields, the saved values are': string;
518
521
  'After successful submission': string;
519
522
  Then: string;
@@ -708,7 +711,20 @@ declare const _default: {
708
711
  Theme: string;
709
712
  'Default theme': string;
710
713
  'Compact theme': string;
714
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": string;
715
+ "Render Failed": string;
716
+ Feedback: string;
717
+ "Try again": string;
711
718
  'Click or drag file to this area to upload': string;
712
719
  'Support for a single or bulk upload, file size should not exceed': string;
720
+ 'Default title for each record': string;
721
+ 'If collection inherits, choose inherited collections as templates': string;
722
+ 'Select an existing piece of data as the initialization data for the form': string;
723
+ 'Only the selected fields will be used as the initialization data for the form': string;
724
+ 'Template Data': string;
725
+ 'Data fields': string;
726
+ 'Add template': string;
727
+ 'Display data template selector': string;
728
+ 'Form data templates': string;
713
729
  };
714
730
  export default _default;
@@ -224,6 +224,7 @@ export default {
224
224
  "Optional fields": "可选字段",
225
225
  "System fields": "系统字段",
226
226
  "General fields": "普通字段",
227
+ "Inherited fields": "继承字段",
227
228
  "Parent collection fields": "父表字段",
228
229
  "Basic": "基本类型",
229
230
  "Single line text": "单行文本",
@@ -509,11 +510,13 @@ export default {
509
510
  'Dialog': '对话框',
510
511
  'Delete action': '删除操作',
511
512
  'Custom column title': '自定义列标题',
513
+ 'Column title': '列标题',
512
514
  'Original title: ': '原始标题: ',
513
515
  'Delete table column': '删除列',
514
516
  'Skip required validation': '跳过必填校验',
515
517
  'Form values': '表单值',
516
518
  'Fields values': '字段值',
519
+ 'The field has bee deleted': '字段已删除',
517
520
  'When submitting the following fields, the saved values are': '提交以下字段时,保存的值为',
518
521
  'After successful submission': '提交成功后',
519
522
  'Then': '然后',
@@ -709,6 +712,19 @@ export default {
709
712
  'Theme': '主题',
710
713
  'Default theme': '默认主题',
711
714
  'Compact theme': '紧凑主题',
715
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": "这可能是 NocoBase 内部的问题,你可以在<1>这里</1>将该错误反馈给我们,我们会尽快修复",
716
+ "Render Failed": "渲染失败",
717
+ "Feedback": "反馈问题",
718
+ "Try again": "重试一下",
712
719
  'Click or drag file to this area to upload': '点击或拖拽文件到此区域上传',
713
- 'Support for a single or bulk upload, file size should not exceed': '支持单个或批量上传,文件大小不能超过'
720
+ 'Support for a single or bulk upload, file size should not exceed': '支持单个或批量上传,文件大小不能超过',
721
+ 'Default title for each record': '用作数据的默认标题',
722
+ 'If collection inherits, choose inherited collections as templates': '当前表有继承关系时,可选择继承链路上的表作为模板来源',
723
+ 'Select an existing piece of data as the initialization data for the form': '选择一条已有的数据作为表单的初始化数据',
724
+ 'Only the selected fields will be used as the initialization data for the form': '仅选择的字段才会作为表单的初始化数据',
725
+ 'Template Data': '模板数据',
726
+ 'Data fields': '数据字段',
727
+ 'Add template': '添加模板',
728
+ 'Display data template selector': '显示数据模板选择框',
729
+ 'Form data templates': '表单数据模板'
714
730
  };
@@ -11,7 +11,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
11
11
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
12
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
13
  import { ApiOutlined, SettingOutlined } from '@ant-design/icons';
14
- import { Button, Dropdown, Menu } from 'antd';
14
+ import { Button, Dropdown, Menu, Tooltip } from 'antd';
15
15
  import React, { useContext, useState } from 'react';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { useHistory } from 'react-router-dom';
@@ -22,13 +22,15 @@ export var PluginManagerLink = function PluginManagerLink() {
22
22
  var _useTranslation = useTranslation(),
23
23
  t = _useTranslation.t;
24
24
  var history = useHistory();
25
- return /*#__PURE__*/React.createElement(Button, {
25
+ return /*#__PURE__*/React.createElement(Tooltip, {
26
+ title: t('Plugin manager')
27
+ }, /*#__PURE__*/React.createElement(Button, {
26
28
  icon: /*#__PURE__*/React.createElement(ApiOutlined, null),
27
29
  title: t('Plugin manager'),
28
30
  onClick: function onClick() {
29
31
  history.push('/admin/pm/list');
30
32
  }
31
- });
33
+ }));
32
34
  };
33
35
  var getBookmarkTabs = function getBookmarkTabs(data) {
34
36
  var bookmarkTabs = [];
package/es/pm/index.js CHANGED
@@ -140,7 +140,7 @@ var PluginTable = function PluginTable(props) {
140
140
  case 0:
141
141
  checked = !data.enabled;
142
142
  Modal.warn({
143
- title: checked ? t('Plugin staring') : t('Plugin stopping'),
143
+ title: checked ? t('Plugin starting') : t('Plugin stopping'),
144
144
  content: t('The application is reloading, please do not close the page.'),
145
145
  okButtonProps: {
146
146
  style: {
@@ -70,7 +70,7 @@ export var Action = observer(function (props) {
70
70
  var values = useRecord();
71
71
  var designerProps = fieldSchema['x-designer-props'];
72
72
  var openMode = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : _fieldSchema$xCompon['openMode'];
73
- var disabled = form.disabled || field.disabled;
73
+ var disabled = form.disabled || field.disabled || props.disabled;
74
74
  var openSize = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon2 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon2 === void 0 ? void 0 : _fieldSchema$xCompon2['openSize'];
75
75
  var linkageRules = (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-linkage-rules']) || [];
76
76
  var _useDesignable = useDesignable(),