@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
@@ -6,14 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.collectionTableSchema = exports.collectionSchema = exports.collectionCategorySchema = exports.collectionCategoryEditSchema = exports.collection = void 0;
8
8
  var _react = require("@formily/react");
9
- var _antd = require("antd");
10
9
  var _shared = require("@formily/shared");
10
+ var _antd = require("antd");
11
11
  var _reactI18next = require("react-i18next");
12
12
  var _apiClient = require("../../../api-client");
13
13
  var _i18n = require("../../../i18n");
14
- var _CollectionTemplate = require("../components/CollectionTemplate");
15
14
  var _CollectionCategory = require("../components/CollectionCategory");
16
- var _collectionFields = require("./collectionFields");
15
+ var _CollectionTemplate = require("../components/CollectionTemplate");
17
16
  var _properties;
18
17
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
18
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
@@ -279,7 +278,8 @@ var collectionTableSchema = {
279
278
  type: 'void',
280
279
  'x-component': 'Action.Drawer',
281
280
  'x-component-props': {
282
- destroyOnClose: true
281
+ destroyOnClose: true,
282
+ width: '70%'
283
283
  },
284
284
  'x-reactions': function xReactions(field) {
285
285
  var i = field.path.segments[1];
@@ -290,7 +290,10 @@ var collectionTableSchema = {
290
290
  }
291
291
  },
292
292
  properties: {
293
- collectionFieldSchema: _collectionFields.collectionFieldSchema
293
+ collectionFieldSchema: {
294
+ type: 'void',
295
+ 'x-component': 'CollectionFields'
296
+ }
294
297
  }
295
298
  }
296
299
  }
