@nocobase/client-v2 2.1.0-alpha.40 → 2.1.0-alpha.45

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 (278) hide show
  1. package/es/Application.d.ts +7 -0
  2. package/es/BaseApplication.d.ts +13 -0
  3. package/es/RouterManager.d.ts +1 -0
  4. package/es/collection-field-interface/CollectionFieldInterface.d.ts +51 -15
  5. package/es/collection-field-interface/CollectionFieldInterfaceManager.d.ts +82 -3
  6. package/es/collection-manager/field-configure.d.ts +80 -0
  7. package/es/collection-manager/field-validation.d.ts +43 -0
  8. package/es/collection-manager/filter-operators/index.d.ts +46 -0
  9. package/es/collection-manager/filter-operators/operators.d.ts +30 -0
  10. package/es/collection-manager/interfaces/checkbox.d.ts +1 -41
  11. package/es/collection-manager/interfaces/checkboxGroup.d.ts +12 -44
  12. package/es/collection-manager/interfaces/collection.d.ts +12 -51
  13. package/es/collection-manager/interfaces/color.d.ts +1 -16
  14. package/es/collection-manager/interfaces/createdAt.d.ts +1 -44
  15. package/es/collection-manager/interfaces/createdBy.d.ts +0 -4
  16. package/es/collection-manager/interfaces/dateOnly.d.ts +7 -44
  17. package/es/collection-manager/interfaces/datetime.d.ts +1 -44
  18. package/es/collection-manager/interfaces/datetimeNoTz.d.ts +1 -44
  19. package/es/collection-manager/interfaces/email.d.ts +1 -29
  20. package/es/collection-manager/interfaces/id.d.ts +1 -16
  21. package/es/collection-manager/interfaces/index.d.ts +2 -3
  22. package/es/collection-manager/interfaces/input.d.ts +1 -102
  23. package/es/collection-manager/interfaces/integer.d.ts +1 -95
  24. package/es/collection-manager/interfaces/json.d.ts +16 -7
  25. package/es/collection-manager/interfaces/m2m.d.ts +11 -19
  26. package/es/collection-manager/interfaces/m2o.d.ts +11 -19
  27. package/es/collection-manager/interfaces/markdown.d.ts +1 -63
  28. package/es/collection-manager/interfaces/multipleSelect.d.ts +12 -44
  29. package/es/collection-manager/interfaces/nanoid.d.ts +1 -34
  30. package/es/collection-manager/interfaces/number.d.ts +1 -87
  31. package/es/collection-manager/interfaces/o2m.d.ts +12 -24
  32. package/es/collection-manager/interfaces/obo.d.ts +207 -0
  33. package/es/collection-manager/interfaces/oho.d.ts +207 -0
  34. package/es/collection-manager/interfaces/password.d.ts +1 -56
  35. package/es/collection-manager/interfaces/percent.d.ts +1 -84
  36. package/es/collection-manager/interfaces/phone.d.ts +1 -25
  37. package/es/collection-manager/interfaces/properties/index.d.ts +0 -28
  38. package/es/collection-manager/interfaces/radioGroup.d.ts +1 -29
  39. package/es/collection-manager/interfaces/richText.d.ts +1 -63
  40. package/es/collection-manager/interfaces/select.d.ts +12 -44
  41. package/es/collection-manager/interfaces/snowflake-id.d.ts +1 -34
  42. package/es/collection-manager/interfaces/tableoid.d.ts +1 -10
  43. package/es/collection-manager/interfaces/textarea.d.ts +1 -51
  44. package/es/collection-manager/interfaces/time.d.ts +1 -16
  45. package/es/collection-manager/interfaces/types.d.ts +3 -12
  46. package/es/collection-manager/interfaces/unixTimestamp.d.ts +1 -44
  47. package/es/collection-manager/interfaces/updatedAt.d.ts +1 -44
  48. package/es/collection-manager/interfaces/updatedBy.d.ts +0 -4
  49. package/es/collection-manager/interfaces/url.d.ts +1 -20
  50. package/es/collection-manager/interfaces/uuid.d.ts +1 -34
  51. package/es/collection-manager/template-fields.d.ts +53 -0
  52. package/es/components/KeepAlive.d.ts +22 -0
  53. package/es/components/RouterBridge.d.ts +9 -0
  54. package/es/components/form/DialogFormLayout.d.ts +5 -29
  55. package/es/components/form/VariableInput.d.ts +53 -2
  56. package/es/components/form/filter/CollectionFilter.d.ts +49 -0
  57. package/es/components/form/filter/CollectionFilterItem.d.ts +49 -0
  58. package/es/components/form/filter/DateFilterDynamicComponent.d.ts +57 -0
  59. package/es/components/form/filter/FilterValueInput.d.ts +29 -0
  60. package/es/components/form/filter/index.d.ts +11 -0
  61. package/es/components/form/filter/useFilterActionProps.d.ts +96 -0
  62. package/es/components/form/index.d.ts +1 -0
  63. package/es/data-source/ExtendCollectionsProvider.d.ts +50 -0
  64. package/es/data-source/index.d.ts +9 -0
  65. package/es/flow/FlowPage.d.ts +2 -1
  66. package/es/flow/admin-shell/AdminLayoutRouteCoordinator.d.ts +8 -40
  67. package/es/flow/admin-shell/BaseLayoutModel.d.ts +89 -0
  68. package/es/flow/admin-shell/BaseLayoutRouteCoordinator.d.ts +74 -0
  69. package/es/flow/admin-shell/admin-layout/AdminLayoutEntryGuard.d.ts +12 -0
  70. package/es/flow/admin-shell/admin-layout/AdminLayoutModel.d.ts +7 -92
  71. package/es/flow/admin-shell/admin-layout/AppListRender.d.ts +11 -0
  72. package/es/flow/admin-shell/admin-layout/index.d.ts +3 -0
  73. package/es/flow/admin-shell/admin-layout/useApplications.d.ts +3 -2
  74. package/es/flow/admin-shell/useAdminLayoutRoutePage.d.ts +2 -2
  75. package/es/flow/admin-shell/useLayoutRoutePage.d.ts +23 -0
  76. package/es/flow/components/FlowRoute.d.ts +10 -1
  77. package/es/flow/components/filter/index.d.ts +2 -0
  78. package/es/flow/components/filter/useFilterOptions.d.ts +66 -0
  79. package/es/flow/index.d.ts +4 -0
  80. package/es/flow/models/base/PageModel/PageModel.d.ts +3 -1
  81. package/es/flow/models/blocks/assign-form/assignFieldValuesFlow.d.ts +84 -0
  82. package/es/flow/models/blocks/assign-form/index.d.ts +1 -0
  83. package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +1 -0
  84. package/es/flow/models/blocks/form/FormActionModel.d.ts +9 -2
  85. package/es/flow/models/blocks/table/TableBlockModel.d.ts +10 -0
  86. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +1 -1
  87. package/es/flow-compat/passwordUtils.d.ts +1 -1
  88. package/es/index.d.ts +6 -0
  89. package/es/index.mjs +552 -459
  90. package/es/layout-manager/LayoutContentRoute.d.ts +14 -0
  91. package/es/layout-manager/LayoutManager.d.ts +22 -0
  92. package/es/layout-manager/LayoutRoute.d.ts +14 -0
  93. package/es/layout-manager/index.d.ts +13 -0
  94. package/es/layout-manager/types.d.ts +20 -0
  95. package/es/layout-manager/utils.d.ts +14 -0
  96. package/es/nocobase-buildin-plugin/index.d.ts +3 -10
  97. package/es/settings-center/index.d.ts +1 -1
  98. package/es/settings-center/plugin-manager/BulkEnableButton.d.ts +15 -0
  99. package/es/settings-center/plugin-manager/PluginCard.d.ts +15 -0
  100. package/es/settings-center/plugin-manager/PluginDetail.d.ts +16 -0
  101. package/es/settings-center/{PluginManagerPage.d.ts → plugin-manager/index.d.ts} +1 -7
  102. package/es/settings-center/plugin-manager/types.d.ts +34 -0
  103. package/lib/index.js +552 -459
  104. package/package.json +8 -7
  105. package/src/Application.tsx +51 -12
  106. package/src/BaseApplication.tsx +32 -0
  107. package/src/PluginSettingsManager.ts +1 -1
  108. package/src/RouterManager.tsx +17 -1
  109. package/src/__tests__/PluginSettingsManager.test.ts +41 -2
  110. package/src/__tests__/app.test.tsx +17 -1
  111. package/src/__tests__/globalDeps.test.ts +1 -0
  112. package/src/__tests__/nocobase-buildin-plugin-auth.test.tsx +45 -2
  113. package/src/__tests__/plugin-manager.test.tsx +177 -0
  114. package/src/__tests__/settings-center.test.tsx +24 -2
  115. package/src/collection-field-interface/CollectionFieldInterface.ts +71 -77
  116. package/src/collection-field-interface/CollectionFieldInterfaceManager.ts +201 -4
  117. package/src/collection-manager/field-configure.ts +548 -0
  118. package/src/collection-manager/field-validation.ts +195 -0
  119. package/src/collection-manager/filter-operators/index.ts +176 -0
  120. package/src/collection-manager/{interfaces/properties → filter-operators}/operators.ts +24 -13
  121. package/src/collection-manager/interfaces/checkbox.ts +2 -9
  122. package/src/collection-manager/interfaces/checkboxGroup.ts +2 -10
  123. package/src/collection-manager/interfaces/collection.ts +2 -15
  124. package/src/collection-manager/interfaces/color.ts +2 -2
  125. package/src/collection-manager/interfaces/createdAt.ts +2 -2
  126. package/src/collection-manager/interfaces/createdBy.ts +1 -12
  127. package/src/collection-manager/interfaces/dateOnly.ts +8 -2
  128. package/src/collection-manager/interfaces/datetime.ts +2 -2
  129. package/src/collection-manager/interfaces/datetimeNoTz.ts +2 -2
  130. package/src/collection-manager/interfaces/email.ts +2 -9
  131. package/src/collection-manager/interfaces/id.ts +1 -2
  132. package/src/collection-manager/interfaces/index.ts +2 -3
  133. package/src/collection-manager/interfaces/input.ts +2 -133
  134. package/src/collection-manager/interfaces/integer.ts +2 -71
  135. package/src/collection-manager/interfaces/json.tsx +17 -11
  136. package/src/collection-manager/interfaces/m2m.tsx +0 -21
  137. package/src/collection-manager/interfaces/m2o.tsx +0 -22
  138. package/src/collection-manager/interfaces/markdown.ts +2 -51
  139. package/src/collection-manager/interfaces/multipleSelect.ts +2 -14
  140. package/src/collection-manager/interfaces/nanoid.ts +2 -2
  141. package/src/collection-manager/interfaces/number.ts +2 -85
  142. package/src/collection-manager/interfaces/o2m.tsx +1 -22
  143. package/src/collection-manager/interfaces/obo.tsx +145 -0
  144. package/src/collection-manager/interfaces/oho.tsx +145 -0
  145. package/src/collection-manager/interfaces/password.ts +2 -44
  146. package/src/collection-manager/interfaces/percent.ts +2 -74
  147. package/src/collection-manager/interfaces/phone.ts +2 -2
  148. package/src/collection-manager/interfaces/properties/index.ts +0 -133
  149. package/src/collection-manager/interfaces/radioGroup.ts +2 -2
  150. package/src/collection-manager/interfaces/richText.ts +2 -51
  151. package/src/collection-manager/interfaces/select.ts +2 -14
  152. package/src/collection-manager/interfaces/snowflake-id.ts +2 -2
  153. package/src/collection-manager/interfaces/tableoid.ts +1 -2
  154. package/src/collection-manager/interfaces/textarea.ts +2 -51
  155. package/src/collection-manager/interfaces/time.ts +2 -2
  156. package/src/collection-manager/interfaces/types.ts +4 -12
  157. package/src/collection-manager/interfaces/unixTimestamp.tsx +2 -2
  158. package/src/collection-manager/interfaces/updatedAt.ts +2 -2
  159. package/src/collection-manager/interfaces/updatedBy.ts +1 -12
  160. package/src/collection-manager/interfaces/url.ts +2 -4
  161. package/src/collection-manager/interfaces/uuid.ts +2 -2
  162. package/src/collection-manager/template-fields.ts +109 -0
  163. package/src/components/KeepAlive.tsx +131 -0
  164. package/src/components/README.md +90 -6
  165. package/src/components/README.zh-CN.md +90 -7
  166. package/src/components/RouterBridge.tsx +28 -4
  167. package/src/components/__tests__/KeepAlive.test.tsx +63 -0
  168. package/src/components/__tests__/RouterBridge.test.tsx +27 -0
  169. package/src/components/form/DialogFormLayout.tsx +5 -29
  170. package/src/components/form/VariableInput.tsx +101 -28
  171. package/src/components/form/__tests__/VariableInput.test.ts +85 -0
  172. package/src/components/form/filter/CollectionFilter.tsx +111 -0
  173. package/src/components/form/filter/CollectionFilterItem.tsx +184 -0
  174. package/src/components/form/filter/DateFilterDynamicComponent.tsx +283 -0
  175. package/src/components/form/filter/FilterValueInput.tsx +198 -0
  176. package/src/components/form/filter/__tests__/CollectionFilterItem.test.tsx +247 -0
  177. package/src/components/form/filter/__tests__/DateFilterDynamicComponent.test.tsx +148 -0
  178. package/src/components/form/filter/__tests__/FilterValueInput.test.tsx +243 -0
  179. package/src/components/form/filter/__tests__/compileFilterGroup.test.ts +146 -0
  180. package/src/components/form/filter/index.ts +13 -0
  181. package/src/components/form/filter/useFilterActionProps.ts +203 -0
  182. package/src/components/form/index.tsx +1 -0
  183. package/src/data-source/ExtendCollectionsProvider.tsx +144 -0
  184. package/src/data-source/__tests__/ExtendCollectionsProvider.test.tsx +264 -0
  185. package/src/data-source/index.ts +10 -0
  186. package/src/flow/FlowPage.tsx +35 -7
  187. package/src/flow/__tests__/FlowPage.test.tsx +79 -0
  188. package/src/flow/__tests__/FlowRoute.test.tsx +529 -2
  189. package/src/flow/actions/__tests__/linkageRules.subFormSetFieldProps.test.ts +191 -0
  190. package/src/flow/actions/__tests__/openView.subModelKey.test.tsx +33 -0
  191. package/src/flow/actions/aclCheck.tsx +4 -0
  192. package/src/flow/actions/aclCheckRefresh.tsx +4 -0
  193. package/src/flow/actions/dateTimeFormat.tsx +12 -8
  194. package/src/flow/actions/linkageRules.tsx +122 -0
  195. package/src/flow/actions/openView.tsx +28 -4
  196. package/src/flow/admin-shell/AdminLayoutRouteCoordinator.ts +11 -329
  197. package/src/flow/admin-shell/BaseLayoutModel.tsx +455 -0
  198. package/src/flow/admin-shell/BaseLayoutRouteCoordinator.ts +502 -0
  199. package/src/flow/admin-shell/__tests__/AdminLayoutRouteCoordinator.test.ts +547 -3
  200. package/src/flow/admin-shell/admin-layout/AdminLayoutComponent.tsx +35 -7
  201. package/src/flow/admin-shell/admin-layout/AdminLayoutEntryGuard.tsx +160 -0
  202. package/src/flow/admin-shell/admin-layout/AdminLayoutMenuModels.tsx +0 -12
  203. package/src/flow/admin-shell/admin-layout/AdminLayoutModel.tsx +28 -201
  204. package/src/flow/admin-shell/admin-layout/AdminLayoutSlotModels.tsx +11 -2
  205. package/src/flow/admin-shell/admin-layout/AppListRender.tsx +139 -0
  206. package/src/flow/admin-shell/admin-layout/__tests__/AdminLayoutMenuModels.test.ts +1 -26
  207. package/src/flow/admin-shell/admin-layout/__tests__/AdminLayoutModel.test.tsx +149 -27
  208. package/src/flow/admin-shell/admin-layout/index.ts +3 -0
  209. package/src/flow/admin-shell/admin-layout/useApplications.tsx +34 -1
  210. package/src/flow/admin-shell/useAdminLayoutRoutePage.ts +10 -26
  211. package/src/flow/admin-shell/useLayoutRoutePage.ts +61 -0
  212. package/src/flow/components/AdminLayout.tsx +4 -154
  213. package/src/flow/components/FlowRoute.tsx +105 -15
  214. package/src/flow/components/filter/index.ts +3 -0
  215. package/src/flow/components/filter/useFilterOptions.ts +102 -0
  216. package/src/flow/index.ts +4 -0
  217. package/src/flow/models/actions/UpdateRecordActionModel.tsx +14 -95
  218. package/src/flow/models/actions/UpdateRecordActionUtils.ts +4 -7
  219. package/src/flow/models/actions/__tests__/AssignFormRefill.test.ts +26 -1
  220. package/src/flow/models/base/ActionModel.tsx +8 -1
  221. package/src/flow/models/base/PageModel/PageModel.tsx +51 -18
  222. package/src/flow/models/base/PageModel/RootPageModel.tsx +6 -13
  223. package/src/flow/models/base/PageModel/__tests__/PageModel.test.ts +102 -1
  224. package/src/flow/models/base/RouteModel.tsx +1 -1
  225. package/src/flow/models/blocks/assign-form/AssignFormItemModel.tsx +63 -2
  226. package/src/flow/models/blocks/assign-form/assignFieldValuesFlow.tsx +206 -0
  227. package/src/flow/models/blocks/assign-form/index.ts +1 -0
  228. package/src/flow/models/blocks/form/FormActionGroupModel.tsx +14 -0
  229. package/src/flow/models/blocks/form/FormActionModel.tsx +30 -3
  230. package/src/flow/models/blocks/form/FormItemModel.tsx +8 -1
  231. package/src/flow/models/blocks/form/__tests__/FormActionGroupModel.test.ts +46 -0
  232. package/src/flow/models/blocks/form/__tests__/submitHandler.test.ts +71 -0
  233. package/src/flow/models/blocks/form/submitHandler.ts +8 -1
  234. package/src/flow/models/blocks/form/submitValues.ts +4 -1
  235. package/src/flow/models/blocks/table/TableBlockModel.tsx +118 -16
  236. package/src/flow/models/blocks/table/__tests__/TableBlockModel.rowSelection.test.tsx +114 -0
  237. package/src/flow/models/fields/AssociationFieldModel/SubFormFieldModel.tsx +7 -1
  238. package/src/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.tsx +1 -1
  239. package/src/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.tsx +6 -5
  240. package/src/flow/models/fields/ClickableFieldModel.tsx +9 -1
  241. package/src/flow/models/fields/CollectionSelectorFieldModel.tsx +8 -2
  242. package/src/flow/models/fields/DisplayEnumFieldModel.tsx +8 -2
  243. package/src/flow/models/fields/DisplayTimeFieldModel.tsx +1 -1
  244. package/src/flow/models/fields/TimeFieldModel.tsx +1 -1
  245. package/src/flow/models/fields/__tests__/TimeFieldModel.test.tsx +61 -0
  246. package/src/flow/models/fields/mobile-components/MobileDatePicker.tsx +19 -3
  247. package/src/flow/models/fields/mobile-components/__tests__/MobileDatePicker.test.tsx +94 -0
  248. package/src/flow/models/topbar/TopbarActionModel.tsx +1 -1
  249. package/src/flow/utils/__tests__/dateTimeFormat.test.ts +91 -0
  250. package/src/index.ts +6 -0
  251. package/src/layout-manager/LayoutContentRoute.tsx +90 -0
  252. package/src/layout-manager/LayoutManager.tsx +185 -0
  253. package/src/layout-manager/LayoutRoute.tsx +138 -0
  254. package/src/layout-manager/__tests__/LayoutManager.test.tsx +335 -0
  255. package/src/layout-manager/__tests__/LayoutRoute.test.tsx +473 -0
  256. package/src/layout-manager/index.ts +14 -0
  257. package/src/layout-manager/types.ts +22 -0
  258. package/src/layout-manager/utils.ts +37 -0
  259. package/src/nocobase-buildin-plugin/index.tsx +69 -67
  260. package/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts +1 -0
  261. package/src/settings-center/index.ts +1 -1
  262. package/src/settings-center/plugin-manager/BulkEnableButton.tsx +111 -0
  263. package/src/settings-center/plugin-manager/PluginCard.tsx +270 -0
  264. package/src/settings-center/plugin-manager/PluginDetail.tsx +195 -0
  265. package/src/settings-center/plugin-manager/index.tsx +254 -0
  266. package/src/settings-center/plugin-manager/types.ts +35 -0
  267. package/src/settings-center/utils.tsx +8 -1
  268. package/src/theme/__tests__/globalStyles.test.ts +24 -0
  269. package/src/theme/globalStyles.ts +10 -0
  270. package/src/utils/globalDeps.ts +2 -0
  271. package/es/collection-manager/interfaces/linkTo.d.ts +0 -90
  272. package/es/collection-manager/interfaces/o2o.d.ts +0 -621
  273. package/es/collection-manager/interfaces/properties/operators.d.ts +0 -294
  274. package/es/collection-manager/interfaces/subTable.d.ts +0 -172
  275. package/src/collection-manager/interfaces/linkTo.ts +0 -120
  276. package/src/collection-manager/interfaces/o2o.tsx +0 -561
  277. package/src/collection-manager/interfaces/subTable.ts +0 -218
  278. package/src/settings-center/PluginManagerPage.tsx +0 -162
