@nocobase/client 2.1.0-alpha.4 → 2.1.0-alpha.40

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 (443) hide show
  1. package/LICENSE +201 -661
  2. package/README.md +79 -10
  3. package/es/ai/index.d.ts +2 -3
  4. package/es/api-client/APIClient.d.ts +1 -2
  5. package/es/application/Application.d.ts +68 -140
  6. package/es/application/CustomRouterContextProvider.d.ts +1 -0
  7. package/es/application/Plugin.d.ts +2 -24
  8. package/es/application/PluginManager.d.ts +7 -36
  9. package/es/application/PluginSettingsManager.d.ts +103 -7
  10. package/es/application/RouteRepository.d.ts +1 -15
  11. package/es/application/RouterManager.d.ts +4 -44
  12. package/es/application/WebSocketClient.d.ts +2 -36
  13. package/es/application/components/index.d.ts +0 -2
  14. package/es/application/hooks/usePlugin.d.ts +2 -2
  15. package/es/application/schema-initializer/context/index.d.ts +1 -1
  16. package/es/application/schema-settings/hooks/useSchemaSettingsRender.d.ts +2 -2
  17. package/es/application/utils/globalDeps.d.ts +7 -0
  18. package/es/application/utils/remotePlugins.d.ts +9 -6
  19. package/es/block-provider/BlockProvider.d.ts +1 -0
  20. package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
  21. package/es/block-provider/TableBlockProvider.d.ts +0 -11
  22. package/es/block-provider/index.d.ts +1 -0
  23. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
  24. package/es/collection-manager/templates/sql.d.ts +4 -4
  25. package/es/collection-manager/templates/view.d.ts +15 -15
  26. package/es/data-source/collection/utils.d.ts +3 -3
  27. package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
  28. package/es/global-theme/AntdAppProvider.d.ts +1 -10
  29. package/es/global-theme/compatOldTheme.d.ts +1 -3
  30. package/es/global-theme/customAlgorithm.d.ts +1 -7
  31. package/es/global-theme/defaultTheme.d.ts +1 -3
  32. package/es/global-theme/index.d.ts +2 -29
  33. package/es/global-theme/type.d.ts +1 -56
  34. package/es/index.css +1 -1
  35. package/es/index.d.ts +1 -1
  36. package/es/index.mjs +1498 -107768
  37. package/es/index.mjs.LICENSE.txt +8 -0
  38. package/es/lazy-helper/index.d.ts +8 -6
  39. package/es/modules/actions/associate/utils.d.ts +18 -0
  40. package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
  41. package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
  42. package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
  43. package/es/plugin-manager/context.d.ts +1 -4
  44. package/es/{flow/models/actions/JSActionModel.d.ts → pm/AdminSettingsLayoutModel.d.ts} +2 -4
  45. package/es/pm/PluginSetting.d.ts +2 -1
  46. package/es/pm/index.d.ts +1 -0
  47. package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
  48. package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
  49. package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
  50. package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
  51. package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +68 -0
  52. package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
  53. package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +33 -0
  54. package/es/{application/components/MainComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -2
  55. package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
  56. package/es/{ai/tools-manager/hooks/provider.d.ts → route-switch/antd/admin-layout/badge.d.ts} +3 -8
  57. package/es/route-switch/antd/admin-layout/index.d.ts +12 -23
  58. package/es/{ai/ai-manager.d.ts → route-switch/antd/admin-layout/mobileMenuNavigation.d.ts} +7 -7
  59. package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
  60. package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
  61. package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
  62. package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
  63. package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
  64. package/es/schema-component/antd/association-field/Table.d.ts +0 -57
  65. package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
  66. package/es/schema-component/antd/date-picker/DatePicker.d.ts +26 -0
  67. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  68. package/es/schema-component/antd/form-v2/Form.d.ts +5 -0
  69. package/es/schema-component/antd/menu/Menu.d.ts +2 -2
  70. package/es/schema-component/antd/page/Page.d.ts +1 -0
  71. package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
  72. package/es/schema-component/antd/upload/shared.d.ts +4 -0
  73. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  74. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  75. package/es/schema-settings/SchemaSettings.d.ts +3 -1
  76. package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +18 -0
  77. package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +3 -3
  78. package/es/style/index.d.ts +1 -1
  79. package/es/style/useToken.d.ts +1 -1
  80. package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
  81. package/es/system-settings/SystemSettingsShortcut.d.ts +7 -0
  82. package/es/{flow/components/drag-drop/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -2
  83. package/es/system-settings/index.d.ts +2 -1
  84. package/lib/index.css +1 -1
  85. package/lib/index.js +1538 -2130
  86. package/lib/index.js.LICENSE.txt +1 -0
  87. package/lib/locale/de-DE.json +5 -4
  88. package/lib/locale/en-US.json +19 -3
  89. package/lib/locale/es-ES.json +5 -4
  90. package/lib/locale/fr-FR.json +5 -4
  91. package/lib/locale/hu-HU.json +5 -4
  92. package/lib/locale/id-ID.json +5 -4
  93. package/lib/locale/it-IT.json +5 -4
  94. package/lib/locale/ja-JP.json +5 -4
  95. package/lib/locale/ko-KR.json +5 -4
  96. package/lib/locale/nl-NL.json +5 -4
  97. package/lib/locale/pt-BR.json +5 -4
  98. package/lib/locale/ru-RU.json +5 -4
  99. package/lib/locale/tr-TR.json +5 -4
  100. package/lib/locale/uk-UA.json +5 -4
  101. package/lib/locale/vi-VN.json +5 -4
  102. package/lib/locale/zh-CN.json +21 -5
  103. package/lib/locale/zh-TW.json +5 -4
  104. package/package.json +10 -9
  105. package/es/ai/tools-manager/hooks/context.d.ts +0 -17
  106. package/es/ai/tools-manager/hooks/index.d.ts +0 -11
  107. package/es/ai/tools-manager/index.d.ts +0 -21
  108. package/es/ai/tools-manager/types.d.ts +0 -80
  109. package/es/ai/utils.d.ts +0 -10
  110. package/es/application/components/AppComponent.d.ts +0 -14
  111. package/es/application/components/defaultComponents.d.ts +0 -19
  112. package/es/application/globalOperators.d.ts +0 -11
  113. package/es/flow/FlowModelRepository.d.ts +0 -36
  114. package/es/flow/FlowPage.d.ts +0 -20
  115. package/es/flow/actions/aclCheck.d.ts +0 -9
  116. package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
  117. package/es/flow/actions/blockHeight.d.ts +0 -9
  118. package/es/flow/actions/columnFixed.d.ts +0 -9
  119. package/es/flow/actions/confirm.d.ts +0 -9
  120. package/es/flow/actions/customVariable.d.ts +0 -9
  121. package/es/flow/actions/dataLoadingMode.d.ts +0 -9
  122. package/es/flow/actions/dataScope.d.ts +0 -9
  123. package/es/flow/actions/dateTimeFormat.d.ts +0 -9
  124. package/es/flow/actions/displayFieldComponent.d.ts +0 -19
  125. package/es/flow/actions/fieldComponent.d.ts +0 -9
  126. package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
  127. package/es/flow/actions/formAssignRules.d.ts +0 -9
  128. package/es/flow/actions/index.d.ts +0 -39
  129. package/es/flow/actions/layout.d.ts +0 -10
  130. package/es/flow/actions/linkageRules.d.ts +0 -23
  131. package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
  132. package/es/flow/actions/navigateToURL.d.ts +0 -9
  133. package/es/flow/actions/numberFormat.d.ts +0 -9
  134. package/es/flow/actions/openView.d.ts +0 -15
  135. package/es/flow/actions/overflowMode.d.ts +0 -9
  136. package/es/flow/actions/pattern.d.ts +0 -9
  137. package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
  138. package/es/flow/actions/renderMode.d.ts +0 -9
  139. package/es/flow/actions/required.d.ts +0 -9
  140. package/es/flow/actions/runjs.d.ts +0 -9
  141. package/es/flow/actions/setTargetDataScope.d.ts +0 -10
  142. package/es/flow/actions/showMessage.d.ts +0 -9
  143. package/es/flow/actions/showNotification.d.ts +0 -9
  144. package/es/flow/actions/sortingRules.d.ts +0 -9
  145. package/es/flow/actions/titleField.d.ts +0 -9
  146. package/es/flow/actions/validation.d.ts +0 -9
  147. package/es/flow/common/Liquid.d.ts +0 -33
  148. package/es/flow/common/Markdown/Display.d.ts +0 -9
  149. package/es/flow/common/Markdown/Edit.d.ts +0 -23
  150. package/es/flow/common/Markdown/Markdown.d.ts +0 -24
  151. package/es/flow/common/Markdown/style.d.ts +0 -10
  152. package/es/flow/common/Markdown/useCDN.d.ts +0 -9
  153. package/es/flow/components/BlockItemCard.d.ts +0 -16
  154. package/es/flow/components/ConditionBuilder.d.ts +0 -17
  155. package/es/flow/components/DefaultValue.d.ts +0 -20
  156. package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
  157. package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
  158. package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
  159. package/es/flow/components/FieldAssignEditor.d.ts +0 -32
  160. package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
  161. package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
  162. package/es/flow/components/FieldAssignValueInput.d.ts +0 -63
  163. package/es/flow/components/Grid/index.d.ts +0 -26
  164. package/es/flow/components/JsonEditor.d.ts +0 -19
  165. package/es/flow/components/RunJSValueEditor.d.ts +0 -19
  166. package/es/flow/components/SkeletonFallback.d.ts +0 -10
  167. package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
  168. package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
  169. package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
  170. package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
  171. package/es/flow/components/code-editor/extension/index.d.ts +0 -9
  172. package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
  173. package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
  174. package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
  175. package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
  176. package/es/flow/components/code-editor/index.d.ts +0 -31
  177. package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
  178. package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
  179. package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
  180. package/es/flow/components/code-editor/linter.d.ts +0 -19
  181. package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
  182. package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
  183. package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
  184. package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
  185. package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
  186. package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -43
  187. package/es/flow/components/code-editor/types.d.ts +0 -32
  188. package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
  189. package/es/flow/components/fieldAssignOptions.d.ts +0 -23
  190. package/es/flow/components/filter/FilterContainer.d.ts +0 -67
  191. package/es/flow/components/filter/FilterGroup.d.ts +0 -66
  192. package/es/flow/components/filter/FilterItem.d.ts +0 -40
  193. package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -28
  194. package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
  195. package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
  196. package/es/flow/components/filter/index.d.ts +0 -16
  197. package/es/flow/components/index.d.ts +0 -14
  198. package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
  199. package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
  200. package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
  201. package/es/flow/flows/openViewFlow.d.ts +0 -17
  202. package/es/flow/formily/ReactiveField.d.ts +0 -19
  203. package/es/flow/formily/index.d.ts +0 -8
  204. package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
  205. package/es/flow/index.d.ts +0 -24
  206. package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
  207. package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
  208. package/es/flow/internal/components/Markdown/md.d.ts +0 -11
  209. package/es/flow/internal/components/Markdown/style.d.ts +0 -9
  210. package/es/flow/internal/components/Markdown/util.d.ts +0 -15
  211. package/es/flow/internal/constants/HeightMode.d.ts +0 -13
  212. package/es/flow/internal/index.d.ts +0 -11
  213. package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
  214. package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
  215. package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
  216. package/es/flow/internal/utils/modelUtils.d.ts +0 -23
  217. package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
  218. package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
  219. package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
  220. package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
  221. package/es/flow/models/actions/AddChildActionModel.d.ts +0 -15
  222. package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
  223. package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -15
  224. package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
  225. package/es/flow/models/actions/EditActionModel.d.ts +0 -16
  226. package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
  227. package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
  228. package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
  229. package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
  230. package/es/flow/models/actions/LinkActionModel.d.ts +0 -18
  231. package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
  232. package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
  233. package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
  234. package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
  235. package/es/flow/models/actions/index.d.ts +0 -23
  236. package/es/flow/models/base/ActionGroupModel.d.ts +0 -28
  237. package/es/flow/models/base/ActionModel.d.ts +0 -45
  238. package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
  239. package/es/flow/models/base/BlockGridModel.d.ts +0 -21
  240. package/es/flow/models/base/BlockModel.d.ts +0 -31
  241. package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
  242. package/es/flow/models/base/CollectionBlockModel.d.ts +0 -89
  243. package/es/flow/models/base/CommonItemModel.d.ts +0 -11
  244. package/es/flow/models/base/DataBlockModel.d.ts +0 -12
  245. package/es/flow/models/base/FieldModel.d.ts +0 -17
  246. package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
  247. package/es/flow/models/base/GridModel.d.ts +0 -98
  248. package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -20
  249. package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
  250. package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
  251. package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
  252. package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
  253. package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -16
  254. package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
  255. package/es/flow/models/base/PageModel/index.d.ts +0 -14
  256. package/es/flow/models/base/PopupActionModel.d.ts +0 -13
  257. package/es/flow/models/base/RecordActionModel.d.ts +0 -12
  258. package/es/flow/models/base/RouteModel.d.ts +0 -11
  259. package/es/flow/models/base/index.d.ts +0 -24
  260. package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
  261. package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
  262. package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
  263. package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
  264. package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
  265. package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -37
  266. package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
  267. package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
  268. package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -53
  269. package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
  270. package/es/flow/models/blocks/details/index.d.ts +0 -14
  271. package/es/flow/models/blocks/details/utils.d.ts +0 -16
  272. package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
  273. package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
  274. package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
  275. package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
  276. package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
  277. package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
  278. package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
  279. package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -32
  280. package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
  281. package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
  282. package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
  283. package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
  284. package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
  285. package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
  286. package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
  287. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
  288. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
  289. package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
  290. package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
  291. package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
  292. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
  293. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
  294. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
  295. package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
  296. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
  297. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
  298. package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
  299. package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
  300. package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
  301. package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
  302. package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
  303. package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
  304. package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
  305. package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
  306. package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
  307. package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
  308. package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
  309. package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
  310. package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
  311. package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -21
  312. package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -24
  313. package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
  314. package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
  315. package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
  316. package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
  317. package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -95
  318. package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
  319. package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
  320. package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
  321. package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
  322. package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
  323. package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
  324. package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
  325. package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
  326. package/es/flow/models/blocks/form/index.d.ts +0 -21
  327. package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
  328. package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
  329. package/es/flow/models/blocks/form/submitValues.d.ts +0 -19
  330. package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
  331. package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
  332. package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
  333. package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
  334. package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
  335. package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -129
  336. package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -75
  337. package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
  338. package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
  339. package/es/flow/models/blocks/index.d.ts +0 -15
  340. package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
  341. package/es/flow/models/blocks/js-block/index.d.ts +0 -9
  342. package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
  343. package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
  344. package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
  345. package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
  346. package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -90
  347. package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -27
  348. package/es/flow/models/blocks/table/TableCustomColumnModel.d.ts +0 -12
  349. package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +0 -19
  350. package/es/flow/models/blocks/table/TableSelectModel.d.ts +0 -14
  351. package/es/flow/models/blocks/table/dragSort/dragSortComponents.d.ts +0 -14
  352. package/es/flow/models/blocks/table/dragSort/dragSortHooks.d.ts +0 -13
  353. package/es/flow/models/blocks/table/dragSort/dragSortSettings.d.ts +0 -39
  354. package/es/flow/models/blocks/table/dragSort/dragSortUtils.d.ts +0 -37
  355. package/es/flow/models/blocks/table/dragSort/index.d.ts +0 -12
  356. package/es/flow/models/blocks/table/index.d.ts +0 -16
  357. package/es/flow/models/blocks/table/utils.d.ts +0 -18
  358. package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
  359. package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -4
  360. package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
  361. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
  362. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
  363. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
  364. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
  365. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
  366. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
  367. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
  368. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
  369. package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -35
  370. package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
  371. package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
  372. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
  373. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
  374. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -18
  375. package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
  376. package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -94
  377. package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -59
  378. package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
  379. package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
  380. package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
  381. package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
  382. package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
  383. package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
  384. package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
  385. package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
  386. package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
  387. package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
  388. package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
  389. package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
  390. package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
  391. package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
  392. package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
  393. package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
  394. package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
  395. package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
  396. package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
  397. package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
  398. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
  399. package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
  400. package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
  401. package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
  402. package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -13
  403. package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
  404. package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
  405. package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
  406. package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
  407. package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
  408. package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
  409. package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
  410. package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
  411. package/es/flow/models/fields/JSItemModel.d.ts +0 -27
  412. package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
  413. package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
  414. package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
  415. package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
  416. package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
  417. package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
  418. package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
  419. package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
  420. package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
  421. package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
  422. package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
  423. package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
  424. package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
  425. package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
  426. package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
  427. package/es/flow/models/fields/index.d.ts +0 -47
  428. package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
  429. package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
  430. package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
  431. package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
  432. package/es/flow/models/index.d.ts +0 -12
  433. package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
  434. package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
  435. package/es/flow/utils/blockUtils.d.ts +0 -16
  436. package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
  437. package/es/flow/utils/index.d.ts +0 -10
  438. package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
  439. package/es/md-BbvRKckr.mjs +0 -61
  440. package/es/md-oH2RssNY.mjs +0 -61
  441. package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
  442. package/lib/md-BbvRKckr-IQIU5F3r.js +0 -1
  443. package/lib/md-oH2RssNY-IQIU5F3r.js +0 -1
@@ -6,10 +6,10 @@
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 { Application } from '../application';
10
- import { ToolsManager } from './tools-manager';
11
- export declare class AIManager {
12
- protected readonly app: Application;
13
- toolsManager: ToolsManager;
14
- constructor(app: Application);
15
- }
9
+ export declare const MOBILE_MENU_CLOSE_DELAY_MS = 220;
10
+ export declare const runAfterMobileMenuClosed: ({ isMobile, closeMobileMenu, callback, delayMs, }: {
11
+ isMobile: boolean;
12
+ closeMobileMenu: () => void;
13
+ callback: () => void;
14
+ delayMs?: number;
15
+ }) => void;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ import { NocoBaseDesktopRoute } from './route-types';
11
+ export declare const NocoBaseRouteContext: React.Context<NocoBaseDesktopRoute>;
12
+ export declare const CurrentRouteProvider: FC<{
13
+ uid: string;
14
+ }>;
15
+ export declare const useCurrentRoute: () => NocoBaseDesktopRoute;
16
+ export declare const useAllAccessDesktopRoutes: () => {
17
+ allAccessRoutes: NocoBaseDesktopRoute[];
18
+ refresh: () => Promise<NocoBaseDesktopRoute[]>;
19
+ };
20
+ export declare const RoutesRequestProvider: FC;
@@ -14,6 +14,10 @@ export declare enum NocoBaseDesktopRouteType {
14
14
  tabs = "tabs",
15
15
  flowPage = "flowPage"
16
16
  }
17
+ export interface NocoBaseDesktopRouteOptions {
18
+ hasPersistedMenuInstanceFlow?: boolean;
19
+ [key: string]: any;
20
+ }
17
21
  /**
18
22
  * 尽量与移动端的结构保持一致
19
23
  */
@@ -34,7 +38,7 @@ export interface NocoBaseDesktopRoute {
34
38
  */
35
39
  pageSchemaUid?: string;
36
40
  type?: NocoBaseDesktopRouteType;
37
- options?: any;
41
+ options?: NocoBaseDesktopRouteOptions;
38
42
  sort?: number;
39
43
  hideInMenu?: boolean;
40
44
  enableTabs?: boolean;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { NocoBaseDesktopRoute } from './route-types';
10
+ export declare function findRouteBySchemaUid(schemaUid: string, treeArray: NocoBaseDesktopRoute[]): any;
11
+ export declare function findRouteById(id: string, treeArray: NocoBaseDesktopRoute[]): any;
12
+ export declare function findFirstPageRoute(routes: NocoBaseDesktopRoute[]): any;
13
+ export declare function isGroup(groupId: string, allAccessRoutes: NocoBaseDesktopRoute[]): boolean;
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { theme } from 'antd';
10
- import { CustomToken } from '../../../../global-theme';
10
+ import type { CustomToken } from '@nocobase/client-v2';
11
11
  interface Result extends ReturnType<typeof theme.useToken> {
12
12
  token: CustomToken;
13
13
  }
@@ -9,7 +9,7 @@
9
9
  import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
10
10
  import { useStyleRegister } from '@ant-design/cssinjs';
11
11
  import type { ComponentTokenMap, GlobalToken } from 'antd/es/theme/interface';
12
- import { CustomToken } from '../../../global-theme';
12
+ import type { CustomToken } from '@nocobase/client-v2';
13
13
  export type OverrideComponent = keyof ComponentTokenMap | string;
14
14
  export interface StyleInfo {
15
15
  hashId: string;
@@ -6,61 +6,4 @@
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
- export declare const useColumnsDeepMemoized: (columns: any[]) => Pick<import("@formily/react").Stringify<{
10
- [key: symbol]: any;
11
- [key: `x-${string}`]: any;
12
- [key: `x-${number}`]: any;
13
- version?: string;
14
- name?: import("@formily/react").SchemaKey;
15
- title?: any;
16
- description?: any;
17
- default?: any;
18
- readOnly?: boolean;
19
- writeOnly?: boolean;
20
- type?: import("@formily/react").SchemaTypes;
21
- enum?: import("@formily/react").SchemaEnum<any>;
22
- const?: any;
23
- multipleOf?: number;
24
- maximum?: number;
25
- exclusiveMaximum?: number;
26
- minimum?: number;
27
- exclusiveMinimum?: number;
28
- maxLength?: number;
29
- minLength?: number;
30
- pattern?: string | RegExp;
31
- maxItems?: number;
32
- minItems?: number;
33
- uniqueItems?: boolean;
34
- maxProperties?: number;
35
- minProperties?: number;
36
- required?: string | boolean | string[];
37
- format?: string;
38
- $ref?: string;
39
- $namespace?: string;
40
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
41
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
42
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
43
- additionalItems?: import("@formily/react").Stringify<any>;
44
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
45
- additionalProperties?: import("@formily/react").Stringify<any>;
46
- "x-value"?: any;
47
- "x-index"?: number;
48
- "x-pattern"?: any;
49
- "x-display"?: any;
50
- "x-validator"?: any;
51
- "x-decorator"?: any;
52
- "x-decorator-props"?: any;
53
- "x-component"?: any;
54
- "x-component-props"?: any;
55
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
56
- "x-content"?: any;
57
- "x-data"?: any;
58
- "x-visible"?: boolean;
59
- "x-hidden"?: boolean;
60
- "x-disabled"?: boolean;
61
- "x-editable"?: boolean;
62
- "x-read-only"?: boolean;
63
- "x-read-pretty"?: boolean;
64
- "x-compile-omitted"?: string[];
65
- }>, symbol | "name" | "title" | "pattern" | "default" | "maximum" | "type" | "maxLength" | "minLength" | "readOnly" | "required" | "description" | `x-${string}` | `x-${number}` | "version" | "writeOnly" | "enum" | "const" | "multipleOf" | "exclusiveMaximum" | "minimum" | "exclusiveMinimum" | "maxItems" | "minItems" | "uniqueItems" | "maxProperties" | "minProperties" | "format" | "$ref" | "$namespace" | "definitions" | "items" | "additionalItems" | "patternProperties" | "additionalProperties">[];
66
9
  export declare const Table: any;
@@ -9,7 +9,7 @@
9
9
  import { GeneralField } from '@formily/core';
10
10
  import { Schema } from '@formily/react';
11
11
  import { FC } from 'react';
12
- import { Collection } from '../../../data-source';
12
+ import { Collection } from '../../../data-source/collection/Collection';
13
13
  import { AssociationFieldMode } from './AssociationFieldModeProvider';
14
14
  export declare const useInsertSchema: (component: any) => (ss: any) => void;
15
15
  export declare function useAssociationFieldContext<F extends GeneralField>(): {
@@ -10,6 +10,32 @@ import React from 'react';
10
10
  interface IDatePickerProps {
11
11
  utc?: boolean;
12
12
  }
13
+ /**
14
+ * 解析筛选日期组件的展示格式。
15
+ *
16
+ * 这里优先使用 schema 上显式配置的 dateFormat / format,
17
+ * 只有在当前 picker 没有自定义格式时才回退到默认 picker 格式。
18
+ *
19
+ * @param options 当前筛选日期组件的格式参数
20
+ * @returns 适用于当前 picker 的最终展示格式
21
+ * @example
22
+ * ```typescript
23
+ * resolveFilterPickerFormat({
24
+ * targetPicker: 'date',
25
+ * picker: 'date',
26
+ * dateFormat: 'MM/DD/YY',
27
+ * showTime: false,
28
+ * });
29
+ * ```
30
+ */
31
+ export declare const resolveFilterPickerFormat: (options: {
32
+ targetPicker: string;
33
+ picker?: string;
34
+ format?: string;
35
+ dateFormat?: string;
36
+ showTime?: boolean;
37
+ timeFormat?: string;
38
+ }) => any;
13
39
  export declare const useDatePickerContext: () => IDatePickerProps;
14
40
  export declare const DatePickerProvider: React.Provider<IDatePickerProps>;
15
41
  export declare const DatePicker: {
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- export declare const ExpandAction: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
10
+ export declare const ExpandAction: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
@@ -12,6 +12,11 @@ import React from 'react';
12
12
  export interface FormProps extends IFormLayoutProps {
13
13
  form?: FormilyForm;
14
14
  disabled?: boolean;
15
+ /**
16
+ * Override the internally calculated scroll container height.
17
+ * Used by blocks that compose additional headers/footers outside FormV2.
18
+ */
19
+ height?: number;
15
20
  }
16
21
  export declare const Form: React.FC<FormProps> & {
17
22
  Designer?: any;
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- import { NocoBaseDesktopRoute } from '../../../route-switch/antd/admin-layout/convertRoutesToSchema';
10
+ import { NocoBaseDesktopRoute } from '../../../route-switch/antd/admin-layout/route-types';
11
11
  type ComposedMenu = React.FC<any> & {
12
12
  Item?: React.FC<any>;
13
13
  URL?: React.FC<any>;
@@ -34,7 +34,7 @@ export declare const useNocoBaseRoutes: (collectionName?: string) => {
34
34
  /**
35
35
  * Insertion type - specifies whether to insert before or after the target element
36
36
  */
37
- method?: 'insertAfter' | 'prepend';
37
+ method?: 'insertBefore' | 'insertAfter' | 'prepend';
38
38
  refreshAfterMove?: boolean;
39
39
  }) => Promise<any>;
40
40
  };
@@ -12,6 +12,7 @@ interface PageProps {
12
12
  currentTabUid: string;
13
13
  className?: string;
14
14
  }
15
+ export declare const useKeepAliveLocationSearch: () => string;
15
16
  export declare const Page: React.MemoExoticComponent<(props: PageProps) => React.JSX.Element>;
16
17
  export declare const PageTabs: () => React.JSX.Element;
17
18
  export declare function navigateToTab({ activeKey, navigate, basename, pathname, }: {
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { ISchema } from '@formily/react';
10
10
  import _ from 'lodash';
11
- import { CollectionRecord } from '../../../data-source';
11
+ import { CollectionRecord } from '../../../data-source/collection-record/CollectionRecord';
12
12
  import { PopupContext } from './usePopupContextInActionOrAssociationField';
13
13
  export interface PopupParams {
14
14
  /** popup uid */
@@ -33,6 +33,10 @@ export interface AttachmentFileType {
33
33
  }>;
34
34
  Previewer?: React.ComponentType<PreviewerProps>;
35
35
  }
36
+ export declare const getNameFromUrl: (url?: string) => string;
37
+ export declare const getExtname: (value?: string) => string;
38
+ export declare const getTitleFromName: (value?: string) => string;
39
+ export declare const getFileDownloadName: (file: Partial<FileModel> & Record<string, any>) => string;
36
40
  export declare class AttachmentFileTypes {
37
41
  types: AttachmentFileType[];
38
42
  add(type: AttachmentFileType): void;
@@ -9,4 +9,4 @@
9
9
  import React from 'react';
10
10
  export declare function useAclCheck(actionPath: any): boolean;
11
11
  export declare const CreateAction: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
12
- export declare const CreateRecordAction: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
12
+ export declare const CreateRecordAction: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
@@ -7,7 +7,8 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React, { FC } from 'react';
10
- import { SchemaInitializer, SchemaSettings } from '../application';
10
+ import { SchemaInitializer } from '../application/schema-initializer/SchemaInitializer';
11
+ import { SchemaSettings } from '../application/schema-settings/SchemaSettings';
11
12
  export interface GeneralSchemaDesignerProps {
12
13
  disableInitializer?: boolean;
13
14
  title?: string;
@@ -10,7 +10,7 @@ import { GeneralField } from '@formily/core';
10
10
  import { ISchema, Schema } from '@formily/react';
11
11
  import { CascaderProps, MenuItemProps, ModalFuncProps } from 'antd';
12
12
  import React, { FC, ReactNode } from 'react';
13
- import { SchemaSettingsItemType } from '../';
13
+ import { SchemaSettingsItemType } from '../application/schema-settings/types';
14
14
  import { CollectionFieldOptions_deprecated } from '../collection-manager/types';
15
15
  import { SelectWithTitleProps } from '../common/SelectWithTitle';
16
16
  import { Designable } from '../schema-component/hooks/useDesignable';
@@ -69,6 +69,8 @@ export interface SchemaSettingsRemoveProps {
69
69
  removeParentsIfNoChildren?: boolean;
70
70
  breakRemoveOn?: ISchema | ((s: ISchema) => boolean);
71
71
  }
72
+ export declare const getSchemaSettingsDialogZIndex: (parentZIndex: number) => number;
73
+ export declare const getSchemaSettingsConfirmZIndex: (parentZIndex: number) => number;
72
74
  export declare const SchemaSettingsRemove: FC<SchemaSettingsRemoveProps>;
73
75
  export interface SchemaSettingsSelectItemProps extends Omit<SchemaSettingsItemProps, 'onChange' | 'onClick'>, Omit<SelectWithTitleProps, 'title' | 'defaultValue'> {
74
76
  value?: SelectWithTitleProps['defaultValue'];
@@ -8,6 +8,24 @@
8
8
  */
9
9
  import { Schema } from '@formily/react';
10
10
  import React from 'react';
11
+ /**
12
+ * 将 CollectionField 的 uiSchema 映射到默认值弹窗里真正渲染的字段 schema。
13
+ *
14
+ * 默认值弹窗不会直接渲染 CollectionField,而是会把它替换成实际的表单组件。
15
+ * 这里必须把选项字段依赖的 `enum` 也带过去,否则下拉 / 单选 / 多选在弹窗里会没有可选项。
16
+ *
17
+ * @param clonedSchema 当前字段 schema 的克隆副本
18
+ * @param collectionFieldUiSchema 数据表字段上的 uiSchema
19
+ * @example
20
+ * ```typescript
21
+ * const schema = { 'x-component': 'CollectionField' };
22
+ * applyCollectionFieldUiSchemaToDefaultValueSchema(schema, {
23
+ * 'x-component': 'Select',
24
+ * enum: [{ label: 'Option 1', value: 'option1' }],
25
+ * });
26
+ * ```
27
+ */
28
+ export declare const applyCollectionFieldUiSchemaToDefaultValueSchema: (clonedSchema: Record<string, any>, collectionFieldUiSchema: Record<string, any>) => void;
11
29
  export declare const SchemaSettingsDefaultValue: (props: {
12
30
  fieldSchema?: Schema;
13
31
  hideVariableButton?: boolean;
@@ -13,8 +13,8 @@ export declare const useParentObjectContext: () => {
13
13
  shouldDisplayParentObject: boolean;
14
14
  /** 变量的值 */
15
15
  parentObjectCtx: any;
16
- collectionName: string;
17
- dataSource: string;
16
+ collectionName: any;
17
+ dataSource: any;
18
18
  };
19
19
  /**
20
20
  * 变量:`上级对象`
@@ -34,5 +34,5 @@ export declare const useParentObjectVariable: ({ collectionField, schema, noDisa
34
34
  shouldDisplayParentObject: boolean;
35
35
  /** 变量的值 */
36
36
  parentObjectCtx: any;
37
- collectionName: string;
37
+ collectionName: any;
38
38
  };
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { CreateStylesUtils, createStyles } from 'antd-style';
10
- import { CustomToken } from '../global-theme';
10
+ import type { CustomToken } from '@nocobase/client-v2';
11
11
  export * from './useToken';
12
12
  export { createStyles };
13
13
  export interface CustomCreateStylesUtils extends CreateStylesUtils {
@@ -7,7 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { theme } from 'antd';
10
- import { CustomToken } from '../global-theme';
10
+ import type { CustomToken } from '@nocobase/client-v2';
11
11
  interface Result extends ReturnType<typeof theme.useToken> {
12
12
  token: CustomToken;
13
13
  }
@@ -6,9 +6,4 @@
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, { ReactNode } from 'react';
10
- export declare const SystemSettingsContext: React.Context<any>;
11
- export declare const useSystemSettings: () => any;
12
- export declare const SystemSettingsProvider: React.FC<{
13
- children?: ReactNode;
14
- }>;
9
+ export { useSystemSettings } from '@nocobase/client-v2';
@@ -7,4 +7,11 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
+ type SystemSettingsMutationData = {
11
+ data?: Record<string, unknown>;
12
+ };
13
+ export declare const getSystemSettingsMutationData: (response: {
14
+ data?: SystemSettingsMutationData;
15
+ } | undefined, currentData: SystemSettingsMutationData | undefined, values: Record<string, unknown>) => SystemSettingsMutationData;
10
16
  export declare const SystemSettingsPane: () => React.JSX.Element;
17
+ export {};
@@ -6,5 +6,4 @@
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
- export * from './Sortable';
10
- export * from './SortableItem';
9
+ export { SystemSettingsSource } from '@nocobase/client-v2';
@@ -6,7 +6,8 @@
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
- export * from './SystemSettingsProvider';
9
+ export { SystemSettingsSource } from './SystemSettingsSource';
10
+ export { useSystemSettings } from './SystemSettingsProvider';
10
11
  export * from './SystemSettingsShortcut';
11
12
  import { Plugin } from '../application/Plugin';
12
13
  export declare class SystemSettingsPlugin extends Plugin {
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}.nb-hidden{display:none}.nb-dialog-overflow-hidden .ant-modal-content{overflow:hidden}.ant-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important;color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected.ant-menu-submenu-selected>.ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
1
+ ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}.nb-hidden{display:none}.nb-dialog-overflow-hidden .ant-modal-content{overflow:hidden}.ant-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected.ant-menu-submenu-selected>.ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}