@@ -101,7 +101,8 @@ export declare const useUpdateActionAndRefreshCM: () => {
101
101
  export declare const useDestroyActionAndRefreshCM: () => {
102
102
  run(): Promise<void>;
103
103
  };
104
- export declare const useDeleteButtonDisabled: () => boolean;
104
+ export declare const useDeleteButtonDisabled: (record?: any) => boolean;
105
+ export declare const isDeleteButtonDisabled: (record?: any) => boolean;
105
106
  export declare const useBulkDestroyActionAndRefreshCM: () => {
106
107
  run(): Promise<void>;
107
108
  };
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.useValuesFromRecord = exports.useValuesFromRA = exports.useUpdateViewAction = exports.useUpdateActionAndRefreshCM = exports.useUpdateAction = exports.useSortFields = exports.useResetFilterAction = exports.useMoveAction = exports.useLinkageCollectionFilterOptions = exports.useKanbanEvents = exports.useFilterDataSource = exports.useFilterActionProps = exports.useFilterAction = exports.useDestroyActionAndRefreshCM = exports.useDestroyAction = exports.useDeleteButtonDisabled = exports.useCreateActionWithoutRefresh = exports.useCreateActionAndRefreshCM = exports.useCreateAction = exports.useCollectionFilterOptions = exports.useChildrenCollections = exports.useCancelAction = exports.useBulkDestroyActionAndRefreshCM = exports.useBulkDestroyAction = void 0;
7
+ exports.useValuesFromRecord = exports.useValuesFromRA = exports.useUpdateViewAction = exports.useUpdateActionAndRefreshCM = exports.useUpdateAction = exports.useSortFields = exports.useResetFilterAction = exports.useMoveAction = exports.useLinkageCollectionFilterOptions = exports.useKanbanEvents = exports.useFilterDataSource = exports.useFilterActionProps = exports.useFilterAction = exports.useDestroyActionAndRefreshCM = exports.useDestroyAction = exports.useDeleteButtonDisabled = exports.useCreateActionWithoutRefresh = exports.useCreateActionAndRefreshCM = exports.useCreateAction = exports.useCollectionFilterOptions = exports.useChildrenCollections = exports.useCancelAction = exports.useBulkDestroyActionAndRefreshCM = exports.useBulkDestroyAction = exports.isDeleteButtonDisabled = void 0;
8
8
  var _react = require("@formily/react");
9
9
  var _antd = require("antd");
10
10
  var _omit = _interopRequireDefault(require("lodash/omit"));
@@ -603,8 +603,7 @@ var useBulkDestroyAction = function useBulkDestroyAction() {
603
603
  setState = _useResourceActionCon7.setState,
604
604
  refresh = _useResourceActionCon7.refresh;
605
605
  var _useResourceContext7 = (0, _ResourceActionProvider.useResourceContext)(),
606
- resource = _useResourceContext7.resource,
607
- targetKey = _useResourceContext7.targetKey;
606
+ resource = _useResourceContext7.resource;
608
607
  return {
609
608
  run: function run() {
610
609
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
@@ -717,14 +716,19 @@ var useDestroyActionAndRefreshCM = function useDestroyActionAndRefreshCM() {
717
716
  };
718
717
  };
719
718
  exports.useDestroyActionAndRefreshCM = useDestroyActionAndRefreshCM;
720
- var useDeleteButtonDisabled = function useDeleteButtonDisabled() {
721
- var _useRecord4 = (0, _recordProvider.useRecord)(),
722
- i = _useRecord4.interface,
723
- _useRecord4$deletable = _useRecord4.deletable,
724
- deletable = _useRecord4$deletable === void 0 ? true : _useRecord4$deletable;
725
- return !deletable || i === 'id';
719
+ var useDeleteButtonDisabled = function useDeleteButtonDisabled(record) {
720
+ var recordFromProvider = (0, _recordProvider.useRecord)();
721
+ return isDeleteButtonDisabled(record || recordFromProvider);
726
722
  };
727
723
  exports.useDeleteButtonDisabled = useDeleteButtonDisabled;
724
+ var isDeleteButtonDisabled = function isDeleteButtonDisabled(record) {
725
+ var _ref4 = record || {},
726
+ i = _ref4.interface,
727
+ _ref4$deletable = _ref4.deletable,
728
+ deletable = _ref4$deletable === void 0 ? true : _ref4$deletable;
729
+ return !deletable || i === 'id';
730
+ };
731
+ exports.isDeleteButtonDisabled = isDeleteButtonDisabled;
728
732
  var useBulkDestroyActionAndRefreshCM = function useBulkDestroyActionAndRefreshCM() {
729
733
  var _useBulkDestroyAction = useBulkDestroyAction(),
730
734
  _run6 = _useBulkDestroyAction.run;
@@ -6,6 +6,7 @@ export declare const useCollectionManager: () => {
6
6
  getInheritCollections: (name: any) => any[];
7
7
  getChildrenCollections: (name: any, isSupportView?: boolean) => any[];
8
8
  refreshCM: () => Promise<void>;
9
+ updateCollection: (collection: any) => void;
9
10
  get(name: string): any;
10
11
  getInheritedFields: (name: any) => any[];
11
12
  getCollectionField: (name: string) => CollectionFieldOptions;
@@ -31,6 +31,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
31
  var useCollectionManager = function useCollectionManager() {
32
32
  var _useContext = (0, _react.useContext)(_context.CollectionManagerContext),
33
33
  _refreshCM = _useContext.refreshCM,
34
+ updateCollection = _useContext.updateCollection,
34
35
  service = _useContext.service,
35
36
  interfaces = _useContext.interfaces,
36
37
  collections = _useContext.collections,
@@ -243,6 +244,7 @@ var useCollectionManager = function useCollectionManager() {
243
244
  refreshCM: function refreshCM() {
244
245
  return _refreshCM === null || _refreshCM === void 0 ? void 0 : _refreshCM();
245
246
  },
247
+ updateCollection: updateCollection,
246
248
  get: function get(name) {
247
249
  return collections === null || collections === void 0 ? void 0 : collections.find(function (collection) {
248
250
  return collection.name === name;
@@ -30,6 +30,13 @@ var checkbox = {
30
30
  properties: _objectSpread({}, _properties.defaultProps),
31
31
  filterable: {
32
32
  operators: _properties.operators.boolean
33
+ },
34
+ schemaInitialize: function schemaInitialize(schema, _ref) {
35
+ var block = _ref.block;
36
+ if (['Table', 'Kanban'].includes(block)) {
37
+ schema['x-component-props'] = schema['x-component-props'] || {};
38
+ schema['x-component-props']['ellipsis'] = true;
39
+ }
33
40
  }
34
41
  };
35
42
  exports.checkbox = checkbox;
@@ -34,6 +34,13 @@ var checkboxGroup = {
34
34
  }),
35
35
  filterable: {
36
36
  operators: _properties.operators.array
37
+ },
38
+ schemaInitialize: function schemaInitialize(schema, _ref) {
39
+ var block = _ref.block;
40
+ if (['Table', 'Kanban'].includes(block)) {
41
+ schema['x-component-props'] = schema['x-component-props'] || {};
42
+ schema['x-component-props']['ellipsis'] = true;
43
+ }
37
44
  }
38
45
  };
39
46
  exports.checkboxGroup = checkboxGroup;
@@ -12,7 +12,7 @@ var TargetKey = function TargetKey() {
12
12
  };
13
13
  exports.TargetKey = TargetKey;
14
14
  var ThroughCollection = function ThroughCollection() {
15
- return /*#__PURE__*/_react.default.createElement("div", null, "Through collection ", /*#__PURE__*/_react.default.createElement(_antd.Switch, {
15
+ return /*#__PURE__*/_react.default.createElement("div", null, "Through collection", ' ', /*#__PURE__*/_react.default.createElement(_antd.Switch, {
16
16
  size: 'small',
17
17
  defaultChecked: true,
18
18
  checkedChildren: "Auto fill",
@@ -61,10 +61,14 @@ var createdBy = {
61
61
  }]
62
62
  },
63
63
  schemaInitialize: function schemaInitialize(schema, _ref) {
64
- var readPretty = _ref.readPretty;
64
+ var block = _ref.block;
65
65
  schema['properties'] = {
66
66
  viewer: (0, _lodash.cloneDeep)(_properties.recordPickerViewer)
67
67
  };
68
+ if (['Table', 'Kanban'].includes(block)) {
69
+ schema['x-component-props'] = schema['x-component-props'] || {};
70
+ schema['x-component-props']['ellipsis'] = true;
71
+ }
68
72
  }
69
73
  };
70
74
  exports.createdBy = createdBy;
@@ -35,6 +35,13 @@ var email = {
35
35
  }),
36
36
  filterable: {
37
37
  operators: _properties.operators.string
38
+ },
39
+ schemaInitialize: function schemaInitialize(schema, _ref) {
40
+ var block = _ref.block;
41
+ if (['Table', 'Kanban'].includes(block)) {
42
+ schema['x-component-props'] = schema['x-component-props'] || {};
43
+ schema['x-component-props']['ellipsis'] = true;
44
+ }
38
45
  }
39
46
  };
40
47
  exports.email = email;
@@ -59,6 +59,12 @@ var linkTo = {
59
59
  var readPretty = _ref.readPretty,
60
60
  block = _ref.block,
61
61
  targetCollection = _ref.targetCollection;
62
+ if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.titleField) && schema['x-component-props']) {
63
+ schema['x-component-props'].fieldNames = schema['x-component-props'].fieldNames || {
64
+ value: 'id'
65
+ };
66
+ schema['x-component-props'].fieldNames.label = targetCollection.titleField;
67
+ }
62
68
  if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) === 'file') {
63
69
  var fieldNames = schema['x-component-props']['fieldNames'] || {
64
70
  label: 'preview',
@@ -59,6 +59,12 @@ var m2m = {
59
59
  var readPretty = _ref.readPretty,
60
60
  block = _ref.block,
61
61
  targetCollection = _ref.targetCollection;
62
+ if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.titleField) && schema['x-component-props']) {
63
+ schema['x-component-props'].fieldNames = schema['x-component-props'].fieldNames || {
64
+ value: 'id'
65
+ };
66
+ schema['x-component-props'].fieldNames.label = targetCollection.titleField;
67
+ }
62
68
  if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) === 'file') {
63
69
  var fieldNames = schema['x-component-props']['fieldNames'] || {
64
70
  label: 'preview',
@@ -58,6 +58,12 @@ var m2o = {
58
58
  var block = _ref.block,
59
59
  readPretty = _ref.readPretty,
60
60
  targetCollection = _ref.targetCollection;
61
+ if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.titleField) && schema['x-component-props']) {
62
+ schema['x-component-props'].fieldNames = schema['x-component-props'].fieldNames || {
63
+ value: 'id'
64
+ };
65
+ schema['x-component-props'].fieldNames.label = targetCollection.titleField;
66
+ }
61
67
  if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) === 'file') {
62
68
  var fieldNames = schema['x-component-props']['fieldNames'] || {
63
69
  label: 'preview',
@@ -38,6 +38,16 @@ var multipleSelect = {
38
38
  }),
39
39
  filterable: {
40
40
  operators: _properties.operators.array
41
+ },
42
+ schemaInitialize: function schemaInitialize(schema, _ref) {
43
+ var block = _ref.block;
44
+ var props = schema['x-component-props'] = schema['x-component-props'] || {};
45
+ props.style = _objectSpread(_objectSpread({}, props.style || {}), {}, {
46
+ width: '100%'
47
+ });
48
+ if (['Table', 'Kanban'].includes(block)) {
49
+ props['ellipsis'] = true;
50
+ }
41
51
  }
42
52
  };
43
53
  exports.multipleSelect = multipleSelect;
@@ -57,7 +57,14 @@ var o2m = {
57
57
  schemaInitialize: function schemaInitialize(schema, _ref) {
58
58
  var field = _ref.field,
59
59
  block = _ref.block,
60
- readPretty = _ref.readPretty;
60
+ readPretty = _ref.readPretty,
61
+ targetCollection = _ref.targetCollection;
62
+ if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.titleField) && schema['x-component-props']) {
63
+ schema['x-component-props'].fieldNames = schema['x-component-props'].fieldNames || {
64
+ value: 'id'
65
+ };
66
+ schema['x-component-props'].fieldNames.label = targetCollection.titleField;
67
+ }
61
68
  if (block === 'Form') {
62
69
  if (schema['x-component'] === 'TableField') {
63
70
  var association = "".concat(field.collectionName, ".").concat(field.name);
@@ -496,6 +496,12 @@ var obo = {
496
496
  // 预览文件时需要的参数
497
497
  schema['x-component-props']['size'] = 'small';
498
498
  }
499
+ if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.titleField) && schema['x-component-props']) {
500
+ schema['x-component-props'].fieldNames = schema['x-component-props'].fieldNames || {
501
+ value: 'id'
502
+ };
503
+ schema['x-component-props'].fieldNames.label = targetCollection.titleField;
504
+ }
499
505
  if ((targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) === 'file') {
500
506
  var fieldNames = schema['x-component-props']['fieldNames'] || {
501
507
  label: 'preview',
@@ -70,6 +70,16 @@ var percent = {
70
70
  }
71
71
  }
72
72
  },
73
+ schemaInitialize: function schemaInitialize(schema, _ref) {
74
+ var field = _ref.field,
75
+ block = _ref.block,
76
+ readPretty = _ref.readPretty,
77
+ action = _ref.action;
78
+ var props = schema['x-component-props'] = schema['x-component-props'] || {};
79
+ schema['x-component-props'].style = _objectSpread(_objectSpread({}, props.style || {}), {}, {
80
+ width: '100%'
81
+ });
82
+ },
73
83
  availableTypes: ['float'],
74
84
  hasDefaultValue: true,
75
85
  properties: _objectSpread(_objectSpread({}, _properties.defaultProps), {}, {
@@ -35,6 +35,16 @@ var select = {
35
35
  }),
36
36
  filterable: {
37
37
  operators: _properties.operators.enumType
38
+ },
39
+ schemaInitialize: function schemaInitialize(schema, _ref) {
40
+ var block = _ref.block;
41
+ var props = schema['x-component-props'] = schema['x-component-props'] || {};
42
+ props.style = _objectSpread(_objectSpread({}, props.style || {}), {}, {
43
+ width: '100%'
44
+ });
45
+ if (['Table', 'Kanban'].includes(block)) {
46
+ props['ellipsis'] = true;
47
+ }
38
48
  }
39
49
  };
40
50
  exports.select = select;
@@ -60,10 +60,14 @@ var updatedBy = {
60
60
  }]
61
61
  },
62
62
  schemaInitialize: function schemaInitialize(schema, _ref) {
63
- var readPretty = _ref.readPretty;
63
+ var block = _ref.block;
64
64
  schema['properties'] = {
65
65
  viewer: (0, _lodash.cloneDeep)(_properties.recordPickerViewer)
66
66
  };
67
+ if (['Table', 'Kanban'].includes(block)) {
68
+ schema['x-component-props'] = schema['x-component-props'] || {};
69
+ schema['x-component-props']['ellipsis'] = true;
70
+ }
67
71
  }
68
72
  };
69
73
  exports.updatedBy = updatedBy;
@@ -5,6 +5,7 @@ export interface CollectionManagerOptions {
5
5
  collections?: any[];
6
6
  templates?: any;
7
7
  refreshCM?: () => Promise<void>;
8
+ updateCollection?: (collection: any) => void;
8
9
  }
9
10
  export interface FieldOptions {
10
11
  type: string;
@@ -1,6 +1,6 @@
1
1
  import { Schema } from '@formily/react';
2
2
  import { FilterTarget } from '../block-provider/hooks';
3
- import { Collection, FieldOptions } from '../collection-manager';
3
+ import { Collection, CollectionFieldOptions, FieldOptions } from '../collection-manager';
4
4
  export declare enum FilterBlockType {
5
5
  FORM = 0,
6
6
  TABLE = 1,
@@ -13,8 +13,12 @@ export declare enum FilterBlockType {
13
13
  * @returns
14
14
  */
15
15
  export declare const useSupportedBlocks: (filterBlockType: FilterBlockType) => import("./FilterProvider").DataBlock[];
16
- export declare const transformToFilter: (values: Record<string, any>, fieldSchema: Schema) => {
17
- $and: Record<string, any>[];
16
+ export declare const transformToFilter: (values: Record<string, any>, fieldSchema: Schema, getCollectionJoinField: (name: string) => CollectionFieldOptions, collectionName: string) => {
17
+ $and: {
18
+ [x: string]: {
19
+ [x: number]: any;
20
+ };
21
+ }[];
18
22
  };
19
23
  export declare const useAssociatedFields: () => FieldOptions[];
20
24
  export declare const isAssocField: (field?: FieldOptions) => boolean;
@@ -25,3 +29,4 @@ export declare const useFilterAPI: () => {
25
29
  /** 调用该方法进行过滤 */
26
30
  doFilter: (value: any, field?: string | ((target: FilterTarget['targets'][0]) => string), operator?: string | ((target: FilterTarget['targets'][0]) => string)) => void;
27
31
  };
32
+ export declare const isInFilterFormBlock: (fieldSchema: Schema) => boolean;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useSupportedBlocks = exports.useFilterAPI = exports.useAssociatedFields = exports.transformToFilter = exports.isSameCollection = exports.isAssocField = exports.FilterBlockType = void 0;
6
+ exports.useSupportedBlocks = exports.useFilterAPI = exports.useAssociatedFields = exports.transformToFilter = exports.isSameCollection = exports.isInFilterFormBlock = exports.isAssocField = exports.FilterBlockType = void 0;
7
7
  var _react = require("@formily/react");
8
8
  var _client = require("@nocobase/utils/client");
9
9
  var _lodash = _interopRequireDefault(require("lodash"));
@@ -64,36 +64,42 @@ var useSupportedBlocks = function useSupportedBlocks(filterBlockType) {
64
64
  });
65
65
  }
66
66
  };
67
- /**
68
- * Recursively flatten an object and generate a query object.
69
- * @param result - The resulting query object.
70
- * @param obj - The object to be flattened and queried.
71
- * @param key - The current key in the object tree.
72
- * @param operators - The operators to use for each field.
73
- * @returns The resulting query object.
74
- */
75
67
  exports.useSupportedBlocks = useSupportedBlocks;
76
- var flattenAndQueryObject = function flattenAndQueryObject(result, obj, key, operators) {
77
- if (!obj) return result;
78
- if (!(0, _client.isPlainObject)(obj)) {
79
- result[key] = _defineProperty({}, operators[key] || '$eq', obj);
80
- } else {
81
- Object.keys(obj).forEach(function (k) {
82
- flattenAndQueryObject(result, obj[k], "".concat(key, ".").concat(k), operators);
83
- });
84
- }
85
- return result;
86
- };
87
- var transformToFilter = function transformToFilter(values, fieldSchema) {
68
+ var transformToFilter = function transformToFilter(values, fieldSchema, getCollectionJoinField, collectionName) {
88
69
  var _findFilterOperators = (0, _SchemaSettingOptions.findFilterOperators)(fieldSchema),
89
70
  operators = _findFilterOperators.operators;
90
- return {
71
+ values = (0, _client.flatten)(values, {
72
+ breakOn: function breakOn(_ref) {
73
+ var value = _ref.value,
74
+ path = _ref.path;
75
+ var collectionField = getCollectionJoinField("".concat(collectionName, ".").concat(path));
76
+ if (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) {
77
+ if (Array.isArray(value)) {
78
+ return true;
79
+ }
80
+ var targetKey = collectionField.targetKey || 'id';
81
+ if (value && value[targetKey] != null) {
82
+ return true;
83
+ }
84
+ }
85
+ return false;
86
+ }
87
+ });
88
+ var result = {
91
89
  $and: Object.keys(values).map(function (key) {
92
- return flattenAndQueryObject({}, values[key], key, operators);
93
- }).filter(function (item) {
94
- return !(0, _client.isEmpty)(item);
95
- })
90
+ var value = _lodash.default.get(values, key);
91
+ var collectionField = getCollectionJoinField("".concat(collectionName, ".").concat(key));
92
+ if (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) {
93
+ value = (0, _client.getValuesByPath)(value, collectionField.targetKey || 'id');
94
+ key = "".concat(key, ".").concat(collectionField.targetKey || 'id');
95
+ }
96
+ if (!value || value.length === 0) {
97
+ return null;
98
+ }
99
+ return _defineProperty({}, key, _defineProperty({}, operators[key] || '$eq', value));
100
+ }).filter(Boolean)
96
101
  };
102
+ return result;
97
103
  };
98
104
  exports.transformToFilter = transformToFilter;
99
105
  var useAssociatedFields = function useAssociatedFields() {
@@ -105,7 +111,7 @@ var useAssociatedFields = function useAssociatedFields() {
105
111
  };
106
112
  exports.useAssociatedFields = useAssociatedFields;
107
113
  var isAssocField = function isAssocField(field) {
108
- return ['o2o', 'oho', 'obo', 'm2o', 'createdBy', 'updatedBy', 'o2m', 'm2m', 'linkTo'].includes(field === null || field === void 0 ? void 0 : field.interface);
114
+ return ['o2o', 'oho', 'obo', 'm2o', 'createdBy', 'updatedBy', 'o2m', 'm2m', 'linkTo', 'chinaRegion'].includes(field === null || field === void 0 ? void 0 : field.interface);
109
115
  };
110
116
  exports.isAssocField = isAssocField;
111
117
  var isSameCollection = function isSameCollection(c1, c2) {
@@ -181,4 +187,14 @@ var useFilterAPI = function useFilterAPI() {
181
187
  doFilter: doFilter
182
188
  };
183
189
  };
184
- exports.useFilterAPI = useFilterAPI;
190
+ exports.useFilterAPI = useFilterAPI;
191
+ var isInFilterFormBlock = function isInFilterFormBlock(fieldSchema) {
192
+ while (fieldSchema) {
193
+ if (fieldSchema['x-filter-targets']) {
194
+ return fieldSchema['x-decorator'] === 'FilterFormBlockProvider';
195
+ }
196
+ fieldSchema = fieldSchema.parent;
197
+ }
198
+ return false;
199
+ };
200
+ exports.isInFilterFormBlock = isInFilterFormBlock;
@@ -213,6 +213,7 @@ declare const _default: {
213
213
  "Optional fields": string;
214
214
  "System fields": string;
215
215
  "General fields": string;
216
+ "Inherited fields": string;
216
217
  "Parent collection fields": string;
217
218
  Basic: string;
218
219
  "Single line text": string;
@@ -491,11 +492,13 @@ declare const _default: {
491
492
  Dialog: string;
492
493
  "Delete action": string;
493
494
  "Custom column title": string;
495
+ 'Column title': string;
494
496
  "Original title: ": string;
495
497
  "Delete table column": string;
496
498
  "Skip required validation": string;
497
499
  "Form values": string;
498
500
  "Fields values": string;
501
+ 'The field has bee deleted': string;
499
502
  "When submitting the following fields, the saved values are": string;
500
503
  "After successful submission": string;
501
504
  Then: string;
@@ -684,5 +687,9 @@ declare const _default: {
684
687
  "Column width": string;
685
688
  Sortable: string;
686
689
  "Enable link": string;
690
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": string;
691
+ "Render Failed": string;
692
+ Feedback: string;
693
+ "Try again": string;
687
694
  };
688
695
  export default _default;
@@ -219,6 +219,7 @@ var _default = {
219
219
  "Optional fields": "Optional fields",
220
220
  "System fields": "System fields",
221
221
  "General fields": "General fields",
222
+ "Inherited fields": "Inherited fields",
222
223
  "Parent collection fields": "Parent collection fields",
223
224
  "Basic": "Basic",
224
225
  "Single line text": "Single line text",
@@ -497,11 +498,13 @@ var _default = {
497
498
  "Dialog": "Dialog",
498
499
  "Delete action": "Delete action",
499
500
  "Custom column title": "Custom column title",
501
+ 'Column title': 'column title',
500
502
  "Original title: ": "Original title: ",
501
503
  "Delete table column": "Delete table column",
502
504
  "Skip required validation": "Skip required validation",
503
505
  "Form values": "Form values",
504
506
  "Fields values": "Fields values",
507
+ 'The field has bee deleted': 'The field has bee deleted',
505
508
  "When submitting the following fields, the saved values are": "When submitting the following fields, the saved values are",
506
509
  "After successful submission": "After successful submission",
507
510
  "Then": "Then",
@@ -689,6 +692,10 @@ var _default = {
689
692
  "UpdatedAt": "Recording a row's last updated user",
690
693
  "Column width": "Column width",
691
694
  "Sortable": "Sortable",
692
- "Enable link": "Enable link"
695
+ "Enable link": "Enable link",
696
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>",
697
+ "Render Failed": "Render Failed",
698
+ "Feedback": "Feedback",
699
+ "Try again": "Try again"
693
700
  };
694
701
  exports.default = _default;
@@ -415,11 +415,13 @@ declare const _default: {
415
415
  Dialog: string;
416
416
  "Delete action": string;
417
417
  "Custom column title": string;
418
+ 'Column title': string;
418
419
  "Original title: ": string;
419
420
  "Delete table column": string;
420
421
  "Skip required validation": string;
421
422
  "Form values": string;
422
423
  "Fields values": string;
424
+ 'The field has bee deleted': string;
423
425
  "When submitting the following fields, the saved values are": string;
424
426
  "After successful submission": string;
425
427
  Then: string;
@@ -591,7 +593,20 @@ declare const _default: {
591
593
  "Error message": string;
592
594
  "Record picker": string;
593
595
  "Search and select collection": string;
596
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": string;
597
+ "Render Failed": string;
598
+ Feedback: string;
599
+ "Try again": string;
594
600
  'Click or drag file to this area to upload': string;
595
601
  'Support for a single or bulk upload, file size should not exceed': string;
602
+ 'Default title for each record': string;
603
+ 'If collection inherits, choose inherited collections as templates': string;
604
+ 'Select an existing piece of data as the initialization data for the form': string;
605
+ 'Only the selected fields will be used as the initialization data for the form': string;
606
+ 'Template Data': string;
607
+ 'Data fields': string;
608
+ 'Add template': string;
609
+ 'Display data template selector': string;
610
+ 'Form data templates': string;
596
611
  };
597
612
  export default _default;
@@ -421,11 +421,13 @@ var _default = {
421
421
  "Dialog": "ダイアログ",
422
422
  "Delete action": "操作を削除",
423
423
  "Custom column title": "カスタムカラムタイトル",
424
+ 'Column title': 'カラムタイトル',
424
425
  "Original title: ": "元のタイトル: ",
425
426
  "Delete table column": "テーブルのカラムを削除",
426
427
  "Skip required validation": "必須のバリデーションをスキップ",
427
428
  "Form values": "フォームの値",
428
429
  "Fields values": "フィールドの値",
430
+ 'The field has bee deleted': 'フィールドが削除されました',
429
431
  "When submitting the following fields, the saved values are": "次のフィールドを送信すると、保存された値は",
430
432
  "After successful submission": "送信が成功した後",
431
433
  "Then": "その後",
@@ -597,8 +599,21 @@ var _default = {
597
599
  "Format": "フォーマット",
598
600
  "Error message": "エラーメッセージ",
599
601
  "Record picker": "レコードピッカー",
600
- "Search and select collection": "Search and select collection",
602
+ "Search and select collection": "コレクションを検索して選択",
603
+ "This is likely a NocoBase internals bug. Please open an issue at <1>here</1>": "これはNocoBaseの内部バグの可能性があります。 <1>こちら</1>で問題を報告してください",
604
+ "Render Failed": "レンダリングに失敗しました",
605
+ "Feedback": "フィードバック",
606
+ "Try again": "再試行",
601
607
  'Click or drag file to this area to upload': 'クリックまたはドラッグしてファイルをアップロード',
602
- 'Support for a single or bulk upload, file size should not exceed': '単一または複数のファイルをアップロードできます。ファイルサイズは'
608
+ 'Support for a single or bulk upload, file size should not exceed': '単一または複数のファイルをアップロードできます。ファイルサイズは',
609
+ 'Default title for each record': '各レコードのデフォルトタイトル',
610
+ 'If collection inherits, choose inherited collections as templates': 'コレクションが継承されている場合、継承されたコレクションをテンプレートとして選択してください',
611
+ 'Select an existing piece of data as the initialization data for the form': '既存のデータを選択して、フォームの初期化データとして使用します',
612
+ 'Only the selected fields will be used as the initialization data for the form': '選択したフィールドのみがフォームの初期化データとして使用されます',
613
+ 'Template Data': 'テンプレートデータ',
614
+ 'Data fields': 'データフィールド',
615
+ 'Add template': 'テンプレートを追加',
616
+ 'Display data template selector': 'データテンプレートセレクターを表示',
617
+ 'Form data templates': 'フォームデータテンプレート'
603
618
  };
604
619
  exports.default = _default;