@@ -49,15 +49,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
49
49
  'x-decorator': string;
50
50
  'x-component': string;
51
51
  'x-disabled': string;
52
- 'x-reactions': {
53
- dependencies: string[];
54
- when: string;
55
- fulfill: {
56
- state: {
57
- value: boolean;
58
- };
59
- };
60
- }[];
61
52
  };
62
53
  unique: {
63
54
  type: string;
@@ -65,15 +56,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
65
56
  'x-decorator': string;
66
57
  'x-component': string;
67
58
  'x-disabled': string;
68
- 'x-reactions': {
69
- dependencies: string[];
70
- when: string;
71
- fulfill: {
72
- state: {
73
- value: boolean;
74
- };
75
- };
76
- }[];
77
59
  };
78
60
  };
79
61
  };
@@ -84,15 +66,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
84
66
  'x-decorator': string;
85
67
  'x-component': string;
86
68
  'x-disabled': string;
87
- 'x-reactions': {
88
- dependencies: string[];
89
- when: string;
90
- fulfill: {
91
- state: {
92
- value: boolean;
93
- };
94
- };
95
- }[];
96
69
  };
97
70
  'uiSchema.title': {
98
71
  type: string;
@@ -113,74 +86,7 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
113
86
  };
114
87
  };
115
88
  filterable: {
116
- operators: ({
117
- label: string;
118
- value: string;
119
- selected: boolean;
120
- noValue?: undefined;
121
- } | {
122
- label: string;
123
- value: string;
124
- selected?: undefined;
125
- noValue?: undefined;
126
- } | {
127
- label: string;
128
- value: string;
129
- noValue: boolean;
130
- selected?: undefined;
131
- })[];
89
+ operators: string;
132
90
  };
