@nocobase/client 0.9.2-alpha.1 → 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 +8 -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 +8 -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
@@ -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.useSchemaSettings = exports.useDataTemplates = exports.SchemaSettingsProvider = exports.SchemaSettings = void 0;
7
+ exports.useSchemaSettings = exports.useDataTemplates = exports.isSystemField = exports.isShowDefaultValue = exports.isPatternDisabled = exports.SchemaSettingsProvider = exports.SchemaSettings = void 0;
8
8
  var _css = require("@emotion/css");
9
9
  var _antd = require("@formily/antd");
10
10
  var _core = require("@formily/core");
@@ -23,7 +23,6 @@ var _utilts = require("../schema-component/antd/association-filter/utilts");
23
23
  var _schemaTemplates = require("../schema-templates");
24
24
  var _BlockTemplate = require("../schema-templates/BlockTemplate");
25
25
  var _DataTemplates = require("./DataTemplates");
26
- var _EnableChildCollections = require("./EnableChildCollections");
27
26
  var _LinkageRules = require("./LinkageRules");
28
27
  var _actionHooks = require("./LinkageRules/action-hooks");
29
28
  var _templateObject;
@@ -109,7 +108,7 @@ var SchemaSettings = function SchemaSettings(props) {
109
108
  return DropdownMenu;
110
109
  };
111
110
  exports.SchemaSettings = SchemaSettings;
112
- SchemaSettings.Template = function (props) {
111
+ SchemaSettings.Template = function Template(props) {
113
112
  var componentName = props.componentName,
114
113
  collectionName = props.collectionName,
115
114
  resourceName = props.resourceName;
@@ -281,7 +280,7 @@ var findBlockTemplateSchema = function findBlockTemplateSchema(fieldSchema) {
281
280
  return buf;
282
281
  }, null);
283
282
  };
284
- SchemaSettings.FormItemTemplate = function (props) {
283
+ SchemaSettings.FormItemTemplate = function FormItemTemplate(props) {
285
284
  var _props$insertAdjacent = props.insertAdjacentPosition,
286
285
  insertAdjacentPosition = _props$insertAdjacent === void 0 ? 'afterBegin' : _props$insertAdjacent,
287
286
  componentName = props.componentName,
@@ -456,7 +455,7 @@ SchemaSettings.FormItemTemplate = function (props) {
456
455
  }()
457
456
  }, t('Save as block template'));
458
457
  };
459
- SchemaSettings.Item = function (props) {
458
+ SchemaSettings.Item = function Item(props) {
460
459
  var eventKey = props.eventKey;
461
460
  var key = (0, _react2.useMemo)(function () {
462
461
  return (0, _shared.uid)();
@@ -485,7 +484,7 @@ SchemaSettings.SubMenu = function (props) {
485
484
  SchemaSettings.Divider = function (props) {
486
485
  return /*#__PURE__*/_react2.default.createElement(_antd2.Menu.Divider, _objectSpread({}, props));
487
486
  };
488
- SchemaSettings.Remove = function (props) {
487
+ SchemaSettings.Remove = function Remove(props) {
489
488
  var confirm = props.confirm,
490
489
  removeParentsIfNoChildren = props.removeParentsIfNoChildren,
491
490
  breakRemoveOn = props.breakRemoveOn;
@@ -525,7 +524,7 @@ SchemaSettings.Remove = function (props) {
525
524
  }
526
525
  }, t('Delete'));
527
526
  };
528
- SchemaSettings.ConnectDataBlocks = function (props) {
527
+ SchemaSettings.ConnectDataBlocks = function ConnectDataBlocks(props) {
529
528
  var type = props.type,
530
529
  emptyDescription = props.emptyDescription;
531
530
  var fieldSchema = (0, _react.useFieldSchema)();
@@ -650,7 +649,7 @@ SchemaSettings.ConnectDataBlocks = function (props) {
650
649
  image: _antd2.Empty.PRESENTED_IMAGE_SIMPLE
651
650
  }));
652
651
  };
653
- SchemaSettings.SelectItem = function (props) {
652
+ SchemaSettings.SelectItem = function SelectItem(props) {
654
653
  var title = props.title,
655
654
  options = props.options,
656
655
  value = props.value,
@@ -669,11 +668,12 @@ SchemaSettings.SelectItem = function (props) {
669
668
  }
670
669
  _onClick === null || _onClick === void 0 ? void 0 : _onClick.apply(void 0, args);
671
670
  };
671
+ var onMouseEnter = (0, _react2.useCallback)(function () {
672
+ return setOpen(true);
673
+ }, []);
672
674
  // 鼠标 hover 时,打开下拉框
673
675
  var moreProps = openOnHover ? {
674
- onMouseEnter: (0, _react2.useCallback)(function () {
675
- return setOpen(true);
676
- }, []),
676
+ onMouseEnter: onMouseEnter,
677
677
  open: open
678
678
  } : {};
679
679
  return /*#__PURE__*/_react2.default.createElement(SchemaSettings.Item, _objectSpread({}, others), /*#__PURE__*/_react2.default.createElement("div", {
@@ -719,7 +719,7 @@ SchemaSettings.CascaderItem = function (props) {
719
719
  }
720
720
  })));
721
721
  };
722
- SchemaSettings.SwitchItem = function (props) {
722
+ SchemaSettings.SwitchItem = function SwitchItem(props) {
723
723
  var title = props.title,
724
724
  onChange = props.onChange,
725
725
  others = _objectWithoutProperties(props, _excluded5);
@@ -746,7 +746,7 @@ SchemaSettings.SwitchItem = function (props) {
746
746
  }
747
747
  })));
