@nocobase/client 2.1.0-alpha.21 → 2.1.0-alpha.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 (417) 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 -21
  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 -132
  309. package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -76
  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 -27
  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/utils.d.ts +0 -18
  331. package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
  332. package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -5
  333. package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
  334. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
  335. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
  336. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
  337. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
  338. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
  339. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
  340. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/popupSubTableBeforeClose.d.ts +0 -25
  341. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
  342. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
  343. package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -45
  344. package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
  345. package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
  346. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
  347. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
  348. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -19
  349. package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
  350. package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -99
  351. package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -48
  352. package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
  353. package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
  354. package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
  355. package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
  356. package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
  357. package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
  358. package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
  359. package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
  360. package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
  361. package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
  362. package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
  363. package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
  364. package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
  365. package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +0 -14
  366. package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
  367. package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
  368. package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
  369. package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
  370. package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
  371. package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
  372. package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
  373. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
  374. package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
  375. package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
  376. package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
  377. package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -14
  378. package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
  379. package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
  380. package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
  381. package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
  382. package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
  383. package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
  384. package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
  385. package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
  386. package/es/flow/models/fields/JSItemModel.d.ts +0 -27
  387. package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
  388. package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
  389. package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
  390. package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
  391. package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
  392. package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
  393. package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
  394. package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
  395. package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
  396. package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
  397. package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
  398. package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
  399. package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
  400. package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
  401. package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
  402. package/es/flow/models/fields/index.d.ts +0 -47
  403. package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
  404. package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
  405. package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
  406. package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
  407. package/es/flow/models/index.d.ts +0 -12
  408. package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
  409. package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
  410. package/es/flow/utils/actionCapability.d.ts +0 -60
  411. package/es/flow/utils/blockUtils.d.ts +0 -16
  412. package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
  413. package/es/flow/utils/index.d.ts +0 -11
  414. package/es/flow/utils/pagination.d.ts +0 -29
  415. package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
  416. package/es/route-switch/antd/admin-layout/AdminLayoutRouteCoordinator.d.ts +0 -50
  417. package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