133
91
  titleUsable: boolean;
134
- validateSchema: (fieldSchema: any) => {
135
- maximum: {
136
- type: string;
137
- title: string;
138
- 'x-decorator': string;
139
- 'x-component': string;
140
- 'x-component-props': {
141
- precision: number;
142
- };
143
- 'x-reactions': string;
144
- };
145
- minimum: {
146
- type: string;
147
- title: string;
148
- 'x-decorator': string;
149
- 'x-component': string;
150
- 'x-component-props': {
151
- precision: number;
152
- };
153
- 'x-reactions': {
154
- dependencies: string[];
155
- fulfill: {
156
- state: {
157
- selfErrors: string;
158
- };
159
- };
160
- };
161
- };
162
- format: {
163
- type: string;
164
- title: string;
165
- 'x-decorator': string;
166
- 'x-component': string;
167
- 'x-component-props': {
168
- allowClear: boolean;
169
- };
170
- enum: {
171
- label: string;
172
- value: string;
173
- }[];
174
- };
175
- pattern: {
176
- type: string;
177
- title: string;
178
- 'x-decorator': string;
179
- 'x-component': string;
180
- 'x-component-props': {
181
- prefix: string;
182
- suffix: string;
183
- };
184
- };
185
- };
186
92
  }
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React from 'react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class JsonFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -32,14 +31,8 @@ export declare class JsonFieldInterface extends CollectionFieldInterface {
32
31
  hasDefaultValue: boolean;