748
748
  };
749
- SchemaSettings.PopupItem = function (props) {
749
+ SchemaSettings.PopupItem = function PopupItem(props) {
750
750
  var schema = props.schema,
751
751
  others = _objectWithoutProperties(props, _excluded6);
752
752
  var _useState7 = (0, _react2.useState)(false),
@@ -897,7 +897,7 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/_react2.default.memo(function (pro
897
897
  schema: schema
898
898
  }))))), document.body));
899
899
  });
900
- SchemaSettings.ModalItem = function (props) {
900
+ SchemaSettings.ModalItem = function ModalItem(props) {
901
901
  var hidden = props.hidden,
902
902
  title = props.title,
903
903
  components = props.components,
@@ -977,7 +977,7 @@ SchemaSettings.ModalItem = function (props) {
977
977
  }()
978
978
  }), props.children || props.title);
979
979
  };
980
- SchemaSettings.BlockTitleItem = function () {
980
+ SchemaSettings.BlockTitleItem = function BlockTitleItem() {
981
981
  var _fieldSchema$xCompon;
982
982
  var field = (0, _react.useField)();
983
983
  var fieldSchema = (0, _react.useFieldSchema)();
@@ -1014,7 +1014,7 @@ SchemaSettings.BlockTitleItem = function () {
1014
1014
  }
1015
1015
  });
1016
1016
  };
1017
- SchemaSettings.DefaultSortingRules = function (props) {
1017
+ SchemaSettings.DefaultSortingRules = function DefaultSortingRules(props) {
1018
1018
  var sort = props.sort,
1019
1019
  sortFields = props.sortFields,
1020
1020
  onSubmit = props.onSubmit;
@@ -1094,7 +1094,7 @@ SchemaSettings.DefaultSortingRules = function (props) {
1094
1094
  onSubmit: onSubmit
1095
1095
  });
1096
1096
  };
1097
- SchemaSettings.LinkageRules = function (props) {
1097
+ SchemaSettings.LinkageRules = function LinkageRules(props) {
1098
1098
  var collectionName = props.collectionName;
1099
1099
  var fieldSchema = (0, _react.useFieldSchema)();
1100
1100
  var _useDesignable3 = (0, _2.useDesignable)(),
@@ -1167,7 +1167,7 @@ var useDataTemplates = function useDataTemplates() {
1167
1167
  };
1168
1168
  };
1169
1169
  exports.useDataTemplates = useDataTemplates;
1170
- SchemaSettings.DataTemplates = function (props) {
1170
+ SchemaSettings.DataTemplates = function DataTemplates(props) {
1171
1171
  var collectionName = props.collectionName;
1172
1172
  var fieldSchema = (0, _react.useFieldSchema)();
1173
1173
  var _useDesignable4 = (0, _2.useDesignable)(),
@@ -1213,7 +1213,7 @@ SchemaSettings.DataTemplates = function (props) {
1213
1213
  }
1214
1214
  });
1215
1215
  };
