@nocobase/client 2.1.0-beta.21 → 2.1.0-beta.23

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 (419) hide show
  1. package/es/ai/index.d.ts +2 -4
  2. package/es/api-client/APIClient.d.ts +1 -2
  3. package/es/application/Application.d.ts +69 -139
  4. package/es/application/Plugin.d.ts +2 -24
  5. package/es/application/PluginManager.d.ts +7 -36
  6. package/es/application/PluginSettingsManager.d.ts +103 -7
  7. package/es/application/RouteRepository.d.ts +1 -15
  8. package/es/application/RouterManager.d.ts +4 -44
  9. package/es/application/WebSocketClient.d.ts +2 -36
  10. package/es/application/components/index.d.ts +0 -2
  11. package/es/application/hooks/usePlugin.d.ts +2 -2
  12. package/es/application/schema-initializer/context/index.d.ts +1 -1
  13. package/es/application/schema-settings/hooks/useSchemaSettingsRender.d.ts +2 -2
  14. package/es/application/utils/remotePlugins.d.ts +6 -6
  15. package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
  16. package/es/block-provider/TableBlockProvider.d.ts +0 -11
  17. package/es/block-provider/index.d.ts +1 -0
  18. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
  19. package/es/collection-manager/templates/sql.d.ts +4 -4
  20. package/es/collection-manager/templates/view.d.ts +4 -4
  21. package/es/data-source/collection/utils.d.ts +3 -3
  22. package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
  23. package/es/global-theme/AntdAppProvider.d.ts +1 -10
  24. package/es/global-theme/compatOldTheme.d.ts +1 -3
  25. package/es/global-theme/customAlgorithm.d.ts +1 -7
  26. package/es/global-theme/defaultTheme.d.ts +1 -3
  27. package/es/global-theme/index.d.ts +2 -29
  28. package/es/global-theme/type.d.ts +1 -56
  29. package/es/index.d.ts +1 -1
  30. package/es/index.mjs +507 -1118
  31. package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
  32. package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
  33. package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
  34. package/es/plugin-manager/context.d.ts +1 -4
  35. package/es/pm/AdminSettingsLayoutModel.d.ts +2 -4
  36. package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
  37. package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
  38. package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
  39. package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
  40. package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +64 -0
  41. package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
  42. package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +22 -16
  43. package/es/{application/components/AppComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -6
  44. package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
  45. package/es/route-switch/antd/admin-layout/index.d.ts +12 -27
  46. package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
  47. package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
  48. package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
  49. package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
  50. package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
  51. package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
  52. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  53. package/es/schema-component/antd/menu/Menu.d.ts +2 -2
  54. package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
  55. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  56. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  57. package/es/schema-settings/SchemaSettings.d.ts +1 -1
  58. package/es/style/index.d.ts +1 -1
  59. package/es/style/useToken.d.ts +1 -1
  60. package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
  61. package/es/{flow/components/code-editor/extension/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -1
  62. package/es/system-settings/index.d.ts +2 -1
  63. package/lib/index.js +530 -1141
  64. package/lib/locale/en-US.json +11 -0
  65. package/lib/locale/zh-CN.json +12 -1
  66. package/package.json +7 -6
  67. package/es/ai/ai-manager.d.ts +0 -15
  68. package/es/ai/skills-manager/index.d.ts +0 -9
  69. package/es/ai/skills-manager/types.d.ts +0 -23
  70. package/es/ai/tools-manager/hooks/context.d.ts +0 -17
  71. package/es/ai/tools-manager/hooks/index.d.ts +0 -11
  72. package/es/ai/tools-manager/hooks/provider.d.ts +0 -16
  73. package/es/ai/tools-manager/index.d.ts +0 -20
  74. package/es/ai/tools-manager/types.d.ts +0 -90
  75. package/es/ai/utils.d.ts +0 -10
  76. package/es/application/components/MainComponent.d.ts +0 -10
  77. package/es/application/components/defaultComponents.d.ts +0 -19
  78. package/es/flow/FlowModelRepository.d.ts +0 -36
  79. package/es/flow/FlowPage.d.ts +0 -20
  80. package/es/flow/actions/aclCheck.d.ts +0 -9
  81. package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
  82. package/es/flow/actions/afterSuccess.d.ts +0 -9
  83. package/es/flow/actions/blockHeight.d.ts +0 -9
  84. package/es/flow/actions/columnFixed.d.ts +0 -9
  85. package/es/flow/actions/confirm.d.ts +0 -9
  86. package/es/flow/actions/customVariable.d.ts +0 -9
  87. package/es/flow/actions/dataLoadingMode.d.ts +0 -9
  88. package/es/flow/actions/dataScope.d.ts +0 -9
  89. package/es/flow/actions/dateTimeFormat.d.ts +0 -9
  90. package/es/flow/actions/displayFieldComponent.d.ts +0 -19
  91. package/es/flow/actions/fieldComponent.d.ts +0 -9
  92. package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
  93. package/es/flow/actions/formAssignRules.d.ts +0 -9
  94. package/es/flow/actions/index.d.ts +0 -40
  95. package/es/flow/actions/layout.d.ts +0 -10
  96. package/es/flow/actions/linkageRules.d.ts +0 -23
  97. package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
  98. package/es/flow/actions/navigateToURL.d.ts +0 -9
  99. package/es/flow/actions/numberFormat.d.ts +0 -9
  100. package/es/flow/actions/openView.d.ts +0 -15
  101. package/es/flow/actions/overflowMode.d.ts +0 -9
  102. package/es/flow/actions/pattern.d.ts +0 -9
  103. package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
  104. package/es/flow/actions/renderMode.d.ts +0 -9
  105. package/es/flow/actions/required.d.ts +0 -9
  106. package/es/flow/actions/runjs.d.ts +0 -9
  107. package/es/flow/actions/setTargetDataScope.d.ts +0 -10
  108. package/es/flow/actions/showMessage.d.ts +0 -9
  109. package/es/flow/actions/showNotification.d.ts +0 -9
  110. package/es/flow/actions/sortingRules.d.ts +0 -9
  111. package/es/flow/actions/titleField.d.ts +0 -9
  112. package/es/flow/actions/validation.d.ts +0 -9
  113. package/es/flow/common/Liquid.d.ts +0 -33
  114. package/es/flow/common/Markdown/Display.d.ts +0 -9
  115. package/es/flow/common/Markdown/Edit.d.ts +0 -23
  116. package/es/flow/common/Markdown/Markdown.d.ts +0 -24
  117. package/es/flow/common/Markdown/style.d.ts +0 -10
  118. package/es/flow/common/Markdown/useCDN.d.ts +0 -9
  119. package/es/flow/components/BlockItemCard.d.ts +0 -16
  120. package/es/flow/components/ConditionBuilder.d.ts +0 -17
  121. package/es/flow/components/DefaultValue.d.ts +0 -20
  122. package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
  123. package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
  124. package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
  125. package/es/flow/components/FieldAssignEditor.d.ts +0 -32
  126. package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
  127. package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
  128. package/es/flow/components/FieldAssignValueInput.d.ts +0 -88
  129. package/es/flow/components/Grid/index.d.ts +0 -26
  130. package/es/flow/components/JsonEditor.d.ts +0 -19
  131. package/es/flow/components/RunJSValueEditor.d.ts +0 -19
  132. package/es/flow/components/SkeletonFallback.d.ts +0 -10
  133. package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
  134. package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
  135. package/es/flow/components/code-editor/core/tooltipParent.d.ts +0 -9
  136. package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
  137. package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
  138. package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
  139. package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
  140. package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
  141. package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
  142. package/es/flow/components/code-editor/index.d.ts +0 -31
  143. package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
  144. package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
  145. package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
  146. package/es/flow/components/code-editor/linter.d.ts +0 -19
  147. package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
  148. package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
  149. package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
  150. package/es/flow/components/code-editor/resolveScenes.d.ts +0 -10
  151. package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
  152. package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
  153. package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -46
  154. package/es/flow/components/code-editor/types.d.ts +0 -32
  155. package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
  156. package/es/flow/components/drag-drop/index.d.ts +0 -10
  157. package/es/flow/components/fieldAssignOptions.d.ts +0 -23
  158. package/es/flow/components/filter/FilterContainer.d.ts +0 -67
  159. package/es/flow/components/filter/FilterGroup.d.ts +0 -66
  160. package/es/flow/components/filter/FilterItem.d.ts +0 -40
  161. package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -51
  162. package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
  163. package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
  164. package/es/flow/components/filter/index.d.ts +0 -16
  165. package/es/flow/components/index.d.ts +0 -14
  166. package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
  167. package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
  168. package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
  169. package/es/flow/flows/openViewFlow.d.ts +0 -17
  170. package/es/flow/formily/ReactiveField.d.ts +0 -19
  171. package/es/flow/formily/index.d.ts +0 -8
  172. package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
  173. package/es/flow/index.d.ts +0 -24
  174. package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
  175. package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
  176. package/es/flow/internal/components/Markdown/md.d.ts +0 -11
  177. package/es/flow/internal/components/Markdown/style.d.ts +0 -9
  178. package/es/flow/internal/components/Markdown/util.d.ts +0 -15
  179. package/es/flow/internal/constants/HeightMode.d.ts +0 -13
  180. package/es/flow/internal/index.d.ts +0 -11
  181. package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
  182. package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
  183. package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
  184. package/es/flow/internal/utils/modelUtils.d.ts +0 -27
  185. package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
  186. package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
  187. package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
  188. package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
  189. package/es/flow/models/actions/AddChildActionModel.d.ts +0 -16
  190. package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
  191. package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -16
  192. package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
  193. package/es/flow/models/actions/EditActionModel.d.ts +0 -16
  194. package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
  195. package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
  196. package/es/flow/models/actions/JSActionModel.d.ts +0 -13
  197. package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
  198. package/es/flow/models/actions/JSItemActionModel.d.ts +0 -19
  199. package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
  200. package/es/flow/models/actions/LinkActionModel.d.ts +0 -15
  201. package/es/flow/models/actions/LinkActionUtils.d.ts +0 -34
  202. package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
  203. package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
  204. package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
  205. package/es/flow/models/actions/UpdateRecordActionUtils.d.ts +0 -12
  206. package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
  207. package/es/flow/models/actions/index.d.ts +0 -24
  208. package/es/flow/models/actions/joinUrlSearch.d.ts +0 -12
  209. package/es/flow/models/base/ActionGroupModel.d.ts +0 -36
  210. package/es/flow/models/base/ActionModel.d.ts +0 -45
  211. package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
  212. package/es/flow/models/base/BlockGridModel.d.ts +0 -22
  213. package/es/flow/models/base/BlockModel.d.ts +0 -57
  214. package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
  215. package/es/flow/models/base/CollectionBlockModel.d.ts +0 -71
  216. package/es/flow/models/base/CommonItemModel.d.ts +0 -11
  217. package/es/flow/models/base/DataBlockModel.d.ts +0 -12
  218. package/es/flow/models/base/FieldModel.d.ts +0 -17
  219. package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
  220. package/es/flow/models/base/GridModel.d.ts +0 -99
  221. package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -21
  222. package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
  223. package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
  224. package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
  225. package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
  226. package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -24
  227. package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
  228. package/es/flow/models/base/PageModel/index.d.ts +0 -14
  229. package/es/flow/models/base/PopupActionModel.d.ts +0 -13
  230. package/es/flow/models/base/RecordActionModel.d.ts +0 -12
  231. package/es/flow/models/base/RouteModel.d.ts +0 -11
  232. package/es/flow/models/base/index.d.ts +0 -24
  233. package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
  234. package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
  235. package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
  236. package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
  237. package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
  238. package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -41
  239. package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
  240. package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
  241. package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -60
  242. package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
  243. package/es/flow/models/blocks/details/index.d.ts +0 -14
  244. package/es/flow/models/blocks/details/utils.d.ts +0 -16
  245. package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
  246. package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
  247. package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
  248. package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
  249. package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
  250. package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
  251. package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
  252. package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -43
  253. package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
  254. package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
  255. package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
  256. package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
  257. package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
  258. package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
  259. package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
  260. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
  261. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
  262. package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
  263. package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
  264. package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
  265. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
  266. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
  267. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
  268. package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
  269. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
  270. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
  271. package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
  272. package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
  273. package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
  274. package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
  275. package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
  276. package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
  277. package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
  278. package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
  279. package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
  280. package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
  281. package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
  282. package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
  283. package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
  284. package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -22
  285. package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -26
  286. package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
  287. package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
  288. package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
  289. package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
  290. package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -96
  291. package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
  292. package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
  293. package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
  294. package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
  295. package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
  296. package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
  297. package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
  298. package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
  299. package/es/flow/models/blocks/form/index.d.ts +0 -21
  300. package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
  301. package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
  302. package/es/flow/models/blocks/form/submitValues.d.ts +0 -40
  303. package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
  304. package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
  305. package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
  306. package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
  307. package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
  308. package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -137
  309. package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -88
  310. package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
  311. package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
  312. package/es/flow/models/blocks/index.d.ts +0 -15
  313. package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
  314. package/es/flow/models/blocks/js-block/index.d.ts +0 -9
  315. package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
  316. package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
  317. package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
  318. package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
  319. package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -68
  320. package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -29
  321. package/es/flow/models/blocks/table/TableCustomColumnModel.d.ts +0 -12
  322. package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +0 -19
  323. package/es/flow/models/blocks/table/TableSelectModel.d.ts +0 -14
  324. package/es/flow/models/blocks/table/dragSort/dragSortComponents.d.ts +0 -14
  325. package/es/flow/models/blocks/table/dragSort/dragSortHooks.d.ts +0 -13
  326. package/es/flow/models/blocks/table/dragSort/dragSortSettings.d.ts +0 -39
  327. package/es/flow/models/blocks/table/dragSort/dragSortUtils.d.ts +0 -37
  328. package/es/flow/models/blocks/table/dragSort/index.d.ts +0 -12
  329. package/es/flow/models/blocks/table/index.d.ts +0 -16
  330. package/es/flow/models/blocks/table/sortUtils.d.ts +0 -32
  331. package/es/flow/models/blocks/table/utils.d.ts +0 -18
  332. package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
  333. package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -5
  334. package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
  335. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
  336. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
  337. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
  338. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
  339. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
  340. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
  341. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/popupSubTableBeforeClose.d.ts +0 -25
  342. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
  343. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
  344. package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -45
  345. package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
  346. package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
  347. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
  348. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
  349. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -19
  350. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/rowIdentity.d.ts +0 -18
  351. package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
  352. package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -99
  353. package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -48
  354. package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
  355. package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
  356. package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
  357. package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
  358. package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
  359. package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
  360. package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
  361. package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
  362. package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
  363. package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
  364. package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
  365. package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
  366. package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
  367. package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +0 -14
  368. package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
  369. package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
  370. package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
  371. package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
  372. package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
  373. package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
  374. package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
  375. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
  376. package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
  377. package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
  378. package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
  379. package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -14
  380. package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
  381. package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
  382. package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
  383. package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
  384. package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
  385. package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
  386. package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
  387. package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
  388. package/es/flow/models/fields/JSItemModel.d.ts +0 -27
  389. package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
  390. package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
  391. package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
  392. package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
  393. package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
  394. package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
  395. package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
  396. package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
  397. package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
  398. package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
  399. package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
  400. package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
  401. package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
  402. package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
  403. package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
  404. package/es/flow/models/fields/index.d.ts +0 -47
  405. package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
  406. package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
  407. package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
  408. package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
  409. package/es/flow/models/index.d.ts +0 -12
  410. package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
  411. package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
  412. package/es/flow/utils/actionCapability.d.ts +0 -60
  413. package/es/flow/utils/blockUtils.d.ts +0 -16
  414. package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
  415. package/es/flow/utils/index.d.ts +0 -11
  416. package/es/flow/utils/pagination.d.ts +0 -29
  417. package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
  418. package/es/route-switch/antd/admin-layout/AdminLayoutRouteCoordinator.d.ts +0 -50
  419. package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import React from 'react';
10
10
  export declare const getVariableComponentWithScope: (Com: any, data?: any[]) => (props: any) => React.JSX.Element;
11
+ export declare const FlowSettingsVariableTextArea: (props: any) => React.JSX.Element;
11
12
  export declare const useURLAndHTMLSchema: () => {
12
13
  urlSchema: {
13
14
  title: string;
@@ -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 { Collection } from '../../data-source';
10
+ import { Collection } from '../../data-source/collection/Collection';
11
11
  export declare const BlockSchemaToolbar: (props: any) => React.JSX.Element;
12
12
  export declare function getCollectionTitle(arg: {
13
13
  collectionTitle: string;
@@ -7,8 +7,9 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
+ import { type PinnedPluginListItems } from './context';
10
11
  export declare const PinnedPluginListProvider: React.FC<{
11
- items: any;
12
+ items: PinnedPluginListItems;
12
13
  }>;
13
14
  export declare const PinnedPluginList: React.MemoExoticComponent<(props: {
14
15
  onClick?: () => void;
@@ -6,7 +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
- /// <reference types="react" />
10
- export declare const PinnedPluginListContext: import("react").Context<{
11
- items: {};
12
- }>;
9
+ export { getPinnedPluginListKeys, PinnedPluginListContext, type PinnedPluginListContextValue, type PinnedPluginListItem, type PinnedPluginListItems, } from '@nocobase/client-v2';
@@ -6,8 +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 { FlowModel } from '@nocobase/flow-engine';
10
- import React from 'react';
11
- export declare class AdminSettingsLayoutModel extends FlowModel {
12
- render(): React.JSX.Element;
9
+ import { AdminSettingsLayoutModel as BaseAdminSettingsLayoutModel } from '@nocobase/client-v2';
10
+ export declare class AdminSettingsLayoutModel extends BaseAdminSettingsLayoutModel {
13
11
  }
@@ -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 function FieldPlaceholder(): React.JSX.Element;
10
+ export declare const AdminDynamicPage: () => React.JSX.Element;
@@ -0,0 +1,32 @@
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 type { NavigateFunction } from 'react-router-dom';
10
+ import { useNavigateNoUpdate, useRouterBasename } from '../../../application/CustomRouterContextProvider';
11
+ import { appendQueryStringToUrl, reduceValueSize } from '../../../block-provider/hooks';
12
+ import { withTooltipComponent } from '../../../hoc/withTooltipComponent';
13
+ import { getFlowPageMenuSchema } from '../../../modules/menu/FlowPageMenuItem';
14
+ import { getPageMenuSchema } from '../../../modules/menu/PageMenuItem';
15
+ import { VariableScope } from '../../../variables/VariableScope';
16
+ import { isVariable } from '../../../variables/utils/isVariable';
17
+ import { ParentRouteContext } from '../../../schema-component/antd/menu/Menu';
18
+ import { NocoBaseRouteContext } from './route-runtime';
19
+ import { findFirstPageRoute } from './route-utils';
20
+ export { appendQueryStringToUrl, getFlowPageMenuSchema, getPageMenuSchema, isVariable, NocoBaseRouteContext, ParentRouteContext, reduceValueSize, useNavigateNoUpdate, useRouterBasename, VariableScope, withTooltipComponent, findFirstPageRoute, };
21
+ /**
22
+ * 兼容 v2 菜单副本里保留的两参调用签名。
23
+ */
24
+ export declare const useEvaluatedExpression: (expression: string, _context?: unknown) => string | number;
25
+ /**
26
+ * 补全站内 URL。
27
+ */
28
+ export declare function completeURL(url: string, origin?: string): string;
29
+ /**
30
+ * 在当前窗口内跳转链接。
31
+ */
32
+ export declare function navigateWithinSelf(link: string, navigate: NavigateFunction, basePath?: string): void;
@@ -0,0 +1,15 @@
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 from 'react';
10
+ import { AdminLayoutMenuItemModel } from './AdminLayoutMenuModels';
11
+ /**
12
+ * @internal 供单测覆盖当前激活分支的 legacy 恢复递归逻辑。
13
+ */
14
+ export declare const hydrateLegacyActiveMenuPersistedStateForTest: (items: AdminLayoutMenuItemModel[] | undefined, pathname: string, basename?: string) => Promise<boolean>;
15
+ export declare const AdminLayoutComponent: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
@@ -0,0 +1,107 @@
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 type { FlowSettingsContext } from '@nocobase/flow-engine';
10
+ import { AdminLayoutMenuCreationMeta, AdminLayoutMenuCreationParams, AdminLayoutMenuCreationType, AdminLayoutMenuInsertPosition, getAdminLayoutMenuMovePositionOptions } from './AdminLayoutMenuUtils';
11
+ import { type NocoBaseDesktopRoute } from './route-types';
12
+ declare const buildLinkSettingSchema: (t: (title: any) => any) => {
13
+ href: {
14
+ title: any;
15
+ type: string;
16
+ 'x-decorator': string;
17
+ 'x-component': string;
18
+ 'x-component-props': {
19
+ rows: number;
20
+ maxRows: number;
21
+ };
22
+ description: any;
23
+ };
24
+ params: {
25
+ type: string;
26
+ title: any;
27
+ 'x-component': string;
28
+ 'x-decorator': string;
29
+ items: {
30
+ type: string;
31
+ properties: {
32
+ space: {
33
+ type: string;
34
+ 'x-component': string;
35
+ properties: {
36
+ name: {
37
+ type: string;
38
+ 'x-decorator': string;
39
+ 'x-component': string;
40
+ 'x-component-props': {
41
+ placeholder: any;
42
+ };
43
+ };
44
+ value: {
45
+ type: string;
46
+ 'x-decorator': string;
47
+ 'x-component': string;
48
+ 'x-component-props': {
49
+ placeholder: any;
50
+ rows: number;
51
+ maxRows: number;
52
+ useTypedConstant: boolean;
53
+ changeOnSelect: boolean;
54
+ };
55
+ };
56
+ remove: {
57
+ type: string;
58
+ 'x-decorator': string;
59
+ 'x-component': string;
60
+ };
61
+ };
62
+ };
63
+ };
64
+ };
65
+ properties: {
66
+ add: {
67
+ type: string;
68
+ title: any;
69
+ 'x-component': string;
70
+ };
71
+ };
72
+ };
73
+ openInNewWindow: {
74
+ type: string;
75
+ 'x-content': any;
76
+ 'x-decorator': string;
77
+ 'x-component': string;
78
+ };
79
+ };
80
+ export declare const insertRouteSchema: (api: {
81
+ request: (options: any) => Promise<any>;
82
+ }, schema: Record<string, any>) => Promise<void>;
83
+ export declare const getMenuCreationDefaultParams: (meta: AdminLayoutMenuCreationMeta | undefined) => AdminLayoutMenuCreationParams;
84
+ declare const MENU_TYPE_OPTIONS: Array<{
85
+ label: string;
86
+ value: AdminLayoutMenuCreationType;
87
+ }>;
88
+ export declare const buildMenuBasicSchema: (t: (title: any) => any) => Record<string, any>;
89
+ export declare const getMenuEditDefaultParams: (route: NocoBaseDesktopRoute | undefined) => AdminLayoutMenuCreationParams;
90
+ export declare const getMenuCreationUiSchema: (t: (title: any) => any, meta: AdminLayoutMenuCreationMeta | undefined) => Record<string, any>;
91
+ export declare const createInsertMenuStep: (options: {
92
+ title: string;
93
+ insertPosition: AdminLayoutMenuInsertPosition;
94
+ hideInSettings?: (ctx: FlowSettingsContext<any>) => Promise<boolean>;
95
+ canCreate?: (route: NocoBaseDesktopRoute) => boolean;
96
+ resolveParentRoute: (ctx: FlowSettingsContext<any>, route: NocoBaseDesktopRoute) => NocoBaseDesktopRoute | undefined;
97
+ }) => Record<string, any>;
98
+ export declare const toTreeSelectItems: (routes: NocoBaseDesktopRoute[], ctx: Pick<FlowSettingsContext<any>, 'resolveJsonTemplate' | 't'>) => any;
99
+ export declare const findPrevSiblingRoute: (routes: NocoBaseDesktopRoute[], currentRoute: NocoBaseDesktopRoute | undefined) => any;
100
+ export declare const findNextSiblingRoute: (routes: NocoBaseDesktopRoute[], currentRoute: NocoBaseDesktopRoute | undefined) => any;
101
+ export declare const matchesRoutePath: (route: NocoBaseDesktopRoute | undefined, pathname: string, basename?: string) => boolean;
102
+ export declare const buildInsertRouteSchema: (menuType: AdminLayoutMenuCreationType, pageSchemaUid: string, tabSchemaUid: string, tabSchemaName: string) => {
103
+ type: string;
104
+ 'x-component': string;
105
+ 'x-uid': any;
106
+ };
107
+ export { getAdminLayoutMenuMovePositionOptions, MENU_TYPE_OPTIONS, buildLinkSettingSchema };
@@ -0,0 +1,64 @@
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 from 'react';
10
+ import { FlowModel } from '@nocobase/flow-engine';
11
+ import { AdminLayoutMenuCreationMeta, AdminLayoutMenuCreationParams, AdminLayoutMenuInsertPosition, AdminLayoutMenuItemStructure, AdminLayoutMenuNode, AdminLayoutMenuRouteOptions } from './AdminLayoutMenuUtils';
12
+ import { type NocoBaseDesktopRoute } from './route-types';
13
+ export * from './AdminLayoutMenuUtils';
14
+ export { insertRouteSchema } from './AdminLayoutMenuFlowUtils';
15
+ export declare class AdminLayoutMenuItemModel extends FlowModel<AdminLayoutMenuItemStructure> {
16
+ private creationPersisted;
17
+ private persistedStateHydrated;
18
+ private persistedStateHydrating?;
19
+ onInit(options: any): void;
20
+ syncFromRoute(route: NocoBaseDesktopRoute, parentRoute?: NocoBaseDesktopRoute): void;
21
+ getRoute(): NocoBaseDesktopRoute;
22
+ getParentRoute(): NocoBaseDesktopRoute;
23
+ getCreationMeta(): AdminLayoutMenuCreationMeta;
24
+ isCreationSession(): boolean;
25
+ shouldHydratePersistedState(): boolean;
26
+ hydrateLegacyPersistedStateIfCurrentPath(pathname: string, basename?: string): Promise<boolean>;
27
+ openFlowSettings(options?: Parameters<FlowModel['openFlowSettings']>[0]): Promise<boolean>;
28
+ getRouteRepository(): any;
29
+ hasPersistedMenuInstanceFlowFlag(route?: NocoBaseDesktopRoute): boolean;
30
+ getCurrentPersistedInstanceFlowCount(): number;
31
+ buildRouteOptionsWithPersistedFlowFlag(hasPersistedMenuInstanceFlow: boolean): {
32
+ [x: string]: any;
33
+ hasPersistedMenuInstanceFlow?: boolean;
34
+ };
35
+ syncPersistedFlowRouteFlag(): Promise<void>;
36
+ destroyPersistedState(): Promise<void>;
37
+ /**
38
+ * 按固定 uid 从 flowModels 仓库恢复实例级事件流与步骤参数。
39
+ *
40
+ * @returns {Promise<void>} 恢复完成
41
+ */
42
+ hydratePersistedState(): Promise<void>;
43
+ /**
44
+ * 判断当前菜单模型是否存在需要通过 flowModels 持久化的实例事件流。
45
+ *
46
+ * @returns {boolean} 是否需要走 FlowModel 默认保存链路
47
+ */
48
+ hasPersistableInstanceFlows(): boolean;
49
+ insertRouteSchema(schema: Record<string, any>): Promise<void>;
50
+ createMenuRoute(route: NocoBaseDesktopRoute, options?: {
51
+ parentId?: string | number;
52
+ refreshAfterMutation?: boolean;
53
+ }): Promise<any>;
54
+ createRouteForInsert(route: NocoBaseDesktopRoute, insertPosition: AdminLayoutMenuInsertPosition, targetRoute?: NocoBaseDesktopRoute): Promise<any>;
55
+ createMenuFromMeta(meta: AdminLayoutMenuCreationMeta, values: AdminLayoutMenuCreationParams): Promise<void>;
56
+ persistMenuCreation(values: AdminLayoutMenuCreationParams): Promise<void>;
57
+ updateMenuRoute(values: Partial<NocoBaseDesktopRoute>): Promise<void>;
58
+ moveMenuRoute(target: string, position: 'beforeBegin' | 'afterEnd' | 'beforeEnd'): Promise<void>;
59
+ saveStepParams(): Promise<boolean>;
60
+ save(): Promise<boolean>;
61
+ destroy(): Promise<boolean>;
62
+ toProLayoutRoute(options: AdminLayoutMenuRouteOptions): AdminLayoutMenuNode | null;
63
+ render(): React.JSX.Element;
64
+ }
@@ -0,0 +1,164 @@
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 { FlowModel } from '@nocobase/flow-engine';
10
+ import React, { FC } from 'react';
11
+ import { type NavigateFunction } from 'react-router-dom';
12
+ import type { AdminLayoutMenuItemModel } from './AdminLayoutMenuModels';
13
+ import { type NocoBaseDesktopRoute } from './route-types';
14
+ export type AdminLayoutMenuRenderType = 'item' | 'group';
15
+ export type AdminLayoutMenuRenderOptions = {
16
+ isMobile?: boolean;
17
+ collapsed?: boolean;
18
+ menuRenderType?: string;
19
+ };
20
+ export type AdminLayoutMenuNode = {
21
+ key?: string;
22
+ name: React.ReactNode;
23
+ icon?: React.ReactNode;
24
+ path: string;
25
+ redirect?: string;
26
+ hideInMenu?: boolean;
27
+ disabled?: boolean;
28
+ _route: any;
29
+ _parentRoute?: NocoBaseDesktopRoute;
30
+ _depth?: number;
31
+ _model?: AdminLayoutMenuItemModel;
32
+ _launcherModel?: FlowModel;
33
+ routes?: AdminLayoutMenuNode[];
34
+ };
35
+ export type AdminLayoutMenuRouteOptions = {
36
+ designable: boolean;
37
+ isMobile: boolean;
38
+ t: (title: any) => any;
39
+ depth?: number;
40
+ };
41
+ export type AdminLayoutMenuMovePositionOption = {
42
+ label: any;
43
+ value: 'beforeBegin' | 'afterEnd' | 'beforeEnd';
44
+ disabled?: boolean;
45
+ };
46
+ export type AdminLayoutMenuInsertPosition = 'beforeBegin' | 'afterEnd' | 'beforeEnd';
47
+ export type AdminLayoutMenuCreationType = 'group' | 'page' | 'flowPage' | 'link';
48
+ export type AdminLayoutMenuCreationSource = 'header' | 'sider' | 'insert';
49
+ export type AdminLayoutMenuCreationMeta = {
50
+ menuType: AdminLayoutMenuCreationType;
51
+ source: AdminLayoutMenuCreationSource;
52
+ insertPosition?: AdminLayoutMenuInsertPosition;
53
+ targetRoute?: NocoBaseDesktopRoute;
54
+ parentRoute?: NocoBaseDesktopRoute;
55
+ };
56
+ export type AdminLayoutMenuCreationParams = {
57
+ menuType?: AdminLayoutMenuCreationType;
58
+ title?: string;
59
+ icon?: string;
60
+ href?: string;
61
+ params?: any[];
62
+ openInNewWindow?: boolean;
63
+ };
64
+ export type AdminLayoutMenuItemStructure = {
65
+ subModels: {
66
+ menuItems?: AdminLayoutMenuItemModel[];
67
+ };
68
+ };
69
+ type AdminLayoutMenuItemsParent = FlowModel & {
70
+ subModels: {
71
+ menuItems?: AdminLayoutMenuItemModel[];
72
+ };
73
+ };
74
+ /**
75
+ * 为不会直接参与站内路由跳转的菜单节点生成稳定且唯一的占位路径。
76
+ * 这些节点仍会被 ProLayout/rc-menu 当成菜单 key 使用,因此不能复用 '/'。
77
+ * @param type 占位路径类型
78
+ * @param identity 节点身份
79
+ * @returns 唯一占位路径
80
+ */
81
+ export declare const getAdminLayoutMenuVirtualPath: (type: 'link' | 'designer', identity: string | number) => string;
82
+ /**
83
+ * 仅在模板表达式内部兼容历史菜单变量写法,避免误改普通文本。
84
+ * @param template 原始模板字符串
85
+ * @returns 归一化后的模板字符串
86
+ */
87
+ export declare const normalizeAdminLayoutMenuLegacyVariables: (template: string) => string;
88
+ /**
89
+ * 使用 FlowContext 解析 admin-layout link 菜单的 URL 和查询参数。
90
+ * @param options 解析所需参数
91
+ * @returns 最终可跳转的 URL
92
+ */
93
+ export declare const resolveAdminLayoutMenuLink: (options: {
94
+ context: FlowModel['context'];
95
+ href: string;
96
+ params?: Array<{
97
+ name: string;
98
+ value: any;
99
+ }>;
100
+ }) => Promise<string>;
101
+ export declare const openAdminLayoutMenuLink: (options: {
102
+ context: FlowModel['context'];
103
+ href: string;
104
+ params?: any[];
105
+ openInNewWindow?: boolean;
106
+ isMobile?: boolean;
107
+ closeMobileMenu: () => void;
108
+ navigate: NavigateFunction;
109
+ basenameOfCurrentRouter: string;
110
+ }) => Promise<void>;
111
+ export declare const MobileMenuControlContext: React.Context<{
112
+ closeMobileMenu: () => void;
113
+ }>;
114
+ export declare const HeaderContext: React.Context<{
115
+ inHeader: boolean;
116
+ }>;
117
+ /**
118
+ * 根据当前选中的目标菜单,生成可用的 Move to 位置选项。
119
+ */
120
+ export declare const getAdminLayoutMenuMovePositionOptions: (target: string | undefined, currentRouteId: string | number | undefined, t: (title: any) => any) => AdminLayoutMenuMovePositionOption[];
121
+ export declare function reconcileAdminLayoutMenuItems(parent: AdminLayoutMenuItemsParent, routes: NocoBaseDesktopRoute[], parentRoute?: NocoBaseDesktopRoute): void;
122
+ type AdminLayoutMenuDragMoveOptions = {
123
+ sourceId: string | number;
124
+ targetId?: string | number;
125
+ targetScope?: {
126
+ parentId: string | number;
127
+ };
128
+ sortField: 'sort';
129
+ method?: 'insertAfter' | 'prepend';
130
+ };
131
+ export declare function resolveAdminLayoutMenuDragMoveOptions(activeModel?: FlowModel, overModel?: FlowModel): AdminLayoutMenuDragMoveOptions | undefined;
132
+ export declare function resolveAdminLayoutMenuDragMoveOptionsFromEvent(flowEngine: {
133
+ getModel: (uid: string) => FlowModel | undefined;
134
+ }, event: {
135
+ active?: {
136
+ id?: string | number;
137
+ };
138
+ over?: {
139
+ id?: string | number;
140
+ } | null;
141
+ }): AdminLayoutMenuDragMoveOptions | undefined;
142
+ export declare const AdminLayoutMenuItemRenderer: FC<{
143
+ item: AdminLayoutMenuNode;
144
+ dom: React.ReactNode;
145
+ options?: AdminLayoutMenuRenderOptions;
146
+ renderType: AdminLayoutMenuRenderType;
147
+ }>;
148
+ export declare const shouldRenderIconInTitle: ({ depth, isMobile }: {
149
+ depth: number;
150
+ isMobile: boolean;
151
+ }) => boolean;
152
+ export declare const AdminLayoutMenuModelRenderer: FC<{
153
+ model: FlowModel;
154
+ item: AdminLayoutMenuNode;
155
+ dom: React.ReactNode;
156
+ renderType: AdminLayoutMenuRenderType;
157
+ options?: AdminLayoutMenuRenderOptions;
158
+ }>;
159
+ export declare function getAdminLayoutMenuInitializerButton(testId: string, launcherModel: FlowModel, parentRoute?: NocoBaseDesktopRoute): AdminLayoutMenuNode;
160
+ export declare const buildMenuTitleWithIcon: (route: NocoBaseDesktopRoute, t: (title: any) => any, showIconInTitle: boolean) => {
161
+ name: any;
162
+ icon: React.JSX.Element;
163
+ };
164
+ export {};
@@ -6,22 +6,28 @@
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 { FlowModel } from '@nocobase/flow-engine';
10
9
  import React from 'react';
11
- import { type RoutePageMeta } from './AdminLayoutRouteCoordinator';
12
- export declare class AdminLayoutModel extends FlowModel {
13
- private routeCoordinator?;
14
- private routeDisposer?;
15
- private activePageUid;
16
- private layoutContentElement;
17
- private routePageMetaMap;
18
- private getCoordinator;
19
- private getCurrentRouteByActivePage;
20
- registerRoutePage(pageUid: string, meta: RoutePageMeta): FlowModel<import("@nocobase/flow-engine").DefaultStructure>;
21
- updateRoutePage(pageUid: string, meta: Partial<RoutePageMeta>): void;
22
- unregisterRoutePage(pageUid: string): void;
23
- setLayoutContentElement(element: HTMLElement | null): void;
24
- protected onMount(): void;
25
- protected onUnmount(): void;
10
+ import { AdminLayoutModel, getAdminLayoutModel } from '@nocobase/client-v2';
11
+ import { type NocoBaseDesktopRoute } from './route-types';
12
+ import { type AdminLayoutMenuRouteOptions } from './AdminLayoutMenuUtils';
13
+ /**
14
+ * 兼容旧 route-switch 入口的 Admin Layout 渲染包装类。
15
+ *
16
+ * 该类仅保留 v1 入口所需的 render 能力,
17
+ * 运行时状态和生命周期全部复用 flow 侧基类。
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const model = flowEngine.getModel<AdminLayoutModelV1>('admin-layout-model');
22
+ * return model?.render();
23
+ * ```
24
+ */
25
+ export declare class AdminLayoutModelV1 extends AdminLayoutModel {
26
+ syncMenuRoutes(routes: NocoBaseDesktopRoute[]): void;
27
+ toProLayoutRoute(options: Omit<AdminLayoutMenuRouteOptions, 'depth'>): {
28
+ path: string;
29
+ children: any[];
30
+ };
26
31
  render(): React.JSX.Element;
27
32
  }
33
+ export { getAdminLayoutModel };
@@ -6,9 +6,7 @@
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 { FC } from 'react';
10
- import type { Application } from '../Application';
11
- export interface AppComponentProps {
12
- app: Application;
13
- }
14
- export declare const AppComponent: FC<AppComponentProps>;
9
+ import React, { FC } from 'react';
10
+ export declare const NavigateToDefaultPage: FC;
11
+ export declare const LegacyRouteCompat: FC;
12
+ export declare const AdminShellProvider: (props: any) => React.JSX.Element;
@@ -7,6 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { FC } from 'react';
10
- export declare const Sortable: FC<{
11
- targetModelKey: string;
12
- }>;
10
+ /**
11
+ * 重置主题,避免被 ProLayout 的主题影响,同时保留当前算法配置。
12
+ */
13
+ export declare const ResetThemeTokenAndKeepAlgorithm: FC<any>;
@@ -6,37 +6,22 @@
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, { FC } from 'react';
9
+ import { LayoutContent, useMobileLayout } from '@nocobase/client-v2';
10
+ import React from 'react';
10
11
  import { Plugin } from '../../../application/Plugin';
11
- import { KeepAlive, useKeepAlive } from './KeepAlive';
12
- import { NocoBaseDesktopRoute, NocoBaseDesktopRouteType } from './convertRoutesToSchema';
12
+ import { shouldRenderIconInTitle } from './AdminLayoutMenuUtils';
13
13
  export * from './useDeleteRouteSchema';
14
- export { KeepAlive, NocoBaseDesktopRouteType, useKeepAlive };
15
- export declare const NocoBaseRouteContext: React.Context<NocoBaseDesktopRoute>;
16
- export declare const CurrentRouteProvider: FC<{
17
- uid: string;
18
- }>;
19
- export declare const useCurrentRoute: () => NocoBaseDesktopRoute;
20
- export declare const useAllAccessDesktopRoutes: () => {
21
- allAccessRoutes: NocoBaseDesktopRoute[];
22
- refresh: () => void;
23
- };
24
- export declare const AdminDynamicPage: () => React.JSX.Element;
25
- export declare const LayoutContent: () => React.JSX.Element;
26
- export declare const useMobileLayout: () => {
27
- isMobileLayout: boolean;
28
- setIsMobileLayout: React.Dispatch<React.SetStateAction<boolean>>;
29
- };
30
- export declare const InternalAdminLayout: (props: any) => React.JSX.Element;
31
- export declare const AdminProvider: (props: any) => React.JSX.Element;
14
+ export { AdminDynamicPage } from './AdminDynamicPage';
15
+ export { AdminLayoutMenuItemModel } from './AdminLayoutMenuModels';
16
+ export { KeepAlive, useKeepAlive } from './KeepAlive';
17
+ export { LayoutContent };
18
+ export { NocoBaseDesktopRouteType } from './route-types';
19
+ export { NocoBaseRouteContext, CurrentRouteProvider, useCurrentRoute, useAllAccessDesktopRoutes, } from './route-runtime';
20
+ export { findFirstPageRoute, findRouteBySchemaUid } from './route-utils';
21
+ export { AdminShellProvider as AdminProvider } from './AdminShellProvider';
22
+ export { shouldRenderIconInTitle, useMobileLayout };
32
23
  export declare const AdminLayout: (props: any) => React.JSX.Element;
33
24
  export declare class AdminLayoutPlugin extends Plugin {
34
25
  afterAdd(): Promise<void>;
35
26
  load(): Promise<void>;
36
27
  }
37
- export declare function findRouteBySchemaUid(schemaUid: string, treeArray: any[]): any;
38
- export declare const shouldRenderIconInTitle: ({ depth, isMobile }: {
39
- depth: number;
40
- isMobile: boolean;
41
- }) => boolean;
42
- export declare function findFirstPageRoute(routes: NocoBaseDesktopRoute[]): any;
@@ -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;