33
32
  properties: {
34
33
  jsonb: {
35
- type: string;
36
34
  title: string;
37
- 'x-decorator': ({ children }: {
38
- children: any;
39
- }) => React.JSX.Element;
40
35
  'x-component': string;
41
- 'x-hidden': string;
42
- 'x-disabled': string;
43
36
  };
44
37
  'uiSchema.title': {
45
38
  type: string;
@@ -59,4 +52,20 @@ export declare class JsonFieldInterface extends CollectionFieldInterface {
59
52
  description: string;
60
53
  };
61
54
  };
55
+ configure: {
56
+ items: {
57
+ name: string;
58
+ title: string;
59
+ component: string;
60
+ schema: {
61
+ 'x-content': string;
62
+ };
63
+ hidden: ({ context }: {
64
+ context: any;
65
+ }) => boolean;
66
+ disabled: ({ context }: {
67
+ context: any;
68
+ }) => boolean;
69
+ }[];
70
+ };
62
71
  }
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class M2MFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -37,27 +36,21 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
37
36
  };
38
37
  availableTypes: string[];
39
38
  validationType: string;
40
- schemaInitialize(schema: ISchema, { field, readPretty, block, targetCollection }: {
41
- field: any;
42
- readPretty: any;
43
- block: any;
44
- targetCollection: any;
45
- }): void;
46
39
  initialize(values: any): void;