1216
- SchemaSettings.EnableChildCollections = function (props) {
1216
+ SchemaSettings.EnableChildCollections = function EnableChildCollections(props) {
1217
1217
  var collectionName = props.collectionName;
1218
1218
  var fieldSchema = (0, _react.useFieldSchema)();
1219
1219
  var _useDesignable5 = (0, _2.useDesignable)(),
@@ -1233,7 +1233,7 @@ SchemaSettings.EnableChildCollections = function (props) {
1233
1233
  title: t('Enable child collections'),
1234
1234
  properties: {
1235
1235
  enableChildren: {
1236
- 'x-component': _EnableChildCollections.EnableChildCollections,
1236
+ 'x-component': EnableChildCollections,
1237
1237
  'x-component-props': {
1238
1238
  useProps: function useProps() {
1239
1239
  return {
@@ -1287,4 +1287,20 @@ SchemaSettings.EnableChildCollections = function (props) {
1287
1287
  dn.refresh();
1288
1288
  }
1289
1289
  });
1290
- };
1290
+ };
1291
+ // 是否显示默认值配置项
1292
+ var isShowDefaultValue = function isShowDefaultValue(collectionField, getInterface) {
1293
+ return !['o2o', 'oho', 'obo', 'o2m', 'attachment'].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface) && !isSystemField(collectionField, getInterface);
1294
+ };
1295
+ // 是否是系统字段
1296
+ exports.isShowDefaultValue = isShowDefaultValue;
1297
+ var isSystemField = function isSystemField(collectionField, getInterface) {
1298
+ var i = getInterface === null || getInterface === void 0 ? void 0 : getInterface(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
1299
+ return (i === null || i === void 0 ? void 0 : i.group) === 'systemInfo';
1300
+ };
1301
+ exports.isSystemField = isSystemField;
1302
+ var isPatternDisabled = function isPatternDisabled(fieldSchema) {
1303
+ var _fieldSchema$xCompon2;
1304
+ return (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon2 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon2 === void 0 ? void 0 : _fieldSchema$xCompon2['pattern-disable']) == true;
1305
+ };
1306
+ exports.isPatternDisabled = isPatternDisabled;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ value: any;
4
+ onChange: (value: any) => void;
5
+ collectionName: string;
6
+ renderSchemaComponent?: (props: any) => any;
7
+ style: React.CSSProperties;
8
+ schema: any;
9
+ operator: any;
10
+ children: any;
11
+ };
12
+ export declare const VariableInput: (props: Props) => JSX.Element;
13
+ export {};
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.VariableInput = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _schemaComponent = require("../../schema-component");
10
+ var _useUserVariable = require("./hooks/useUserVariable");
11
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ var VariableInput = function VariableInput(props) {
14
+ var value = props.value,
15
+ onChange = props.onChange,
16
+ RenderSchemaComponent = props.renderSchemaComponent,
17
+ style = props.style,
18
+ schema = props.schema;
19
+ var compile = (0, _schemaComponent.useCompile)();
20
+ var userVariable = (0, _useUserVariable.useUserVariable)({
21
+ schema: schema,
22
+ level: 1
23
+ });
24
+ var scope = (0, _react.useMemo)(function () {
25
+ return [userVariable, compile({
26
+ label: "{{t(\"Date variables\")}}",
27
+ value: '$date',
28
+ key: '$date',
29
+ disabled: schema['x-component'] !== 'DatePicker',
30
+ children: [{
31
+ key: 'now',
32
+ value: 'now',
33
+ label: "{{t(\"Now\")}}"
34
+ }]
35
+ })];
36
+ }, []);
37
+ return /*#__PURE__*/_react.default.createElement(_schemaComponent.Variable.Input, {
38
+ value: value,
39
+ onChange: onChange,
40
+ scope: scope,
41
+ style: style
42
+ }, /*#__PURE__*/_react.default.createElement(RenderSchemaComponent, {
43
+ value: value,
44
+ onChange: onChange
45
+ }));
46
+ };
47
+ exports.VariableInput = VariableInput;
@@ -0,0 +1,4 @@
1
+ export declare const useDateVariable: ({ operator, schema }: {
2
+ operator: any;
3
+ schema: any;
4
+ }) => any;
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useDateVariable = void 0;
7
+ var _schemaComponent = require("../../../schema-component");
8
+ var useDateVariable = function useDateVariable(_ref) {
9
+ var operator = _ref.operator,
10
+ schema = _ref.schema;
11
+ var compile = (0, _schemaComponent.useCompile)();
12
+ var operatorValue = (operator === null || operator === void 0 ? void 0 : operator.value) || '';
13
+ if (!operator || !schema) return null;
14
+ var disabled = !['DatePicker', 'DatePicker.RangePicker'].includes(schema['x-component']);
15
+ var dateOptions = [{
16
+ key: 'now',
17
+ value: 'now',
18
+ label: "{{t(\"Now\")}}",
19
+ disabled: schema['x-component'] !== 'DatePicker' || operatorValue === '$dateBetween'
20
+ }, {
21
+ key: 'yesterday',
22
+ value: 'yesterday',
23
+ label: "{{t(\"Yesterday\")}}",
24
+ disabled: disabled
25
+ }, {
26
+ key: 'today',
27
+ value: 'today',
28
+ label: "{{t(\"Today\")}}",
29
+ disabled: disabled
30
+ }, {
31
+ key: 'tomorrow',
32
+ value: 'tomorrow',
33
+ label: "{{t(\"Tomorrow\")}}",
34
+ disabled: disabled
35
+ }, {
36
+ key: 'lastIsoWeek',
37
+ value: 'lastIsoWeek',
38
+ label: "{{t(\"Last week\")}}",
39
+ disabled: disabled
40
+ }, {
41
+ key: 'thisIsoWeek',
42
+ value: 'thisIsoWeek',
43
+ label: "{{t(\"This week\")}}",
44
+ disabled: disabled
45
+ }, {
46
+ key: 'nextIsoWeek',
47
+ value: 'nextIsoWeek',
48
+ label: "{{t(\"Next week\")}}",
49
+ disabled: disabled
50
+ }, {
51
+ key: 'lastMonth',
52
+ value: 'lastMonth',
53
+ label: "{{t(\"Last month\")}}",
54
+ disabled: disabled
55
+ }, {
56
+ key: 'thisMonth',
57
+ value: 'thisMonth',
58
+ label: "{{t(\"This month\")}}",
59
+ disabled: disabled
60
+ }, {
61
+ key: 'nextMonth',
62
+ value: 'nextMonth',
63
+ label: "{{t(\"Next month\")}}",
64
+ disabled: disabled
65
+ }, {
66
+ key: 'lastQuarter',
67
+ value: 'lastQuarter',
68
+ label: "{{t(\"Last quarter\")}}",
69
+ disabled: disabled
70
+ }, {
71
+ key: 'thisQuarter',
72
+ value: 'thisQuarter',
73
+ label: "{{t(\"This quarter\")}}",
74
+ disabled: disabled
75
+ }, {
76
+ key: 'nextQuarter',
77
+ value: 'nextQuarter',
78
+ label: "{{t(\"Next quarter\")}}",
79
+ disabled: disabled
80
+ }, {
81
+ key: 'lastYear',
82
+ value: 'lastYear',
83
+ label: "{{t(\"Last year\")}}",
84
+ disabled: disabled
85
+ }, {
86
+ key: 'thisYear',
87
+ value: 'thisYear',
88
+ label: "{{t(\"This year\")}}",
89
+ disabled: disabled
90
+ }, {
91
+ key: 'nextYear',
92
+ value: 'nextYear',
93
+ label: "{{t(\"Next year\")}}",
94
+ disabled: disabled
95
+ }, {
96
+ key: 'last7Days',
97
+ value: 'last7Days',
98
+ label: "{{t(\"Last 7 days\")}}",
99
+ disabled: disabled
100
+ }, {
101
+ key: 'next7Days',
102
+ value: 'next7Days',
103
+ label: "{{t(\"Next 7 days\")}}",
104
+ disabled: disabled
105
+ }, {
106
+ key: 'last30Days',
107
+ value: 'last30Days',
108
+ label: "{{t(\"Last 30 days\")}}",
109
+ disabled: disabled
110
+ }, {
111
+ key: 'next30Days',
112
+ value: 'next30Days',
113
+ label: "{{t(\"Next 30 days\")}}",
114
+ disabled: disabled
115
+ }, {
116
+ key: 'last90Days',
117
+ value: 'last90Days',
118
+ label: "{{t(\"Last 90 days\")}}",
119
+ disabled: disabled
120
+ }, {
121
+ key: 'next90Days',
122
+ value: 'next90Days',
123
+ label: "{{t(\"Next 90 days\")}}",
124
+ disabled: disabled
125
+ }];
126
+ return compile({
127
+ label: "{{t(\"Date variables\")}}",
128
+ value: '$date',
129
+ key: '$date',
130
+ disabled: dateOptions.every(function (option) {
131
+ return option.disabled;
132
+ }),
133
+ children: dateOptions
134
+ });
135
+ };
136
+ exports.useDateVariable = useDateVariable;
@@ -0,0 +1,5 @@
1
+ export declare const useUserVariable: ({ operator, schema, level }: {
2
+ operator?: any;
3
+ schema: any;
4
+ level?: number;
5
+ }) => any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useUserVariable = void 0;
7
+ var _react = require("react");
8
+ var _schemaComponent = require("../../../schema-component");
9
+ var getChildren = function getChildren(options, _ref) {
10
+ var schema = _ref.schema,
11
+ operator = _ref.operator,
12
+ maxDepth = _ref.maxDepth,
13
+ _ref$count = _ref.count,
14
+ count = _ref$count === void 0 ? 1 : _ref$count,
15
+ getFilterOptions = _ref.getFilterOptions;
16
+ if (count > maxDepth) {
17
+ return [];
18
+ }
19
+ var result = options.map(function (option) {
20
+ if (option.type !== 'belongsTo' && option.type !== 'hasOne' || !option.target) {
21
+ var _option$schema;
22
+ return {
23
+ key: option.name,
24
+ value: option.name,
25
+ label: option.title,
26
+ // TODO: 现在是通过组件的名称来过滤能够被选择的选项,这样的坏处是不够精确,后续可以优化
27
+ disabled: (schema === null || schema === void 0 ? void 0 : schema['x-component']) !== ((_option$schema = option.schema) === null || _option$schema === void 0 ? void 0 : _option$schema['x-component'])
28
+ };
29
+ }
30
+ var children = getChildren(getFilterOptions(option.target), {
31
+ schema: schema,
32
+ operator: operator,
33
+ maxDepth: maxDepth,
34
+ count: count + 1,
35
+ getFilterOptions: getFilterOptions
36
+ }) || [];
37
+ return {
38
+ key: option.name,
39
+ value: option.name,
40
+ label: option.title,
41
+ children: children,
42
+ disabled: children.every(function (child) {
43
+ return child.disabled;
44
+ })
45
+ };
46
+ });
47
+ return result;
48
+ };
49
+ var useUserVariable = function useUserVariable(_ref2) {
50
+ var operator = _ref2.operator,
51
+ schema = _ref2.schema,
52
+ level = _ref2.level;
53
+ var compile = (0, _schemaComponent.useCompile)();
54
+ var getFilterOptions = (0, _schemaComponent.useGetFilterOptions)();
55
+ var children = (0, _react.useMemo)(function () {
56
+ return getChildren(getFilterOptions('users'), {
57
+ schema: schema,
58
+ operator: operator,
59
+ maxDepth: level || 3,
60
+ getFilterOptions: getFilterOptions
61
+ }) || [];
62
+ }, [operator, schema]);
63
+ return (0, _react.useMemo)(function () {
64
+ return compile({
65
+ label: "{{t(\"Current user\")}}",
66
+ value: '$user',
67
+ key: '$user',
68
+ disabled: children.every(function (option) {
69
+ return option.disabled;
70
+ }),
71
+ children: children
72
+ });
73
+ }, [children]);
74
+ };
75
+ exports.useUserVariable = useUserVariable;
@@ -0,0 +1 @@
1
+ export declare const useVariableOptions: () => any[];
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useVariableOptions = void 0;
7
+ var _useValues2 = require("../../../schema-component/antd/filter/useValues");
8
+ var _useDateVariable = require("./useDateVariable");
9
+ var _useUserVariable = require("./useUserVariable");
10
+ var useVariableOptions = function useVariableOptions() {
11
+ var _useValues = (0, _useValues2.useValues)(),
12
+ operator = _useValues.operator,
13
+ schema = _useValues.schema;
14
+ var userVariable = (0, _useUserVariable.useUserVariable)({
15
+ operator: operator,
16
+ schema: schema
17
+ });
18
+ var dateVariable = (0, _useDateVariable.useDateVariable)({
19
+ operator: operator,
20
+ schema: schema
21
+ });
22
+ if (!operator || !schema) return [];
23
+ return [userVariable, dateVariable];
24
+ };
25
+ exports.useVariableOptions = useVariableOptions;
@@ -95,9 +95,8 @@ function VerificationCode(_ref) {
95
95
  }));
96
96
  return _onGetCode.apply(this, arguments);
97
97
  }
