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

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 (435) 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/Plugin.d.ts +2 -24
  7. package/es/application/PluginManager.d.ts +7 -36
  8. package/es/application/PluginSettingsManager.d.ts +103 -7
  9. package/es/application/RouteRepository.d.ts +1 -15
  10. package/es/application/RouterManager.d.ts +4 -44
  11. package/es/application/WebSocketClient.d.ts +2 -36
  12. package/es/application/components/index.d.ts +0 -2
  13. package/es/application/hooks/usePlugin.d.ts +2 -2
  14. package/es/application/schema-initializer/context/index.d.ts +1 -1
  15. package/es/application/schema-settings/hooks/useSchemaSettingsRender.d.ts +2 -2
  16. package/es/application/utils/remotePlugins.d.ts +6 -6
  17. package/es/block-provider/BlockProvider.d.ts +1 -0
  18. package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
  19. package/es/block-provider/TableBlockProvider.d.ts +0 -11
  20. package/es/block-provider/index.d.ts +1 -0
  21. package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
  22. package/es/collection-manager/templates/sql.d.ts +4 -4
  23. package/es/collection-manager/templates/view.d.ts +15 -15
  24. package/es/data-source/collection/utils.d.ts +3 -3
  25. package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
  26. package/es/global-theme/AntdAppProvider.d.ts +1 -10
  27. package/es/global-theme/compatOldTheme.d.ts +1 -3
  28. package/es/global-theme/customAlgorithm.d.ts +1 -7
  29. package/es/global-theme/defaultTheme.d.ts +1 -3
  30. package/es/global-theme/index.d.ts +2 -29
  31. package/es/global-theme/type.d.ts +1 -56
  32. package/es/index.css +1 -1
  33. package/es/index.d.ts +1 -1
  34. package/es/index.mjs +1497 -107772
  35. package/es/index.mjs.LICENSE.txt +8 -0
  36. package/es/lazy-helper/index.d.ts +8 -6
  37. package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
  38. package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
  39. package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
  40. package/es/plugin-manager/context.d.ts +1 -4
  41. package/es/{flow/models/actions/JSActionModel.d.ts → pm/AdminSettingsLayoutModel.d.ts} +2 -4
  42. package/es/pm/PluginSetting.d.ts +2 -1
  43. package/es/pm/index.d.ts +1 -0
  44. package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
  45. package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
  46. package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
  47. package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
  48. package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +64 -0
  49. package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
  50. package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +33 -0
  51. package/es/{application/components/MainComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -2
  52. package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
  53. package/es/route-switch/antd/admin-layout/index.d.ts +12 -23
  54. package/es/{ai/ai-manager.d.ts → route-switch/antd/admin-layout/mobileMenuNavigation.d.ts} +7 -7
  55. package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
  56. package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
  57. package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
  58. package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
  59. package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
  60. package/es/schema-component/antd/association-field/Table.d.ts +0 -57
  61. package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
  62. package/es/schema-component/antd/date-picker/DatePicker.d.ts +26 -0
  63. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  64. package/es/schema-component/antd/menu/Menu.d.ts +2 -2
  65. package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
  66. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  67. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  68. package/es/schema-settings/SchemaSettings.d.ts +3 -1
  69. package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +18 -0
  70. package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +3 -3
  71. package/es/style/index.d.ts +1 -1
  72. package/es/style/useToken.d.ts +1 -1
  73. package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
  74. package/es/{flow/components/drag-drop/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -2
  75. package/es/system-settings/index.d.ts +2 -1
  76. package/lib/index.css +1 -1
  77. package/lib/index.js +1533 -2130
  78. package/lib/index.js.LICENSE.txt +1 -0
  79. package/lib/locale/de-DE.json +5 -1
  80. package/lib/locale/en-US.json +16 -0
  81. package/lib/locale/es-ES.json +5 -1
  82. package/lib/locale/fr-FR.json +5 -1
  83. package/lib/locale/hu-HU.json +5 -1
  84. package/lib/locale/id-ID.json +5 -1
  85. package/lib/locale/it-IT.json +5 -1
  86. package/lib/locale/ja-JP.json +5 -1
  87. package/lib/locale/ko-KR.json +5 -1
  88. package/lib/locale/nl-NL.json +5 -1
  89. package/lib/locale/pt-BR.json +5 -1
  90. package/lib/locale/ru-RU.json +5 -1
  91. package/lib/locale/tr-TR.json +5 -1
  92. package/lib/locale/uk-UA.json +5 -1
  93. package/lib/locale/vi-VN.json +5 -1
  94. package/lib/locale/zh-CN.json +18 -2
  95. package/lib/locale/zh-TW.json +5 -1
  96. package/package.json +10 -9
  97. package/es/ai/tools-manager/hooks/context.d.ts +0 -17
  98. package/es/ai/tools-manager/hooks/index.d.ts +0 -11
  99. package/es/ai/tools-manager/hooks/provider.d.ts +0 -16
  100. package/es/ai/tools-manager/index.d.ts +0 -21
  101. package/es/ai/tools-manager/types.d.ts +0 -80
  102. package/es/ai/utils.d.ts +0 -10
  103. package/es/application/components/AppComponent.d.ts +0 -14
  104. package/es/application/components/defaultComponents.d.ts +0 -19
  105. package/es/flow/FlowModelRepository.d.ts +0 -36
  106. package/es/flow/FlowPage.d.ts +0 -20
  107. package/es/flow/actions/aclCheck.d.ts +0 -9
  108. package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
  109. package/es/flow/actions/blockHeight.d.ts +0 -9
  110. package/es/flow/actions/columnFixed.d.ts +0 -9
  111. package/es/flow/actions/confirm.d.ts +0 -9
  112. package/es/flow/actions/customVariable.d.ts +0 -9
  113. package/es/flow/actions/dataLoadingMode.d.ts +0 -9
  114. package/es/flow/actions/dataScope.d.ts +0 -9
  115. package/es/flow/actions/dateTimeFormat.d.ts +0 -9
  116. package/es/flow/actions/displayFieldComponent.d.ts +0 -19
  117. package/es/flow/actions/fieldComponent.d.ts +0 -9
  118. package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
  119. package/es/flow/actions/formAssignRules.d.ts +0 -9
  120. package/es/flow/actions/index.d.ts +0 -39
  121. package/es/flow/actions/layout.d.ts +0 -10
  122. package/es/flow/actions/linkageRules.d.ts +0 -23
  123. package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
  124. package/es/flow/actions/navigateToURL.d.ts +0 -9
  125. package/es/flow/actions/numberFormat.d.ts +0 -9
  126. package/es/flow/actions/openView.d.ts +0 -15
  127. package/es/flow/actions/overflowMode.d.ts +0 -9
  128. package/es/flow/actions/pattern.d.ts +0 -9
  129. package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
  130. package/es/flow/actions/renderMode.d.ts +0 -9
  131. package/es/flow/actions/required.d.ts +0 -9
  132. package/es/flow/actions/runjs.d.ts +0 -9
  133. package/es/flow/actions/setTargetDataScope.d.ts +0 -10
  134. package/es/flow/actions/showMessage.d.ts +0 -9
  135. package/es/flow/actions/showNotification.d.ts +0 -9
  136. package/es/flow/actions/sortingRules.d.ts +0 -9
  137. package/es/flow/actions/titleField.d.ts +0 -9
  138. package/es/flow/actions/validation.d.ts +0 -9
  139. package/es/flow/common/Liquid.d.ts +0 -33
  140. package/es/flow/common/Markdown/Display.d.ts +0 -9
  141. package/es/flow/common/Markdown/Edit.d.ts +0 -23
  142. package/es/flow/common/Markdown/Markdown.d.ts +0 -24
  143. package/es/flow/common/Markdown/style.d.ts +0 -10
  144. package/es/flow/common/Markdown/useCDN.d.ts +0 -9
  145. package/es/flow/components/BlockItemCard.d.ts +0 -16
  146. package/es/flow/components/ConditionBuilder.d.ts +0 -17
  147. package/es/flow/components/DefaultValue.d.ts +0 -20
  148. package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
  149. package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
  150. package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
  151. package/es/flow/components/FieldAssignEditor.d.ts +0 -32
  152. package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
  153. package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
  154. package/es/flow/components/FieldAssignValueInput.d.ts +0 -63
  155. package/es/flow/components/Grid/index.d.ts +0 -26
  156. package/es/flow/components/JsonEditor.d.ts +0 -19
  157. package/es/flow/components/RunJSValueEditor.d.ts +0 -19
  158. package/es/flow/components/SkeletonFallback.d.ts +0 -10
  159. package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
  160. package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
  161. package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
  162. package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
  163. package/es/flow/components/code-editor/extension/index.d.ts +0 -9
  164. package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
  165. package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
  166. package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
  167. package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
  168. package/es/flow/components/code-editor/index.d.ts +0 -31
  169. package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
  170. package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
  171. package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
  172. package/es/flow/components/code-editor/linter.d.ts +0 -19
  173. package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
  174. package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
  175. package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
  176. package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
  177. package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
  178. package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -43
  179. package/es/flow/components/code-editor/types.d.ts +0 -32
  180. package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
  181. package/es/flow/components/fieldAssignOptions.d.ts +0 -23
  182. package/es/flow/components/filter/FilterContainer.d.ts +0 -67
  183. package/es/flow/components/filter/FilterGroup.d.ts +0 -66
  184. package/es/flow/components/filter/FilterItem.d.ts +0 -40
  185. package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -28
  186. package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
  187. package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
  188. package/es/flow/components/filter/index.d.ts +0 -16
  189. package/es/flow/components/index.d.ts +0 -14
  190. package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
  191. package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
  192. package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
  193. package/es/flow/flows/openViewFlow.d.ts +0 -17
  194. package/es/flow/formily/ReactiveField.d.ts +0 -19
  195. package/es/flow/formily/index.d.ts +0 -8
  196. package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
  197. package/es/flow/index.d.ts +0 -24
  198. package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
  199. package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
  200. package/es/flow/internal/components/Markdown/md.d.ts +0 -11
  201. package/es/flow/internal/components/Markdown/style.d.ts +0 -9
  202. package/es/flow/internal/components/Markdown/util.d.ts +0 -15
  203. package/es/flow/internal/constants/HeightMode.d.ts +0 -13
  204. package/es/flow/internal/index.d.ts +0 -11
  205. package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
  206. package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
  207. package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
  208. package/es/flow/internal/utils/modelUtils.d.ts +0 -23
  209. package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
  210. package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
  211. package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
  212. package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
  213. package/es/flow/models/actions/AddChildActionModel.d.ts +0 -15
  214. package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
  215. package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -15
  216. package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
  217. package/es/flow/models/actions/EditActionModel.d.ts +0 -16
  218. package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
  219. package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
  220. package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
  221. package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
  222. package/es/flow/models/actions/LinkActionModel.d.ts +0 -18
  223. package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
  224. package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
  225. package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
  226. package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
  227. package/es/flow/models/actions/index.d.ts +0 -23
  228. package/es/flow/models/base/ActionGroupModel.d.ts +0 -28
  229. package/es/flow/models/base/ActionModel.d.ts +0 -45
  230. package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
  231. package/es/flow/models/base/BlockGridModel.d.ts +0 -21
  232. package/es/flow/models/base/BlockModel.d.ts +0 -31
  233. package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
  234. package/es/flow/models/base/CollectionBlockModel.d.ts +0 -89
  235. package/es/flow/models/base/CommonItemModel.d.ts +0 -11
  236. package/es/flow/models/base/DataBlockModel.d.ts +0 -12
  237. package/es/flow/models/base/FieldModel.d.ts +0 -17
  238. package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
  239. package/es/flow/models/base/GridModel.d.ts +0 -98
  240. package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -20
  241. package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
  242. package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
  243. package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
  244. package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
  245. package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -16
  246. package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
  247. package/es/flow/models/base/PageModel/index.d.ts +0 -14
  248. package/es/flow/models/base/PopupActionModel.d.ts +0 -13
  249. package/es/flow/models/base/RecordActionModel.d.ts +0 -12
  250. package/es/flow/models/base/RouteModel.d.ts +0 -11
  251. package/es/flow/models/base/index.d.ts +0 -24
  252. package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
  253. package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
  254. package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
  255. package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
  256. package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
  257. package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -37
  258. package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
  259. package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
  260. package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -53
  261. package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
  262. package/es/flow/models/blocks/details/index.d.ts +0 -14
  263. package/es/flow/models/blocks/details/utils.d.ts +0 -16
  264. package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
  265. package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
  266. package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
  267. package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
  268. package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
  269. package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
  270. package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
  271. package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -32
  272. package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
  273. package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
  274. package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
  275. package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
  276. package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
  277. package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
  278. package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
  279. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
  280. package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
  281. package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
  282. package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
  283. package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
  284. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
  285. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
  286. package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
  287. package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
  288. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
  289. package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
  290. package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
  291. package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
  292. package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
  293. package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
  294. package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
  295. package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
  296. package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
  297. package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
  298. package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
  299. package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
  300. package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
  301. package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
  302. package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
  303. package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -21
  304. package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -24
  305. package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
  306. package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
  307. package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
  308. package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
  309. package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -95
  310. package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
  311. package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
  312. package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
  313. package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
  314. package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
  315. package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
  316. package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
  317. package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
  318. package/es/flow/models/blocks/form/index.d.ts +0 -21
  319. package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
  320. package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
  321. package/es/flow/models/blocks/form/submitValues.d.ts +0 -19
  322. package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
  323. package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
  324. package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
  325. package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
  326. package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
  327. package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -129
  328. package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -75
  329. package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
  330. package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
  331. package/es/flow/models/blocks/index.d.ts +0 -15
  332. package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
  333. package/es/flow/models/blocks/js-block/index.d.ts +0 -9
  334. package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
  335. package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
  336. package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
  337. package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
  338. package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -90
  339. package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -27
  340. package/es/flow/models/blocks/table/TableCustomColumnModel.d.ts +0 -12
  341. package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +0 -19
  342. package/es/flow/models/blocks/table/TableSelectModel.d.ts +0 -14
  343. package/es/flow/models/blocks/table/dragSort/dragSortComponents.d.ts +0 -14
  344. package/es/flow/models/blocks/table/dragSort/dragSortHooks.d.ts +0 -13
  345. package/es/flow/models/blocks/table/dragSort/dragSortSettings.d.ts +0 -39
  346. package/es/flow/models/blocks/table/dragSort/dragSortUtils.d.ts +0 -37
  347. package/es/flow/models/blocks/table/dragSort/index.d.ts +0 -12
  348. package/es/flow/models/blocks/table/index.d.ts +0 -16
  349. package/es/flow/models/blocks/table/utils.d.ts +0 -18
  350. package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
  351. package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -4
  352. package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
  353. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
  354. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
  355. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
  356. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
  357. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
  358. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
  359. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
  360. package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
  361. package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -35
  362. package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
  363. package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
  364. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
  365. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
  366. package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -18
  367. package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
  368. package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -94
  369. package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -59
  370. package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
  371. package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
  372. package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
  373. package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
  374. package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
  375. package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
  376. package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
  377. package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
  378. package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
  379. package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
  380. package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
  381. package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
  382. package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
  383. package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
  384. package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
  385. package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
  386. package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
  387. package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
  388. package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
  389. package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
  390. package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
  391. package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
  392. package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
  393. package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
  394. package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -13
  395. package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
  396. package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
  397. package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
  398. package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
  399. package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
  400. package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
  401. package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
  402. package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
  403. package/es/flow/models/fields/JSItemModel.d.ts +0 -27
  404. package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
  405. package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
  406. package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
  407. package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
  408. package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
  409. package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
  410. package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
  411. package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
  412. package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
  413. package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
  414. package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
  415. package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
  416. package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
  417. package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
  418. package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
  419. package/es/flow/models/fields/index.d.ts +0 -47
  420. package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
  421. package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
  422. package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
  423. package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
  424. package/es/flow/models/index.d.ts +0 -12
  425. package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
  426. package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
  427. package/es/flow/utils/blockUtils.d.ts +0 -16
  428. package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
  429. package/es/flow/utils/index.d.ts +0 -10
  430. package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
  431. package/es/md-BbvRKckr.mjs +0 -61
  432. package/es/md-oH2RssNY.mjs +0 -61
  433. package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
  434. package/lib/md-BbvRKckr-IQIU5F3r.js +0 -1
  435. package/lib/md-oH2RssNY-IQIU5F3r.js +0 -1
@@ -1,129 +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 { DepCollector } from './deps';
11
- import type { FormAssignRuleItem, FormValueWriteMeta, NamePath, Patch, SetOptions, ValueSource } from './types';
12
- type ObservableBinding = {
13
- source: ValueSource;
14
- dispose: () => void;
15
- };
16
- export type RuleEngineOptions = {
17
- getBlockModelUid: () => string;
18
- getActionName: () => string | undefined;
19
- getBlockContext: () => any;
20
- getEngine: () => any;
21
- getEngineModel: (uid: string) => FlowModel | null;
22
- isDisposed: () => boolean;
23
- valuesMirror: any;
24
- changeTick: {
25
- value: number;
26
- };
27
- getWriteSeq: () => number;
28
- txWriteCounts: Map<string, Map<string, number>>;
29
- createTrackingFormValues: (collector: DepCollector) => any;
30
- tryResolveNamePath: (callerCtx: any, path: string | NamePath) => NamePath | null;
31
- getFormValueAtPath: (namePath: NamePath) => any;
32
- setFormValues: (callerCtx: any, patch: Patch, options?: SetOptions) => Promise<void>;
33
- findExplicitHit: (pathKey: string) => string | null;
34
- lastDefaultValueByPathKey: Map<string, any>;
35
- lastWriteMetaByPathKey: Map<string, FormValueWriteMeta>;
36
- observableBindings: Map<string, ObservableBinding>;
37
- };
38
- export declare class RuleEngine {
39
- private readonly options;
40
- private readonly rules;
41
- private readonly lastRuleWriteByTargetKey;
42
- private readonly assignTemplatesByTargetPath;
43
- /** 当前表单中“已配置到 UI 的字段(FormItemModel)”的 targetPath 集合,用于避免对 row grid 重复注册规则 */
44
- private readonly formItemTargetPaths;
45
- /** targetPath -> updateAssociation(SubForm/SubTable 等) */
46
- private readonly updateAssociationByTargetPath;
47
- private readonly pendingRuleIds;
48
- private readonly ruleDebounceUntilById;
49
- private readonly ruleDebounceTimersById;
50
- private readonly defaultRuleIdsByMasterUid;
51
- private readonly defaultRuleMasterDisposers;
52
- private runningRules;
53
- private rulesEnabled;
54
- private currentRuleTxId;
55
- constructor(options: RuleEngineOptions);
56
- private getAssignRuleBlockId;
57
- private removeAssignRuleBlockInstance;
58
- private removeRowGridAssignRuleInstances;
59
- private hasAnyNonBlockAssignRuleInstance;
60
- private ensureBlockAssignRuleInstancesForTargetPath;
61
- private getCollectionFromContext;
62
- private getRootCollection;
63
- private shouldCreateBlockLevelAssignRule;
64
- /**
65
- * 对关联字段嵌套属性(如 user.name / user.profile.name):
66
- * - 依赖应包含关联对象本身(user / user.profile),否则当关联对象从 null -> {id} 时,user.name 仍为 undefined,无法触发 rule re-run。
67
- * - 写入前需校验关联对象已存在,避免隐式创建关联对象。
68
- */
69
- private collectAssociationPrefixPaths;
70
- private shouldSkipToManyAssociationWriteWithoutIndex;
71
- private shouldSkipAssociationNestedWrite;
72
- private getAssociationTargetKeyFields;
73
- private resolveAssociationFieldByPrefixPath;
74
- private isAssociationTargetKeyWrite;
75
- private collectUpdateAssociationInitPatches;
76
- dispose(): void;
77
- enable(): void;
78
- syncAssignRules(items: FormAssignRuleItem[]): void;
79
- onModelMounted(model: FlowModel): void;
80
- onModelUnmounted(model: FlowModel): void;
81
- private isModelInThisForm;
82
- private cacheUpdateAssociationForModel;
83
- private getUpdateAssociationForTargetPath;
84
- private getDefaultRuleId;
85
- private getModelTargetNamePath;
86
- private tryRegisterDefaultRuleInstance;
87
- private getModelTargetPath;
88
- private getAssignRuleInstanceId;
89
- private getDeepestFieldIndexKey;
90
- private getDeepestToManyAssociationKey;
91
- private isRowGridModel;
92
- private tryRegisterAssignRuleInstancesForModel;
93
- private tryUnregisterAssignRuleInstancesForModel;
94
- private tryUnregisterDefaultRuleInstance;
95
- private bindMasterInitialValue;
96
- private removeRule;
97
- private scheduleRule;
98
- private flushRules;
99
- private runRule;
100
- private isTzAwareTargetInterface;
101
- private normalizeDateOnlyToStartOfDayIso;
102
- private normalizeResolvedValueForTarget;
103
- private isPrimitiveAssociationTargetValue;
104
- private extractAssociationIdentity;
105
- private isAssociationTargetSemanticallyEqual;
106
- private resolveCollectionFieldByNamePath;
107
- private normalizeResolvedValueForAssociationTarget;
108
- private prepareRuleContext;
109
- private shouldApplyDefaultRuleInCurrentState;
110
- private shouldRunRule;
111
- private createRuleCollectorAndContext;
112
- private evaluateRuleCondition;
113
- private resolveRuleValue;
114
- private resolveRunJSValue;
115
- private resolveTemplateValue;
116
- private commitRuleDeps;
117
- /**
118
- * Check if default rule value can be applied.
119
- * Default value can overwrite when:
120
- * 1. Current value is empty
121
- * 2. Current value equals the last default value (user hasn't modified it)
122
- */
123
- private checkDefaultRuleCanApply;
124
- private createRuleEvaluationContext;
125
- private buildItemChainValue;
126
- private getFieldIndexSignature;
127
- private updateRuleDeps;
128
- }
129
- export {};
@@ -1,75 +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 { FormInstance } from 'antd';
10
- import type { FlowModel } from '@nocobase/flow-engine';
11
- import type { FormAssignRuleItem, NamePath, Patch, SetOptions } from './types';
12
- type FormBlockModel = FlowModel & {
13
- getAclActionName?: () => string;
14
- };
15
- export declare class FormValueRuntime {
16
- private readonly model;
17
- private readonly getForm;
18
- private readonly valuesMirror;
19
- private readonly explicitSet;
20
- private readonly lastDefaultValueByPathKey;
21
- private readonly lastWriteMetaByPathKey;
22
- private readonly observableBindings;
23
- private readonly changeTick;
24
- private readonly txWriteCounts;
25
- private writeSeq;
26
- private disposed;
27
- private suppressFormCallbackDepth;
28
- private lastObservedChangedPaths;
29
- private lastObservedSource;
30
- private lastObservedToken;
31
- private readonly formValuesProxy;
32
- private mountedListener?;
33
- private unmountedListener?;
34
- private readonly formPatcher;
35
- private readonly ruleEngine;
36
- constructor(options: {
37
- model: FormBlockModel;
38
- getForm: () => FormInstance;
39
- });
40
- /**
41
- * 同步“表单赋值”配置到运行时规则引擎。
42
- *
43
- * - mode=default → source=default(遵循 explicit/空值覆盖语义)
44
- * - mode=assign → source=system(不受 explicit 影响,依赖变化时持续生效)
45
- */
46
- syncAssignRules(items: FormAssignRuleItem[]): void;
47
- get formValues(): any;
48
- getFormValuesSnapshot(): any;
49
- private getFormValueAtPath;
50
- mount(options?: {
51
- sync?: boolean;
52
- }): void;
53
- dispose(): void;
54
- isSuppressed(): boolean;
55
- handleFormFieldsChange(changedFields: Array<{
56
- name?: NamePath | string | number;
57
- touched?: boolean;
58
- }>): void;
59
- handleFormValuesChange(changedValues: any, allValues: any): void;
60
- private deriveExplicitPaths;
61
- private collectExplicitDiffPaths;
62
- private pushExplicitPath;
63
- private isPlainObjectValue;
64
- private isObjectCleared;
65
- setFormValues(callerCtx: any, patch: Patch, options?: SetOptions): Promise<void>;
66
- private applyBoundValue;
67
- private resolveNamePath;
68
- private tryResolveNamePath;
69
- private bumpChangeTick;
70
- private emitFormValuesChange;
71
- private markExplicit;
72
- private isExplicit;
73
- private findExplicitHit;
74
- }
75
- export {};
@@ -1,62 +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 type NamePath = Array<string | number>;
10
- export type ValueSource = 'default' | 'linkage' | 'user' | 'system';
11
- export type Patch = Record<string, any> | Array<{
12
- path: string | NamePath;
13
- value: any;
14
- condition?: any;
15
- }>;
16
- export interface SetOptions {
17
- source?: ValueSource;
18
- triggerEvent?: boolean;
19
- markExplicit?: boolean;
20
- txId?: string;
21
- /**
22
- * linkage 规则定义所在层级,数值越大表示层级越内层。
23
- * 仅在 source='linkage' 且 linkageTxId 有效时参与同事务冲突裁决。
24
- */
25
- linkageScopeDepth?: number;
26
- /**
27
- * linkage 链路事务 id(通常来自 formValuesChange payload 的 txId)。
28
- * 仅在 source='linkage' 时使用。
29
- */
30
- linkageTxId?: string;
31
- }
32
- export interface FormValueWriteMeta {
33
- source: ValueSource;
34
- writeSeq: number;
35
- linkageScopeDepth?: number;
36
- linkageTxId?: string;
37
- }
38
- export interface FormValuesChangePayload {
39
- source: ValueSource;
40
- txId: string;
41
- /**
42
- * linkage 链路根事务 id。
43
- * 用于跨事件继续沿用同一 linkage 冲突裁决边界。
44
- */
45
- linkageTxId?: string;
46
- changedPaths: NamePath[];
47
- changedValues?: any;
48
- allValues?: any;
49
- allValuesSnapshot?: any;
50
- }
51
- export type AssignMode = 'default' | 'assign';
52
- export type FormAssignRuleItem = {
53
- key?: string;
54
- enable?: boolean;
55
- /** 赋值目标路径,例如 `title` / `users.nickname` / `user.name` */
56
- targetPath?: string;
57
- /** 规则级 title field 覆盖(仅当前规则生效,不影响 collection 全局) */
58
- valueTitleField?: string;
59
- mode?: AssignMode;
60
- condition?: any;
61
- value?: any;
62
- };
@@ -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
- /** Maximum writes per path per transaction to prevent rule oscillation loops */
10
- export declare const MAX_WRITES_PER_PATH_PER_TX = 20;
11
- export declare function isEmptyValue(v: any): boolean;
12
- export declare function createTxId(): string;
@@ -1,15 +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 './assign-form';
10
- export * from './details';
11
- export * from './filter-form';
12
- export * from './filter-manager';
13
- export * from './form';
14
- export * from './js-block';
15
- export * from './table';
@@ -1,16 +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 { BlockModel } from '../../base';
11
- export declare class JSBlockModel extends BlockModel {
12
- private _mountedOnce;
13
- renderComponent(): React.ReactNode;
14
- render(): React.JSX.Element;
15
- protected onMount(): void;
16
- }
@@ -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 * from './JSBlock';
@@ -1,20 +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 { FieldAssignRuleItem } from '../../../components/FieldAssignRulesEditor';
10
- export interface LegacyValueExtractor {
11
- (model: any): any | undefined;
12
- }
13
- export interface LegacyClearer {
14
- (model: any): void;
15
- }
16
- export declare function createLegacyValueExtractor(flowKeys: string[]): LegacyValueExtractor;
17
- export declare function createLegacyClearer(flowKeys: string[]): LegacyClearer;
18
- export declare function collectLegacyDefaultValueRules(formModel: any, extractor: LegacyValueExtractor): FieldAssignRuleItem[];
19
- export declare function mergeAssignRulesWithLegacyDefaults(existing: FieldAssignRuleItem[] | undefined, legacyDefaults: FieldAssignRuleItem[]): FieldAssignRuleItem[];
20
- export declare function clearLegacyDefaultValues(formModel: any, extractor: LegacyValueExtractor, clearer: LegacyClearer): any[];
@@ -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 React from 'react';
10
- import { TableCustomColumnModel } from './TableCustomColumnModel';
11
- export declare class JSColumnModel extends TableCustomColumnModel {
12
- private _RenderComponent?;
13
- renderHiddenInConfig(): React.JSX.Element;
14
- getInputArgs(): {};
15
- getColumnProps(): {
16
- title: React.JSX.Element;
17
- render: (value: any, record: any, index: any) => React.JSX.Element;
18
- };
19
- render(): React.ComponentType<{}>;
20
- afterAddAsSubModel(): Promise<void>;
21
- }
@@ -1,18 +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 { TableCustomColumnModel } from './TableCustomColumnModel';
11
- export declare class TableActionsColumnModel extends TableCustomColumnModel {
12
- afterAddAsSubModel(): Promise<void>;
13
- getColumnProps(): {
14
- title: React.JSX.Element;
15
- render: (value: any, record: any, index: any) => React.JSX.Element;
16
- };
17
- render(): (value: any, record: any, index: any) => React.JSX.Element;
18
- }
@@ -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 TableAssociationFieldGroupModel extends AssociationFieldGroupModel {
11
- static itemModelName: string;
12
- }
@@ -1,90 +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 { MultiRecordResource } from '@nocobase/flow-engine';
10
- import React from 'react';
11
- import { ActionModel, CollectionBlockModel } from '../../base';
12
- import { TableColumnModel } from './TableColumnModel';
13
- type TableBlockModelStructure = {
14
- subModels: {
15
- columns: TableColumnModel[];
16
- actions: ActionModel[];
17
- };
18
- };
19
- type CustomTableBlockModelClassesEnum = {
20
- CollectionActionGroupModel?: string;
21
- RecordActionGroupModel?: string;
22
- TableColumnModel?: string;
23
- TableAssociationFieldGroupModel?: string;
24
- TableCustomColumnModel?: string;
25
- };
26
- export declare class TableBlockModel extends CollectionBlockModel<TableBlockModelStructure> {
27
- static scene: import("../../base").BlockSceneType;
28
- rowSelectionProps: {};
29
- _defaultCustomModelClasses: {
30
- CollectionActionGroupModel: string;
31
- RecordActionGroupModel: string;
32
- TableColumnModel: string;
33
- TableAssociationFieldGroupModel: string;
34
- TableCustomColumnModel: string;
35
- };
36
- customModelClasses: CustomTableBlockModelClassesEnum;
37
- get resource(): MultiRecordResource<any>;
38
- private readonly columns;
39
- private disposeAutorun;
40
- onMount(): void;
41
- onUnmount(): void;
42
- createResource(ctx: any, params: any): MultiRecordResource<unknown>;
43
- /**
44
- * 高亮指定的行
45
- * @param record - 要高亮的行记录
46
- */
47
- highlightRow(record: any): void;
48
- /**
49
- * 取消行高亮
50
- */
51
- clearHighlight(): void;
52
- getColumns(): any[];
53
- EditableRow: (props: any) => React.JSX.Element;
54
- EditableCell: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
55
- components: {
56
- header: {
57
- wrapper: React.NamedExoticComponent<object>;
58
- };
59
- body: {
60
- cell: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
61
- };
62
- };
63
- renderCell: (checked: any, record: any, index: any, originNode: any) => any;
64
- renderConfigureActions(): React.JSX.Element;
65
- pagination(): {
66
- current: number;
67
- pageSize: number;
68
- total: any;
69
- showTotal: (total: any) => any;
70
- showSizeChanger: boolean;
71
- simple?: undefined;
72
- showTitle?: undefined;
73
- hideOnSinglePage?: undefined;
74
- className?: undefined;
75
- itemRender?: undefined;
76
- } | {
77
- simple: boolean;
78
- showTitle: boolean;
79
- showSizeChanger: boolean;
80
- hideOnSinglePage: boolean;
81
- pageSize: number;
82
- total: number;
83
- className: string;
84
- itemRender: (_: any, type: any, originalElement: any) => any;
85
- current?: undefined;
86
- showTotal?: undefined;
87
- };
88
- renderComponent(): React.JSX.Element;
89
- }
90
- export {};
@@ -1,27 +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, ModelRenderMode } from '@nocobase/flow-engine';
10
- import { TableColumnProps } from 'antd';
11
- import React from 'react';
12
- export declare function FieldDeletePlaceholder(props: any): React.JSX.Element;
13
- export declare const CustomWidth: ({ setOpen, t, handleChange, defaultValue }: {
14
- setOpen: any;
15
- t: any;
16
- handleChange: any;
17
- defaultValue: any;
18
- }) => React.JSX.Element;
19
- export declare class TableColumnModel extends DisplayItemModel {
20
- static renderMode: ModelRenderMode;
21
- afterAddAsSubModel(): Promise<void>;
22
- renderHiddenInConfig(): React.ReactNode | undefined;
23
- static defineChildren(ctx: FlowModelContext): any;
24
- getColumnProps(): TableColumnProps;
25
- onInit(options: any): void;
26
- renderItem(): any;
27
- }
@@ -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 { FlowModel, ModelRenderMode } from '@nocobase/flow-engine';
10
- export declare class TableCustomColumnModel extends FlowModel {
11
- static renderMode: ModelRenderMode;
12
- }
@@ -1,19 +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, type SubModelItem } from '@nocobase/flow-engine';
10
- import { TableCustomColumnModel } from './TableCustomColumnModel';
11
- /**
12
- * “JavaScript 字段”菜单入口(表格):
13
- * - 仅用于在“添加列”菜单中提供一个二级菜单;
14
- * - 子项为当前集合可选字段;
15
- * - 点击后创建 TableColumnModel,并将其 subModels.field 固定为 JSFieldModel。
16
- */
17
- export declare class TableJSFieldItemModel extends TableCustomColumnModel {
18
- static defineChildren(ctx: FlowModelContext): Promise<SubModelItem[]>;
19
- }
@@ -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 { TableBlockModel } from './TableBlockModel';
10
- export declare class TableSelectModel extends TableBlockModel {
11
- static scene: import("../../base").BlockSceneType;
12
- rowSelectionProps: any;
13
- onInit(options: any): void;
14
- }
@@ -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 React from 'react';
10
- export declare const SortHandle: React.FC<{
11
- id: string | number;
12
- style?: React.CSSProperties;
13
- }>;
14
- export declare const SortableRow: (props: any) => React.JSX.Element;
@@ -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 type { TableBlockModel } from '../TableBlockModel';
11
- export declare function useDragSortBodyWrapper(model: TableBlockModel, dataSourceRef: React.MutableRefObject<any>, getRowKeyFunc: (record: any) => string | number): (props: any) => React.JSX.Element;
12
- export declare function useDragSortRowComponent(dragSort: boolean): (props: any) => React.JSX.Element;
13
- export declare function initDragSortParams(model: TableBlockModel): void;
@@ -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
- export declare const dragSortSettings: {
10
- title: string;
11
- uiMode: {
12
- type: "switch";
13
- key: string;
14
- };
15
- defaultParams: {
16
- dragSort: boolean;
17
- };
18
- handler(ctx: any, params: any): Promise<void>;
19
- };
20
- export declare const dragSortBySettings: {
21
- title: string;
22
- hideInSettings(ctx: any): boolean;
23
- uiMode: (ctx: any) => {
24
- type: "select";
25
- key: string;
26
- props: {
27
- options: {
28
- label: any;
29
- value: any;
30
- disabled: any;
31
- }[];
32
- placeholder: any;
33
- };
34
- };
35
- defaultParams: {
36
- dragSortBy: any;
37
- };
38
- handler(ctx: any, params: any): void;
39
- };