47
40
  properties: {
48
- type: import("@formily/react").Stringify<{
41
+ type: import("@formily/json-schema").Stringify<{
49
42
  [key: symbol]: any;
50
43
  [key: `x-${string}`]: any;
51
44
  [key: `x-${number}`]: any;
52
45
  version?: string;
53
- name?: import("@formily/react").SchemaKey;
46
+ name?: import("@formily/json-schema").SchemaKey;
54
47
  title?: any;
55
48
  description?: any;
56
49
  default?: any;
57
50
  readOnly?: boolean;
58
51
  writeOnly?: boolean;
59
- type?: import("@formily/react").SchemaTypes;
60
- enum?: import("@formily/react").SchemaEnum<any>;
52
+ type?: import("@formily/json-schema").SchemaTypes;
53
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
61
54
  const?: any;
62
55
  multipleOf?: number;
63
56
  maximum?: number;
@@ -76,12 +69,12 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
76
69
  format?: string;
77
70
  $ref?: string;
78
71
  $namespace?: string;
79
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
80
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
81
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
82
- additionalItems?: import("@formily/react").Stringify<any>;
83
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
84
- additionalProperties?: import("@formily/react").Stringify<any>;
72
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
73
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
74
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
75
+ additionalItems?: import("@formily/json-schema").Stringify<any>;
76
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
77
+ additionalProperties?: import("@formily/json-schema").Stringify<any>;
85
78
  "x-value"?: any;
86
79
  "x-index"?: number;
87
80
  "x-pattern"?: any;
@@ -91,7 +84,7 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
91
84
  "x-decorator-props"?: any;
92
85
  "x-component"?: any;
93
86
  "x-component-props"?: any;
94
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
87
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
95
88
  "x-content"?: any;
96
89
  "x-data"?: any;
97
90
  "x-visible"?: boolean;
@@ -148,7 +141,6 @@ export declare class M2MFieldInterface extends CollectionFieldInterface {
148
141
  type: string;
149
142
  title: string;
150
143
  required: boolean;
151
- 'x-reactions': string[];
152
144
  'x-decorator': string;
153
145
  'x-component': string;
154
146
  'x-disabled': string;
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class M2OFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -37,12 +36,6 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
37
36
  };
38
37
  };
39
38
  availableTypes: string[];
40
- schemaInitialize(schema: ISchema, { field, block, readPretty, targetCollection }: {
41
- field: any;
42
- block: any;
43
- readPretty: any;
44
- targetCollection: any;
45
- }): void;
46
39
  properties: {
47
40
  onDelete: {
48
41
  type: string;
@@ -73,19 +66,19 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
73
66
  'x-component': string;
74
67
  description: string;
75
68
  };
76
- type: import("@formily/react").Stringify<{
69
+ type: import("@formily/json-schema").Stringify<{
77
70
  [key: symbol]: any;
78
71
  [key: `x-${string}`]: any;
79
72
  [key: `x-${number}`]: any;
80
73
  version?: string;
81
- name?: import("@formily/react").SchemaKey;
74
+ name?: import("@formily/json-schema").SchemaKey;
82
75
  title?: any;
83
76
  description?: any;
84
77
  default?: any;
85
78
  readOnly?: boolean;
86
79
  writeOnly?: boolean;
87
- type?: import("@formily/react").SchemaTypes;
88
- enum?: import("@formily/react").SchemaEnum<any>;
80
+ type?: import("@formily/json-schema").SchemaTypes;
81
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
89
82
  const?: any;
90
83
  multipleOf?: number;
91
84
  maximum?: number;
@@ -104,12 +97,12 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
104
97
  format?: string;
105
98
  $ref?: string;
106
99
  $namespace?: string;
107
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
108
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
109
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
110
- additionalItems?: import("@formily/react").Stringify<any>;
111
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
112
- additionalProperties?: import("@formily/react").Stringify<any>;
100
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
101
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
102
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
103
+ additionalItems?: import("@formily/json-schema").Stringify<any>;
104
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
105
+ additionalProperties?: import("@formily/json-schema").Stringify<any>;
113
106
  "x-value"?: any;
114
107
  "x-index"?: number;
115
108
  "x-pattern"?: any;
@@ -119,7 +112,7 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
119
112
  "x-decorator-props"?: any;
120
113
  "x-component"?: any;
121
114
  "x-component-props"?: any;
122
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
115
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
123
116
  "x-content"?: any;
124
117
  "x-data"?: any;
125
118
  "x-visible"?: boolean;
@@ -159,7 +152,6 @@ export declare class M2OFieldInterface extends CollectionFieldInterface {
159
152
  type: string;
160
153
  title: string;
161
154
  required: boolean;
162
- 'x-reactions': string[];
163
155
  'x-decorator': string;
164
156
  'x-component': string;
165
157
  'x-disabled': string;
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class MarkdownFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -41,68 +40,7 @@ export declare class MarkdownFieldInterface extends CollectionFieldInterface {
41
40
  description: string;
42
41
  };
43
42
  };
44
- schemaInitialize(schema: ISchema, { block }: {
45
- block: any;
46
- }): void;
47
- validateSchema(fieldSchema: any): {
48
- max: {
49
- type: string;
50
- title: string;
51
- minimum: number;
52
- 'x-decorator': string;
53
- 'x-component': string;
54
- 'x-component-props': {
55
- precision: number;
56
- };
57
- 'x-reactions': string;
58
- };
59
- min: {
60
- type: string;
61
- title: string;
62
- minimum: number;
63
- 'x-decorator': string;
64
- 'x-component': string;
65
- 'x-component-props': {
66
- precision: number;
67
- };
68
- 'x-reactions': {
69
- dependencies: string[];
70
- fulfill: {
71
- state: {
72
- selfErrors: string;
73
- };
74
- };
75
- };
76
- };
77
- };
78
43
  filterable: {
79
- operators: ({
80
- label: string;
81
- value: string;
82
- selected: boolean;
83
- schema: {
84
- type: string;
85
- 'x-component': string;
86
- };
87
- noValue?: undefined;
88
- } | {
89
- label: string;
90
- value: string;
91
- schema: {
92
- type: string;
93
- 'x-component': string;
94
- };
95
- selected?: undefined;
96
- noValue?: undefined;
97
- } | {
98
- label: string;
99
- value: string;
100
- noValue: boolean;
101
- schema: {
102
- type: string;
103
- 'x-component': string;
104
- };
105
- selected?: undefined;
106
- })[];
44
+ operators: string;
107
45
  };
108
46
  }
@@ -6,7 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { ISchema } from '@formily/react';
10
9
  import { CollectionFieldInterface } from '../../collection-field-interface/CollectionFieldInterface';
11
10
  export declare class MultipleSelectFieldInterface extends CollectionFieldInterface {
12
11
  name: string;
@@ -29,19 +28,19 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
29
28
  availableTypes: string[];
30
29
  hasDefaultValue: boolean;
31
30
  properties: {
32
- 'uiSchema.enum': import("@formily/react").Stringify<{
31
+ 'uiSchema.enum': import("@formily/json-schema").Stringify<{
33
32
  [key: symbol]: any;
34
33
  [key: `x-${string}`]: any;
35
34
  [key: `x-${number}`]: any;
36
35
  version?: string;
37
- name?: import("@formily/react").SchemaKey;
36
+ name?: import("@formily/json-schema").SchemaKey;
38
37
  title?: any;
39
38
  description?: any;
40
39
  default?: any;
41
40
  readOnly?: boolean;
42
41
  writeOnly?: boolean;
43
- type?: import("@formily/react").SchemaTypes;
44
- enum?: import("@formily/react").SchemaEnum<any>;
42
+ type?: import("@formily/json-schema").SchemaTypes;
43
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
45
44
  const?: any;
46
45
  multipleOf?: number;
47
46
  maximum?: number;
@@ -60,12 +59,12 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
60
59
  format?: string;
61
60
  $ref?: string;
62
61
  $namespace?: string;
63
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
64
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
65
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
66
- additionalItems?: import("@formily/react").Stringify<any>;
67
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
68
- additionalProperties?: import("@formily/react").Stringify<any>;
62
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
63
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
64
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
65
+ additionalItems?: import("@formily/json-schema").Stringify<any>;
66
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
67
+ additionalProperties?: import("@formily/json-schema").Stringify<any>;
69
68
  "x-value"?: any;
70
69
  "x-index"?: number;
71
70
  "x-pattern"?: any;
@@ -75,7 +74,7 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
75
74
  "x-decorator-props"?: any;
76
75
  "x-component"?: any;
77
76
  "x-component-props"?: any;
78
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
77
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
79
78
  "x-content"?: any;
80
79
  "x-data"?: any;
81
80
  "x-visible"?: boolean;
@@ -105,37 +104,6 @@ export declare class MultipleSelectFieldInterface extends CollectionFieldInterfa
105
104
  };
106
105
  };
107
106
  filterable: {
108
- operators: ({
109
- label: string;
110
- value: string;
111
- selected: boolean;
112
- schema: {
113
- 'x-component': string;
114
- 'x-component-props': {
115
- mode: string;
116
- };
117
- };
118
- noValue?: undefined;
119
- } | {
120
- label: string;
121
- value: string;
122
- schema: {
123
- 'x-component': string;
124
- 'x-component-props': {
125
- mode: string;
126
- };
127
- };
128
- selected?: undefined;
129
- noValue?: undefined;
130
- } | {
131
- label: string;
132
- value: string;
133
- noValue: boolean;
134
- selected?: undefined;
135
- schema?: undefined;
136
- })[];
107
+ operators: string;
137
108
  };
138
- schemaInitialize(schema: ISchema, { block }: {
139
- block: any;
140
- }): void;
141
109
  }
@@ -80,15 +80,6 @@ export declare class NanoidFieldInterface extends CollectionFieldInterface {
80
80
  'x-decorator': string;
81
81
  'x-component': string;
82
82
  'x-disabled': string;
83
- 'x-reactions': {
84
- dependencies: string[];
85
- when: string;
86
- fulfill: {
87
- state: {
88
- value: boolean;
89
- };
90
- };
91
- }[];
92
83
  };
93
84
  unique: {
94
85
  type: string;
@@ -96,36 +87,12 @@ export declare class NanoidFieldInterface extends CollectionFieldInterface {
96
87
  'x-decorator': string;
97
88
  'x-component': string;
98
89
  'x-disabled': string;
99
- 'x-reactions': {
100
- dependencies: string[];
101
- when: string;
102
- fulfill: {
103
- state: {
104
- value: boolean;
105
- };
106
- };
107
- }[];
108
90
  };
109
91
  };
110
92
  };
111
93
  };
112
94
  filterable: {
113
- operators: ({
114
- label: string;
115
- value: string;
116
- selected: boolean;
117
- noValue?: undefined;
118
- } | {
119
- label: string;
120
- value: string;
121
- selected?: undefined;
122
- noValue?: undefined;
123
- } | {
124
- label: string;
125
- value: string;
126
- noValue: boolean;
127
- selected?: undefined;
128
- })[];
95
+ operators: string;
129
96
  };
130
97
  titleUsable: boolean;
131
98
  }
@@ -36,15 +36,6 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
36
36
  'x-decorator': string;
37
37
  'x-component': string;
38
38
  'x-disabled': string;
39
- 'x-reactions': {
40
- dependencies: string[];
41
- when: string;
42
- fulfill: {
43
- state: {
44
- value: boolean;
45
- };
46
- };
47
- }[];
48
39
  };
49
40
  'uiSchema.x-component-props.step': {
50
41
  type: string;
@@ -64,14 +55,6 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
64
55
  'x-decorator': string;
65
56
  'x-disabled': string;
66
57
  default: number;
67
- 'x-reactions': {
68
- dependencies: string[];
69
- fulfill: {
70
- state: {
71
- visible: string;
72
- };
73
- };
74
- };
75
58
  };
76
59
  scale: {
77
60
  type: string;
@@ -80,14 +63,6 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
80
63
  'x-decorator': string;
81
64
  'x-disabled': string;
82
65
  default: number;
83
- 'x-reactions': {
84
- dependencies: string[];
85
- fulfill: {
86
- state: {
87
- visible: string;
88
- };
89
- };
90
- };
91
66
  };
92
67
  'uiSchema.title': {
93
68
  type: string;
@@ -120,68 +95,7 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
120
95
  };
121
96
  };