@@ -1,14 +0,0 @@
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 { DateTimeFilterFieldModel } from './DateTimeFilterFieldModel';
10
- import React from 'react';
11
- export declare class DateOnlyFilterFieldModel extends DateTimeFilterFieldModel {
12
- setProps(componentProps: any): void;
13
- render(): React.JSX.Element;
14
- }
@@ -1,13 +0,0 @@
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 { FilterFormFieldModel } from '../FilterFormFieldModel';
11
- export declare class DateTimeFilterFieldModel extends FilterFormFieldModel {
12
- render(): React.JSX.Element;
13
- }
@@ -1,13 +0,0 @@
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 { DateTimeFilterFieldModel } from './DateTimeFilterFieldModel';
10
- import React from 'react';
11
- export declare class DateTimeNoTzFilterFieldModel extends DateTimeFilterFieldModel {
12
- render(): React.JSX.Element;
13
- }
@@ -1,14 +0,0 @@
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 { DateTimeFilterFieldModel } from './DateTimeFilterFieldModel';
10
- import React from 'react';
11
- export declare class DateTimeTzFilterFieldModel extends DateTimeFilterFieldModel {
12
- setProps(componentProps: any): void;
13
- render(): React.JSX.Element;
14
- }
@@ -1,10 +0,0 @@
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
- export declare const DateFilterDynamicComponent: (props: any) => React.JSX.Element;
@@ -1,10 +0,0 @@
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
- export declare const FilterDatePicker: (props: any) => React.JSX.Element;
@@ -1,10 +0,0 @@
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
- export declare const FilterRangePicker: (props: any) => React.JSX.Element;
@@ -1,12 +0,0 @@
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
- export * from './DateOnlyFilterFieldModel';
10
- export * from './DateTimeNoTzFilterFieldModel';
11
- export * from './DateTimeTzFilterFieldModel';
12
- export * from './DateTimeFilterFieldModel';
@@ -1,13 +0,0 @@
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
- export * from './FilterFormFieldModel';
10
- export * from './FilterFormRecordSelectFieldModel';
11
- export * from './date-time';
12
- export * from './FilterFormCustomFieldModel';
13
- export * from './FilterFormCustomRecordSelectFieldModel';
@@ -1,23 +0,0 @@
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
- export * from './fields';
10
- export * from './FilterFormActionGroupModel';
11
- export * from './FilterFormActionModel';
12
- export * from './FilterFormBlockModel';
13
- export * from './FilterFormCollapseActionModel';
14
- export * from './FilterFormGridModel';
15
- export * from './FilterFormItemModel';
16
- export * from './FilterFormCustomItemModel';
17
- export * from './FieldModelSelect';
18
- export * from './FieldOperatorSelect';
19
- export * from './SourceCascader';
20
- export * from './customFieldOperators';
21
- export * from './FilterFormJSActionModel';
22
- export * from './FilterFormResetActionModel';
23
- export * from './FilterFormSubmitActionModel';
@@ -1,13 +0,0 @@
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 { mergeAssignRulesWithLegacyDefaults } from '../shared/legacyDefaultValueMigrationBase';
10
- import type { FieldAssignRuleItem } from '../../../components/FieldAssignRulesEditor';
11
- export declare function collectLegacyDefaultValueRulesFromFilterFormModel(filterFormModel: any): FieldAssignRuleItem[];
12
- export declare function clearLegacyDefaultValuesFromFilterFormModel(filterFormModel: any): any[];
13
- export { mergeAssignRulesWithLegacyDefaults };
@@ -1,17 +0,0 @@
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
- /**
10
- * Normalize filter value based on operator expected shape.
11
- *
12
- * - Multi-value operators: normalize scalar -> [value]
13
- * - $dateBetween: normalize scalar date -> [date, date]
14
- *
15
- * Note: For date variables (object with `type`), keep as-is because operators can resolve it to ranges.
16
- */
17
- export declare function normalizeFilterValueByOperator(operator: string | undefined, rawValue: any): any;
@@ -1,141 +0,0 @@
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
- type FilterConfig = {
11
- /** 筛选器的 model uid */
12
- filterId: string;
13
- /** 数据区块或者图表区块的 model uid */
14
- targetId: string;
15
- /** 被筛选区块的数据表字段路径 */
16
- filterPaths?: string[];
17
- /** 筛选操作符,每个条件的操作符可以不一样 */
18
- operator?: string;
19
- };
20
- export type ConnectFieldsConfig = {
21
- targets: {
22
- /** 数据区块或者图表区块的 model uid */
23
- targetId: string;
24
- /** 被筛选区块的数据表字段路径 */
25
- filterPaths: string[];
26
- }[];
27
- };
28
- export declare class FilterManager {
29
- private filterConfigs;
30
- private readonly gridModel;
31
- constructor(gridModel: FlowModel, filterConfigs?: FilterConfig[]);
32
- saveFilterConfigs(): Promise<void>;
33
- getFilterConfigs(): FilterConfig[];
34
- getConnectFieldsConfig(filterModelUid: string): ConnectFieldsConfig | undefined;
35
- saveConnectFieldsConfig(filterModelUid: string, config: ConnectFieldsConfig): Promise<void>;
36
- /**
37
- * 添加筛选配置
38
- *
39
- * 将新的筛选配置添加到管理器中。如果相同的筛选器和目标组合已存在,则会更新配置。
40
- *
41
- * @param filterConfig - 要添加的筛选配置
42
- * @returns Promise<void>
43
- *
44
- * @example
45
- * ```typescript
46
- * await filterManager.addFilterConfig({
47
- * filterId: 'filter-1',
48
- * targetId: 'target-1',
49
- * filterPaths: ['name'],
50
- * operator: '$eq'
51
- * });
52
- * ```
53
- */
54
- addFilterConfig(filterConfig: FilterConfig): Promise<void>;
55
- /**
56
- * 删除筛选配置
57
- *
58
- * 根据提供的参数删除对应的筛选配置。支持多种删除策略:
59
- * - 仅提供 filterId:删除该筛选器相关的所有配置
60
- * - 仅提供 targetId:删除该目标相关的所有配置
61
- * - 两个都提供:删除特定的筛选器-目标组合配置
62
- *
63
- * @param options - 删除选项
64
- * @param options.filterId - 筛选器模型 UID(可选)
65
- * @param options.targetId - 目标模型 UID(可选)
66
- * @returns Promise<number> 返回被删除的配置数量
67
- * @throws 当两个参数都未提供时抛出错误
68
- *
69
- * @example
70
- * ```typescript
71
- * // 删除筛选器的所有配置
72
- * const removedCount = await filterManager.removeFilterConfig({ filterId: 'filter-1' });
73
- *
74
- * // 删除目标的所有配置
75
- * const removedCount = await filterManager.removeFilterConfig({ targetId: 'target-1' });
76
- *
77
- * // 删除特定的筛选器-目标组合配置
78
- * const removedCount = await filterManager.removeFilterConfig({
79
- * filterId: 'filter-1',
80
- * targetId: 'target-1'
81
- * });
82
- * ```
83
- */
84
- removeFilterConfig({ filterId, targetId, persist, }: {
85
- filterId?: string;
86
- targetId?: string;
87
- /** 是否持久化删除操作 */
88
- persist?: boolean;
89
- }): Promise<number>;
90
- /**
91
- * 将筛选配置绑定到 TargetModel
92
- *
93
- * 根据提供的 targetId 查找与之关联的已存在的筛选配置,
94
- * 然后通过 targetModel.resource.addFilterGroup 方法将这些配置添加到目标模型中。
95
- *
96
- * @param targetId - 目标模型的唯一标识符
97
- * @throws 当 targetId 为空或目标模型不存在时抛出错误
98
- *
99
- * @example
100
- * ```typescript
101
- * filterManager.bindToTarget('target-model-uid');
102
- * ```
103
- */
104
- bindToTarget(targetId: string): void;
105
- /**
106
- * 将筛选配置从 TargetModel 解除绑定
107
- *
108
- * 根据提供的 targetId 查找与之关联的已存在的筛选配置,
109
- * 然后通过 targetModel.resource.removeFilterGroup 方法将这些配置从目标模型中移除。
110
- *
111
- * @param targetId - 目标模型的唯一标识符
112
- * @throws 当 targetId 为空或目标模型不存在时抛出错误
113
- *
114
- * @example
115
- * ```typescript
116
- * filterManager.unbindFromTarget('target-model-uid');
117
- * ```
118
- */
119
- unbindFromTarget(targetId: string): void;
120
- /**
121
- * 根据筛选器刷新相关的目标模型
122
- *
123
- * 通过提供的筛选器模型 UID,找出所有相关的筛选配置,
124
- * 然后重新绑定筛选条件并刷新对应的目标模型数据。
125
- *
126
- * @param filterId - 筛选器模型的 UID,可以是单个字符串或字符串数组
127
- * @returns Promise,当所有目标模型都刷新完成后解决
128
- * @throws 当参数为空或目标模型不存在时抛出错误
129
- *
130
- * @example
131
- * ```typescript
132
- * // 刷新单个筛选器相关的目标
133
- * await filterManager.refreshTargetsByFilter('filter-1');
134
- *
135
- * // 刷新多个筛选器相关的目标
136
- * await filterManager.refreshTargetsByFilter(['filter-1', 'filter-2']);
137
- * ```
138
- */
139
- refreshTargetsByFilter(filterId: string | string[]): Promise<void>;
140
- }
141
- export {};
@@ -1,10 +0,0 @@
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 { FlowContext } from '@nocobase/flow-engine';
10
- export declare const connectFields: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
@@ -1,10 +0,0 @@
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 { FilterFormItemModel } from '../../filter-form/FilterFormItemModel';
10
- export declare const customizeFilterRender: import("@nocobase/flow-engine").ActionDefinition<FilterFormItemModel, import("@nocobase/flow-engine").FlowContext>;
@@ -1,9 +0,0 @@
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
- export declare const defaultOperator: any;
@@ -1,12 +0,0 @@
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
- export * from './connectFields';
10
- export * from './defaultOperator';
11
- export * from './customizeFilterRender';
12
- export * from './operatorComponentProps';
@@ -1,10 +0,0 @@
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 { FilterFormItemModel } from '../../filter-form/FilterFormItemModel';
10
- export declare const operatorComponentProps: import("@nocobase/flow-engine").ActionDefinition<FilterFormItemModel, import("@nocobase/flow-engine").FlowContext>;
@@ -1,11 +0,0 @@
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
- export * from './FilterManager';
10
- export * from './flow-actions';
11
- export * from './utils';
@@ -1,21 +0,0 @@
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 { BlockGridModel } from '../../base';
11
- export declare function getDefaultOperator(model: any): any;
12
- /**
13
- * 判断筛选值是否为空
14
- *
15
- * 专门用于筛选器场景的空值判断,不会将 boolean 类型视为空值
16
- *
17
- * @param value - 要判断的值
18
- * @returns 如果值为空则返回 true,否则返回 false
19
- */
20
- export declare function isFilterValueEmpty(value: any): boolean;
21
- export declare function getAllDataModels(gridModel: BlockGridModel): FlowModel[];
@@ -1,22 +0,0 @@
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 { SingleRecordResource } from '@nocobase/flow-engine';
10
- import React from 'react';
11
- import { FormBlockModel } from './FormBlockModel';
12
- export declare class CreateFormModel extends FormBlockModel {
13
- static scene: import("../../base/BlockModel").BlockSceneType;
14
- static blockCapabilityActionName: string;
15
- private actionFlowSettings;
16
- private actionExtraToolbarItems;
17
- createResource(ctx: any, params: any): SingleRecordResource<unknown>;
18
- getAclActionName(): string;
19
- submitHandler(ctx: any, params: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
20
- submit(params?: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
21
- renderComponent(): React.JSX.Element;
22
- }
@@ -1,26 +0,0 @@
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 { FlowModelContext, MultiRecordResource, SingleRecordResource } from '@nocobase/flow-engine';
10
- import React from 'react';
11
- import { FormBlockModel } from './FormBlockModel';
12
- export declare class EditFormModel extends FormBlockModel {
13
- static scene: import("../../base").BlockSceneType;
14
- static blockCapabilityActionName: string;
15
- private actionFlowSettings;
16
- private actionExtraToolbarItems;
17
- createResource(_ctx: FlowModelContext, params: any): SingleRecordResource<unknown> | MultiRecordResource<unknown>;
18
- isMultiRecordResource(): boolean;
19
- getCurrentRecord(): any;
20
- hasAvailableData(): boolean;
21
- getAclActionName(): string;
22
- handlePageChange: (page: number) => Promise<void>;
23
- submitHandler(ctx: any, params: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
24
- submit(params?: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
25
- renderComponent(): React.JSX.Element;
26
- }
@@ -1,13 +0,0 @@
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 { ActionGroupModel } from '../../base';
10
- import { FormActionModel } from './FormActionModel';
11
- export declare class FormActionGroupModel extends ActionGroupModel {
12
- static baseClass: typeof FormActionModel;
13
- }
@@ -1,21 +0,0 @@
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 { ButtonProps } from 'antd';
10
- import { AxiosRequestConfig } from 'axios';
11
- import { ActionModel } from '../../base';
12
- export declare class FormActionModel extends ActionModel {
13
- }
14
- export declare class FormSubmitActionModel extends FormActionModel {
15
- defaultProps: ButtonProps;
16
- /**
17
- * 简化设置保存请求配置的方式
18
- * @param requestConfig
19
- */
20
- setSaveRequestConfig(requestConfig?: AxiosRequestConfig): void;
21
- }
@@ -1,12 +0,0 @@
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 { AssociationFieldGroupModel } from '../../base';
10
- export declare class FormAssociationFieldGroupModel extends AssociationFieldGroupModel {
11
- static itemModelName: string;
12
- }
@@ -1,39 +0,0 @@
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 { DisplayItemModel, FlowModelContext } from '@nocobase/flow-engine';
10
- import React from 'react';
11
- export declare class FormAssociationItemModel extends DisplayItemModel {
12
- static defineChildren(ctx: FlowModelContext): {
13
- key: any;
14
- label: string;
15
- refreshTargets: string[];
16
- toggleable: (subModel: any) => boolean;
17
- useModel: string;
18
- createModelOptions: () => {
19
- use: string;
20
- stepParams: {
21
- fieldSettings: {
22
- init: {
23
- dataSourceKey: any;
24
- collectionName: any;
25
- fieldPath: any;
26
- };
27
- };
28
- };
29
- subModels: {
30
- field: {
31
- use: string;
32
- props: any;
33
- };
34
- };
35
- };
36
- }[];
37
- onInit(options: any): void;
38
- renderItem(): React.JSX.Element;
39
- }
@@ -1,96 +0,0 @@
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 { PropertyMetaFactory } from '@nocobase/flow-engine';
10
- import { FormInstance } from 'antd';
11
- import React from 'react';
12
- import { BlockGridModel } from '../../base/BlockGridModel';
13
- import { CollectionBlockModel } from '../../base/CollectionBlockModel';
14
- import { FormActionModel } from './FormActionModel';
15
- import { FormGridModel } from './FormGridModel';
16
- import { FormValueRuntime } from './value-runtime';
17
- type DefaultCollectionBlockModelStructure = {
18
- parent?: BlockGridModel;
19
- subModels?: {
20
- grid: FormGridModel;
21
- actions?: FormActionModel[];
22
- };
23
- };
24
- type CustomFormBlockModelClassesEnum = {};
25
- export declare class FormBlockModel<T extends DefaultCollectionBlockModelStructure = DefaultCollectionBlockModelStructure> extends CollectionBlockModel<T> {
26
- formValueRuntime?: FormValueRuntime;
27
- private userModifiedTopLevelFields;
28
- get form(): FormInstance<any>;
29
- _defaultCustomModelClasses: {
30
- FormActionGroupModel: string;
31
- FormItemModel: string;
32
- FormAssociationFieldGroupModel: string;
33
- };
34
- customModelClasses: CustomFormBlockModelClassesEnum;
35
- private syncRuntimeAssignRules;
36
- renderConfigureActions(): React.JSX.Element;
37
- setFieldsValue(values: any): void;
38
- setFieldValue(fieldName: any, value: any): void;
39
- /**
40
- * @internal
41
- *
42
- * 仅用于编辑表单刷新保护:只记录「用户交互」触发的改动(来自 antd Form.onValuesChange)。
43
- * 程序化 setFieldValue/setFieldsValue 不会触发 onValuesChange(见 linkageRules 的手动 emit),因此不会污染该集合。
44
- */
45
- markUserModifiedFields(changedValues: any): void;
46
- /**
47
- * @internal
48
- */
49
- getUserModifiedFields(): Set<string>;
50
- /**
51
- * @internal
52
- */
53
- resetUserModifiedFields(): void;
54
- onDispatchEventStart(eventName: string, options?: any, inputArgs?: Record<string, any>): Promise<void>;
55
- getStepParams(flowKey: string, stepKey: string): any | undefined;
56
- getStepParams(flowKey: string): Record<string, any> | undefined;
57
- getStepParams(): Record<string, any>;
58
- setStepParams(flowKey: string, stepKey: string, params: any): void;
59
- setStepParams(flowKey: string, stepParams: Record<string, any>): void;
60
- setStepParams(allParams: Record<string, any>): void;
61
- saveStepParams(): Promise<any>;
62
- protected createFormValuesMetaFactory(): PropertyMetaFactory;
63
- useHooksBeforeRender(): void;
64
- onInit(options: any): void;
65
- protected onMount(): void;
66
- onUnmount(): void;
67
- getCurrentRecord(): {};
68
- renderComponent(): void;
69
- }
70
- export declare function FormComponent({ model, children, layoutProps, initialValues, ...rest }: {
71
- model: any;
72
- children: React.ReactNode;
73
- layoutProps?: any;
74
- initialValues?: any;
75
- onFinish?: (values: any) => void;
76
- [key: string]: any;
77
- }): React.JSX.Element;
78
- type FormBlockContentProps = {
79
- model: FormBlockModel;
80
- gridModel: FormGridModel;
81
- layoutProps?: any;
82
- onFinish?: (values: any) => void;
83
- grid: React.ReactNode;
84
- actions?: React.ReactNode;
85
- footer?: React.ReactNode;
86
- heightMode?: string;
87
- height?: number;
88
- };
89
- export declare const FormBlockContent: ({ model, gridModel, layoutProps, onFinish, grid, actions, footer, heightMode, height, }: FormBlockContentProps) => React.JSX.Element;
90
- /**
91
- * 兼容旧版本
92
- * @deprecated use FormBlockModel instead
93
- */
94
- export declare class FormModel extends FormBlockModel {
95
- }
96
- export {};