@nocobase/client 2.1.0-alpha.3 → 2.1.0-alpha.31

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 (438) 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 +69 -135
  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/remotePlugins.d.ts +6 -6
  18. package/es/block-provider/BlockProvider.d.ts +1 -0
  19. package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
  20. package/es/block-provider/TableBlockProvider.d.ts +0 -11
  21. package/es/block-provider/index.d.ts +1 -0
  22. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
  23. package/es/collection-manager/templates/sql.d.ts +4 -4
  24. package/es/collection-manager/templates/view.d.ts +15 -15
  25. package/es/data-source/collection/utils.d.ts +3 -3
  26. package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
  27. package/es/global-theme/AntdAppProvider.d.ts +1 -10
  28. package/es/global-theme/compatOldTheme.d.ts +1 -3
  29. package/es/global-theme/customAlgorithm.d.ts +1 -7
  30. package/es/global-theme/defaultTheme.d.ts +1 -3
  31. package/es/global-theme/index.d.ts +2 -29
  32. package/es/global-theme/type.d.ts +1 -56
  33. package/es/index.css +1 -1
  34. package/es/index.d.ts +1 -1
  35. package/es/index.mjs +1497 -107772
  36. package/es/index.mjs.LICENSE.txt +8 -0
  37. package/es/lazy-helper/index.d.ts +8 -6
  38. package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
  39. package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
  40. package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
  41. package/es/plugin-manager/context.d.ts +1 -4
  42. package/es/{flow/models/actions/JSActionModel.d.ts → pm/AdminSettingsLayoutModel.d.ts} +2 -4
  43. package/es/pm/PluginSetting.d.ts +2 -1
  44. package/es/pm/index.d.ts +1 -0
  45. package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
  46. package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
  47. package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
  48. package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
  49. package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +64 -0
  50. package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
  51. package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +33 -0
  52. package/es/{application/components/MainComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -2
  53. package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
  54. package/es/route-switch/antd/admin-layout/index.d.ts +12 -23
  55. package/es/{ai/ai-manager.d.ts → route-switch/antd/admin-layout/mobileMenuNavigation.d.ts} +7 -7
  56. package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
  57. package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
  58. package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
  59. package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
  60. package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
  61. package/es/schema-component/antd/association-field/Table.d.ts +0 -57
  62. package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
  63. package/es/schema-component/antd/date-picker/DatePicker.d.ts +26 -0
  64. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  65. package/es/schema-component/antd/menu/Menu.d.ts +2 -2
  66. package/es/schema-component/antd/page/Page.d.ts +1 -0
  67. package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
  68. package/es/schema-component/antd/upload/shared.d.ts +4 -0
  69. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  70. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  71. package/es/schema-settings/SchemaSettings.d.ts +3 -1
  72. package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +18 -0
  73. package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +3 -3
  74. package/es/style/index.d.ts +1 -1
  75. package/es/style/useToken.d.ts +1 -1
  76. package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
  77. package/es/{flow/components/drag-drop/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -2
  78. package/es/system-settings/index.d.ts +2 -1
  79. package/lib/index.css +1 -1
  80. package/lib/index.js +1533 -2130
  81. package/lib/index.js.LICENSE.txt +1 -0
  82. package/lib/locale/de-DE.json +5 -1
  83. package/lib/locale/en-US.json +16 -0
  84. package/lib/locale/es-ES.json +5 -1
  85. package/lib/locale/fr-FR.json +5 -1
  86. package/lib/locale/hu-HU.json +5 -1
  87. package/lib/locale/id-ID.json +5 -1
  88. package/lib/locale/it-IT.json +5 -1
  89. package/lib/locale/ja-JP.json +5 -1
  90. package/lib/locale/ko-KR.json +5 -1
  91. package/lib/locale/nl-NL.json +5 -1
  92. package/lib/locale/pt-BR.json +5 -1
  93. package/lib/locale/ru-RU.json +5 -1
  94. package/lib/locale/tr-TR.json +5 -1
  95. package/lib/locale/uk-UA.json +5 -1
  96. package/lib/locale/vi-VN.json +5 -1
  97. package/lib/locale/zh-CN.json +18 -2
  98. package/lib/locale/zh-TW.json +5 -1
  99. package/package.json +10 -9
  100. package/es/ai/tools-manager/hooks/context.d.ts +0 -17
  101. package/es/ai/tools-manager/hooks/index.d.ts +0 -11
  102. package/es/ai/tools-manager/hooks/provider.d.ts +0 -16
  103. package/es/ai/tools-manager/index.d.ts +0 -21
  104. package/es/ai/tools-manager/types.d.ts +0 -80
  105. package/es/ai/utils.d.ts +0 -10
  106. package/es/application/components/AppComponent.d.ts +0 -14
  107. package/es/application/components/defaultComponents.d.ts +0 -19
  108. package/es/flow/FlowModelRepository.d.ts +0 -36
  109. package/es/flow/FlowPage.d.ts +0 -20
  110. package/es/flow/actions/aclCheck.d.ts +0 -9
  111. package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
  112. package/es/flow/actions/blockHeight.d.ts +0 -9
  113. package/es/flow/actions/columnFixed.d.ts +0 -9
  114. package/es/flow/actions/confirm.d.ts +0 -9
  115. package/es/flow/actions/customVariable.d.ts +0 -9
  116. package/es/flow/actions/dataLoadingMode.d.ts +0 -9
  117. package/es/flow/actions/dataScope.d.ts +0 -9
  118. package/es/flow/actions/dateTimeFormat.d.ts +0 -9
  119. package/es/flow/actions/displayFieldComponent.d.ts +0 -19
  120. package/es/flow/actions/fieldComponent.d.ts +0 -9
  121. package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
  122. package/es/flow/actions/formAssignRules.d.ts +0 -9
  123. package/es/flow/actions/index.d.ts +0 -39
  124. package/es/flow/actions/layout.d.ts +0 -10
  125. package/es/flow/actions/linkageRules.d.ts +0 -23
  126. package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
  127. package/es/flow/actions/navigateToURL.d.ts +0 -9
  128. package/es/flow/actions/numberFormat.d.ts +0 -9
  129. package/es/flow/actions/openView.d.ts +0 -15
  130. package/es/flow/actions/overflowMode.d.ts +0 -9
  131. package/es/flow/actions/pattern.d.ts +0 -9
  132. package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
  133. package/es/flow/actions/renderMode.d.ts +0 -9
  134. package/es/flow/actions/required.d.ts +0 -9
  135. package/es/flow/actions/runjs.d.ts +0 -9
  136. package/es/flow/actions/setTargetDataScope.d.ts +0 -10
  137. package/es/flow/actions/showMessage.d.ts +0 -9
  138. package/es/flow/actions/showNotification.d.ts +0 -9
  139. package/es/flow/actions/sortingRules.d.ts +0 -9
  140. package/es/flow/actions/titleField.d.ts +0 -9
  141. package/es/flow/actions/validation.d.ts +0 -9
  142. package/es/flow/common/Liquid.d.ts +0 -33
  143. package/es/flow/common/Markdown/Display.d.ts +0 -9
  144. package/es/flow/common/Markdown/Edit.d.ts +0 -23
  145. package/es/flow/common/Markdown/Markdown.d.ts +0 -24
  146. package/es/flow/common/Markdown/style.d.ts +0 -10
  147. package/es/flow/common/Markdown/useCDN.d.ts +0 -9
  148. package/es/flow/components/BlockItemCard.d.ts +0 -16
  149. package/es/flow/components/ConditionBuilder.d.ts +0 -17
  150. package/es/flow/components/DefaultValue.d.ts +0 -20
  151. package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
  152. package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
  153. package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
  154. package/es/flow/components/FieldAssignEditor.d.ts +0 -32
  155. package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
  156. package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
  157. package/es/flow/components/FieldAssignValueInput.d.ts +0 -63
  158. package/es/flow/components/Grid/index.d.ts +0 -26
  159. package/es/flow/components/JsonEditor.d.ts +0 -19
  160. package/es/flow/components/RunJSValueEditor.d.ts +0 -19
  161. package/es/flow/components/SkeletonFallback.d.ts +0 -10
  162. package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
  163. package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
  164. package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
  165. package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
  166. package/es/flow/components/code-editor/extension/index.d.ts +0 -9
  167. package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
  168. package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
  169. package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
  170. package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
  171. package/es/flow/components/code-editor/index.d.ts +0 -31
  172. package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
  173. package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
  174. package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
  175. package/es/flow/components/code-editor/linter.d.ts +0 -19
  176. package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
  177. package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
  178. package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
  179. package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
  180. package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
  181. package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -43
  182. package/es/flow/components/code-editor/types.d.ts +0 -32
  183. package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
  184. package/es/flow/components/fieldAssignOptions.d.ts +0 -23
  185. package/es/flow/components/filter/FilterContainer.d.ts +0 -67
  186. package/es/flow/components/filter/FilterGroup.d.ts +0 -66
  187. package/es/flow/components/filter/FilterItem.d.ts +0 -40
  188. package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -28
  189. package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
  190. package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
  191. package/es/flow/components/filter/index.d.ts +0 -16
  192. package/es/flow/components/index.d.ts +0 -14
  193. package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
  194. package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
  195. package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
  196. package/es/flow/flows/openViewFlow.d.ts +0 -17
  197. package/es/flow/formily/ReactiveField.d.ts +0 -19
  198. package/es/flow/formily/index.d.ts +0 -8
  199. package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
  200. package/es/flow/index.d.ts +0 -24
  201. package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
  202. package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
  203. package/es/flow/internal/components/Markdown/md.d.ts +0 -11
  204. package/es/flow/internal/components/Markdown/style.d.ts +0 -9
  205. package/es/flow/internal/components/Markdown/util.d.ts +0 -15
  206. package/es/flow/internal/constants/HeightMode.d.ts +0 -13
  207. package/es/flow/internal/index.d.ts +0 -11
  208. package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
  209. package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
  210. package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
  211. package/es/flow/internal/utils/modelUtils.d.ts +0 -23
  212. package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
  213. package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
  214. package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
  215. package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
  216. package/es/flow/models/actions/AddChildActionModel.d.ts +0 -15
  217. package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
  218. package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -15
  219. package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
  220. package/es/flow/models/actions/EditActionModel.d.ts +0 -16
  221. package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
  222. package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
  223. package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
  224. package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
  225. package/es/flow/models/actions/LinkActionModel.d.ts +0 -18
  226. package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
  227. package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
  228. package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
  229. package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
  230. package/es/flow/models/actions/index.d.ts +0 -23
  231. package/es/flow/models/base/ActionGroupModel.d.ts +0 -28
  232. package/es/flow/models/base/ActionModel.d.ts +0 -45
  233. package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
  234. package/es/flow/models/base/BlockGridModel.d.ts +0 -21
  235. package/es/flow/models/base/BlockModel.d.ts +0 -31
  236. package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
  237. package/es/flow/models/base/CollectionBlockModel.d.ts +0 -89
  238. package/es/flow/models/base/CommonItemModel.d.ts +0 -11
  239. package/es/flow/models/base/DataBlockModel.d.ts +0 -12
  240. package/es/flow/models/base/FieldModel.d.ts +0 -17
  241. package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
  242. package/es/flow/models/base/GridModel.d.ts +0 -98
  243. package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -20
  244. package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
  245. package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
  246. package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
  247. package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
  248. package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -16
  249. package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
  250. package/es/flow/models/base/PageModel/index.d.ts +0 -14
  251. package/es/flow/models/base/PopupActionModel.d.ts +0 -13
  252. package/es/flow/models/base/RecordActionModel.d.ts +0 -12
  253. package/es/flow/models/base/RouteModel.d.ts +0 -11
  254. package/es/flow/models/base/index.d.ts +0 -24
  255. package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
  256. package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
  257. package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
  258. package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
  259. package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
  260. package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -37
  261. package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
  262. package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
  263. package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -53
  264. package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
  265. package/es/flow/models/blocks/details/index.d.ts +0 -14
  266. package/es/flow/models/blocks/details/utils.d.ts +0 -16
  267. package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
  268. package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
  269. package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
  270. package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
  271. package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
  272. package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
  273. package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
  274. package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -32
  275. package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
  276. package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
  277. package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
  278. package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
  279. package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
  280. package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
  281. package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
  282. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
  283. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
  284. package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
  285. package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
  286. package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
  287. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
  288. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
  289. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
  290. package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
  291. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
  292. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
  293. package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
  294. package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
  295. package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
  296. package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
  297. package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
  298. package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
  299. package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
  300. package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
  301. package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
  302. package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
  303. package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
  304. package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
  305. package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
  306. package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -21
  307. package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -24
  308. package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
  309. package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
  310. package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
  311. package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
  312. package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -95
  313. package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
  314. package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
  315. package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
  316. package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
  317. package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
  318. package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
  319. package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
  320. package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
  321. package/es/flow/models/blocks/form/index.d.ts +0 -21
  322. package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
  323. package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
  324. package/es/flow/models/blocks/form/submitValues.d.ts +0 -19
  325. package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
  326. package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
  327. package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
  328. package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
  329. package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
  330. package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -129
  331. package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -75
  332. package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
  333. package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
  334. package/es/flow/models/blocks/index.d.ts +0 -15
  335. package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
  336. package/es/flow/models/blocks/js-block/index.d.ts +0 -9
  337. package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
  338. package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
  339. package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
  340. package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
  341. package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -90
  342. package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -27
  343. package/es/flow/models/blocks/table/TableCustomColumnModel.d.ts +0 -12
  344. package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +0 -19
  345. package/es/flow/models/blocks/table/TableSelectModel.d.ts +0 -14
  346. package/es/flow/models/blocks/table/dragSort/dragSortComponents.d.ts +0 -14
  347. package/es/flow/models/blocks/table/dragSort/dragSortHooks.d.ts +0 -13
  348. package/es/flow/models/blocks/table/dragSort/dragSortSettings.d.ts +0 -39
  349. package/es/flow/models/blocks/table/dragSort/dragSortUtils.d.ts +0 -37
  350. package/es/flow/models/blocks/table/dragSort/index.d.ts +0 -12
  351. package/es/flow/models/blocks/table/index.d.ts +0 -16
  352. package/es/flow/models/blocks/table/utils.d.ts +0 -18
  353. package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
  354. package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -4
  355. package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
  356. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
  357. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
  358. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
  359. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
  360. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
  361. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
  362. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
  363. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
  364. package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -35
  365. package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
  366. package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
  367. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
  368. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
  369. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -18
  370. package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
  371. package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -94
  372. package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -59
  373. package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
  374. package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
  375. package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
  376. package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
  377. package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
  378. package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
  379. package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
  380. package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
  381. package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
  382. package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
  383. package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
  384. package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
  385. package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
  386. package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
  387. package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
  388. package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
  389. package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
  390. package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
  391. package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
  392. package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
  393. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
  394. package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
  395. package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
  396. package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
  397. package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -13
  398. package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
  399. package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
  400. package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
  401. package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
  402. package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
  403. package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
  404. package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
  405. package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
  406. package/es/flow/models/fields/JSItemModel.d.ts +0 -27
  407. package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
  408. package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
  409. package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
  410. package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
  411. package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
  412. package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
  413. package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
  414. package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
  415. package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
  416. package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
  417. package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
  418. package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
  419. package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
  420. package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
  421. package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
  422. package/es/flow/models/fields/index.d.ts +0 -47
  423. package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
  424. package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
  425. package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
  426. package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
  427. package/es/flow/models/index.d.ts +0 -12
  428. package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
  429. package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
  430. package/es/flow/utils/blockUtils.d.ts +0 -16
  431. package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
  432. package/es/flow/utils/index.d.ts +0 -10
  433. package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
  434. package/es/md-BbvRKckr.mjs +0 -61
  435. package/es/md-oH2RssNY.mjs +0 -61
  436. package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
  437. package/lib/md-BbvRKckr-IQIU5F3r.js +0 -1
  438. package/lib/md-oH2RssNY-IQIU5F3r.js +0 -1
@@ -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>>;
@@ -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';
@@ -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"}