122
97
  filterable: {
123
- operators: ({
124
- label: string;
125
- value: string;
126
- selected: boolean;
127
- noValue?: undefined;
128
- } | {
129
- label: string;
130
- value: string;
131
- selected?: undefined;
132
- noValue?: undefined;
133
- } | {
134
- label: string;
135
- value: string;
136
- noValue: boolean;
137
- selected?: undefined;
138
- })[];
98
+ operators: string;
139
99
  };
140
100
  titleUsable: boolean;
141
- validateSchema(fieldSchema: any): {
142
- maximum: {
143
- type: string;
144
- title: string;
145
- 'x-decorator': string;
146
- 'x-component': string;
147
- 'x-reactions': string;
148
- };
149
- minimum: {
150
- type: string;
151
- title: string;
152
- 'x-decorator': string;
153
- 'x-component': string;
154
- 'x-reactions': {
155
- dependencies: string[];
156
- fulfill: {
157
- state: {
158
- selfErrors: string;
159
- };
160
- };
161
- };
162
- };
163
- format: {
164
- type: string;
165
- title: string;
166
- 'x-decorator': string;
167
- 'x-component': string;
168
- 'x-component-props': {
169
- allowClear: boolean;
170
- };
171
- enum: {
172
- label: string;
173
- value: string;
174
- }[];
175
- };
176
- pattern: {
177
- type: string;
178
- title: string;
179
- 'x-decorator': string;
180
- 'x-component': string;
181
- 'x-component-props': {
182
- prefix: string;
183
- suffix: string;
184
- };
185
- };
186
- };
187
101
  }