98
- ;
99
98
  return /*#__PURE__*/_react2.default.createElement("fieldset", {
100
- className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n gap: .5em;\n "])))
99
+ className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n gap: 0.5em;\n "])))
101
100
  }, /*#__PURE__*/_react2.default.createElement(_antd.Input, {
102
101
  value: value,
103
102
  onChange: onChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/client",
3
- "version": "0.9.2-alpha.1",
3
+ "version": "0.9.2-alpha.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib",
6
6
  "module": "es/index.js",
@@ -13,9 +13,9 @@
13
13
  "@formily/antd": "2.0.20",
14
14
  "@formily/core": "2.0.20",
15
15
  "@formily/react": "2.0.20",
16
- "@nocobase/evaluators": "0.9.2-alpha.1",
17
- "@nocobase/sdk": "0.9.2-alpha.1",
18
- "@nocobase/utils": "0.9.2-alpha.1",
16
+ "@nocobase/evaluators": "0.9.2-alpha.3",
17
+ "@nocobase/sdk": "0.9.2-alpha.3",
18
+ "@nocobase/utils": "0.9.2-alpha.3",
19
19
  "ahooks": "^3.7.2",
20
20
  "antd": "^4.24.8",
21
21
  "axios": "^0.26.1",
@@ -33,6 +33,7 @@
33
33
  "react-beautiful-dnd": "^13.1.0",
34
34
  "react-big-calendar": "^0.38.7",
35
35
  "react-drag-listview": "^0.1.9",
36
+ "react-error-boundary": "^4.0.3",
36
37
  "react-helmet": "^6.1.0",
37
38
  "react-hotkeys-hook": "^3.4.7",
38
39
  "react-i18next": "^11.15.1",
@@ -59,5 +60,5 @@
59
60
  "@types/markdown-it-highlightjs": "3.3.1",
60
61
  "axios-mock-adapter": "^1.20.0"
61
62
  },
62
- "gitHead": "a4f103eb0144f07205aff7b2a6be8ea6aa1330df"
63
+ "gitHead": "b6b5f9372202d942c97d2d90a4197e060db05124"
63
64
  }
@@ -1,10 +0,0 @@
1
- export declare const useUserVariable: ({ schema, operator }: {
2
- schema: any;
3
- operator: any;
4
- }) => {
5
- label: string;
6
- value: string;
7
- key: string;
8
- disabled: any;
9
- children: any;
10
- };
@@ -1,10 +0,0 @@
1
- export declare const useUserVariable: ({ schema, operator }: {
2
- schema: any;
3
- operator: any;
4
- }) => {
5
- label: string;
6
- value: string;
7
- key: string;
8
- disabled: any;
9
- children: any;
10
- };