@nocobase/plugin-workflow 2.2.0-beta.9 → 3.0.0-alpha.1

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 (267) hide show
  1. package/client-v2.d.ts +2 -0
  2. package/client-v2.js +1 -0
  3. package/dist/client/119.e7dbd037d52d1286.js +10 -0
  4. package/dist/client/142.fb4936d78fc80007.js +10 -0
  5. package/dist/client/159.cc9a0f2d92cab2c1.js +10 -0
  6. package/dist/client/276.69fb2aea13bc7c37.js +10 -0
  7. package/dist/client/346.66d060d37843d3d1.js +10 -0
  8. package/dist/client/382.d37fba14a6b91b0b.js +10 -0
  9. package/dist/client/394.a37310b78419ad7a.js +10 -0
  10. package/dist/client/438.8bd46a04ca080a4e.js +10 -0
  11. package/dist/client/509.3a4ac27f10833c75.js +10 -0
  12. package/dist/client/54.d81b710f7b4c1cd5.js +10 -0
  13. package/dist/client/618.1aa6c21d0f2840cb.js +10 -0
  14. package/dist/client/635.ff6085589e23d39b.js +10 -0
  15. package/dist/client/67.5eb8767a709f27d9.js +10 -0
  16. package/dist/client/719.f011fde3ad54571e.js +10 -0
  17. package/dist/client/728.711fd4f1ed7d4e6a.js +10 -0
  18. package/dist/client/739.49407722fca8d236.js +10 -0
  19. package/dist/client/759.13aab01e6912ed8d.js +10 -0
  20. package/dist/client/772.1ebaef11a0ac8688.js +10 -0
  21. package/dist/client/782.47792ce10fc0d5fb.js +10 -0
  22. package/dist/client/828.d03ecfc4ac66e0f8.js +10 -0
  23. package/dist/client/87.b62b1123d4d560fb.js +10 -0
  24. package/dist/client/938.26493fc09ba1ccbc.js +10 -0
  25. package/dist/client/964.5ab736effd480a42.js +10 -0
  26. package/dist/client/972.dd7f074d5f12e171.js +10 -0
  27. package/dist/client/AddNodeContext.d.ts +1 -9
  28. package/dist/client/BranchContext.d.ts +2 -10
  29. package/dist/client/FlowContext.d.ts +10 -5
  30. package/dist/client/NodeClipboardContext.d.ts +12 -2
  31. package/dist/client/NodeDragContext.d.ts +14 -2
  32. package/dist/client/RemoveNodeContext.d.ts +16 -2
  33. package/dist/client/WorkflowTasks.d.ts +26 -3
  34. package/dist/client/index.d.ts +2 -2
  35. package/dist/client/index.js +1 -1
  36. package/dist/client/nodeVariableUtils.d.ts +7 -6
  37. package/dist/client/nodes/calculation.d.ts +3 -75
  38. package/dist/client/nodes/condition.d.ts +7 -111
  39. package/dist/client/nodes/create.d.ts +3 -124
  40. package/dist/client/nodes/destroy.d.ts +2 -57
  41. package/dist/client/nodes/end.d.ts +2 -23
  42. package/dist/client/nodes/index.d.ts +2 -91
  43. package/dist/client/nodes/multi-conditions.d.ts +10 -48
  44. package/dist/client/nodes/output.d.ts +2 -44
  45. package/dist/client/nodes/query.d.ts +3 -255
  46. package/dist/client/nodes/update.d.ts +2 -117
  47. package/dist/client/style.d.ts +7 -27
  48. package/dist/client/triggers/collection.d.ts +3 -181
  49. package/dist/client/triggers/index.d.ts +2 -36
  50. package/dist/client/triggers/schedule/index.d.ts +8 -65
  51. package/dist/client/utils.d.ts +4 -5
  52. package/dist/client/variable.d.ts +7 -53
  53. package/dist/client-v2/119.81195bcd0d451279.js +10 -0
  54. package/dist/client-v2/142.a8c8df2a9abb43c5.js +10 -0
  55. package/dist/client-v2/159.cb221540c286cd32.js +10 -0
  56. package/dist/client-v2/276.7f746d899e221e2f.js +10 -0
  57. package/dist/client-v2/326.bdc99ad8e7590970.js +10 -0
  58. package/dist/client-v2/346.8c038b3c99d4fdc9.js +10 -0
  59. package/dist/client-v2/382.05f5482bb512b179.js +10 -0
  60. package/dist/client-v2/387.e002f8eb34aa77e3.js +10 -0
  61. package/dist/client-v2/394.515ed058e7f72797.js +10 -0
  62. package/dist/client-v2/438.1459f1a7cd19ea4f.js +10 -0
  63. package/dist/client-v2/513.18e257b3025d7692.js +10 -0
  64. package/dist/client-v2/54.d3daf06e53092726.js +10 -0
  65. package/dist/client-v2/635.14a6f21cf4f16345.js +10 -0
  66. package/dist/client-v2/677.7007f4a6a4640165.js +10 -0
  67. package/dist/client-v2/719.05cf070ef89a78f4.js +10 -0
  68. package/dist/client-v2/728.4e8322ff8fce87b9.js +10 -0
  69. package/dist/client-v2/739.5b60845103064f8d.js +10 -0
  70. package/dist/client-v2/759.7b162ad3adf450f1.js +10 -0
  71. package/dist/client-v2/772.8e5148d8c1518449.js +10 -0
  72. package/dist/client-v2/938.717e47af39485b29.js +10 -0
  73. package/dist/client-v2/ExecutionCanvas.d.ts +15 -0
  74. package/dist/client-v2/canvas/AddNodeContext.d.ts +35 -0
  75. package/dist/client-v2/canvas/AddNodeContext.shared.d.ts +33 -0
  76. package/dist/client-v2/canvas/AddNodeSlot.d.ts +20 -0
  77. package/dist/client-v2/canvas/Branch.d.ts +32 -0
  78. package/dist/client-v2/canvas/BranchContext.d.ts +29 -0
  79. package/dist/client-v2/canvas/BranchRenderContext.d.ts +14 -0
  80. package/dist/client-v2/canvas/CanvasContent.d.ts +20 -0
  81. package/dist/client-v2/canvas/DownstreamBranchIndex.d.ts +20 -0
  82. package/dist/client-v2/canvas/Instruction.d.ts +139 -0
  83. package/dist/{client/triggers/schedule/EndsByField.d.ts → client-v2/canvas/JobButton.d.ts} +3 -3
  84. package/dist/client-v2/canvas/Node.d.ts +38 -0
  85. package/dist/client-v2/canvas/NodeClipboardContext.d.ts +64 -0
  86. package/dist/client-v2/canvas/NodeConfigDrawer.d.ts +27 -0
  87. package/dist/client-v2/canvas/NodeDragContext.d.ts +83 -0
  88. package/dist/client-v2/canvas/RemoveNodeContext.d.ts +45 -0
  89. package/dist/client-v2/canvas/WorkflowTypedVariableInput.d.ts +16 -0
  90. package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +47 -0
  91. package/dist/client-v2/canvas/WorkflowVariableJsonTextArea.d.ts +15 -0
  92. package/dist/client-v2/canvas/WorkflowVariableTag.d.ts +22 -0
  93. package/dist/client-v2/canvas/WorkflowVariableTextArea.d.ts +23 -0
  94. package/dist/client-v2/canvas/adaptVariableOptionToMetaTree.d.ts +48 -0
  95. package/dist/client-v2/canvas/addNodeController.d.ts +70 -0
  96. package/dist/client-v2/canvas/collectionFieldOptions.d.ts +57 -0
  97. package/dist/client-v2/canvas/contexts.d.ts +86 -0
  98. package/dist/client-v2/canvas/dropImpact.d.ts +28 -0
  99. package/dist/client-v2/canvas/instructionAvailability.d.ts +26 -0
  100. package/dist/client-v2/canvas/nodeRenderDispatch.d.ts +79 -0
  101. package/dist/client-v2/canvas/nodeTree.d.ts +21 -0
  102. package/dist/client-v2/canvas/nodeVariableUtils.d.ts +14 -0
  103. package/dist/client-v2/canvas/removeNodeUtils.d.ts +31 -0
  104. package/dist/client-v2/canvas/style.d.ts +35 -0
  105. package/dist/client-v2/canvas/textAreaInsertion.d.ts +14 -0
  106. package/dist/client-v2/canvas/useWorkflowInstruction.d.ts +23 -0
  107. package/dist/client-v2/canvas/useWorkflowVariableOptions.d.ts +40 -0
  108. package/dist/client-v2/canvas/workflowVariableConverters.d.ts +13 -0
  109. package/dist/client-v2/components/Calculation.d.ts +18 -0
  110. package/dist/client-v2/components/ExecutionStatusIcon.d.ts +18 -0
  111. package/dist/{client/triggers/schedule/RepeatField.d.ts → client-v2/components/ExecutionStatusTag.d.ts} +3 -4
  112. package/dist/client-v2/components/ExecutionViewHeader.d.ts +29 -0
  113. package/dist/client-v2/components/ExecutionsDropdown.d.ts +25 -0
  114. package/dist/client-v2/components/FilterDynamicComponent.d.ts +28 -0
  115. package/dist/client-v2/components/HideVariableContext.d.ts +11 -0
  116. package/dist/client-v2/components/JobResultModal.d.ts +11 -0
  117. package/dist/client-v2/components/RadioWithTooltip.d.ts +23 -0
  118. package/dist/client-v2/components/SyncModeSelect.d.ts +16 -0
  119. package/dist/{client/triggers/schedule/OnField.d.ts → client-v2/components/SyncModeTag.d.ts} +3 -3
  120. package/dist/client-v2/components/TestRunButton.d.ts +36 -0
  121. package/dist/client-v2/components/TimeoutInput.d.ts +15 -0
  122. package/dist/client-v2/components/WorkflowCanvasHeader.d.ts +17 -0
  123. package/dist/client-v2/components/WorkflowDetailsModal.d.ts +25 -0
  124. package/dist/client-v2/components/WorkflowEnabledSwitch.d.ts +16 -0
  125. package/dist/client-v2/components/WorkflowMenu.d.ts +17 -0
  126. package/dist/client-v2/components/WorkflowRevisionsDropdown.d.ts +15 -0
  127. package/dist/client-v2/components/WorkflowVariableWrapper.d.ts +25 -0
  128. package/dist/client-v2/components/collection/AppendsSelect.d.ts +15 -0
  129. package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +24 -0
  130. package/dist/client-v2/components/collection/CollectionCascader.d.ts +15 -0
  131. package/dist/client-v2/components/collection/FieldsSelect.d.ts +16 -0
  132. package/dist/client-v2/components/collection/PaginationFields.d.ts +14 -0
  133. package/dist/client-v2/components/collection/SortFieldsInput.d.ts +19 -0
  134. package/dist/client-v2/components/collection/TriggerCollectionRecordSelect.d.ts +15 -0
  135. package/dist/client-v2/components/collection/index.d.ts +16 -0
  136. package/dist/client-v2/components/collection/utils.d.ts +42 -0
  137. package/dist/client-v2/components/formatResultForDisplay.d.ts +17 -0
  138. package/dist/client-v2/components/jobStatus.d.ts +27 -0
  139. package/dist/client-v2/components/renderEngineReference.d.ts +10 -0
  140. package/dist/client-v2/components/workflowCanvas.d.ts +41 -0
  141. package/dist/client-v2/constants.d.ts +19 -0
  142. package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +16 -0
  143. package/dist/client-v2/index.d.ts +48 -0
  144. package/dist/client-v2/index.js +10 -0
  145. package/dist/client-v2/legacySettingsRedirect.d.ts +15 -0
  146. package/dist/client-v2/locale.d.ts +41 -0
  147. package/dist/{client → client-v2}/models/NodeDetailsGridModel.d.ts +1 -1
  148. package/dist/{client → client-v2}/models/NodeDetailsModel.d.ts +1 -1
  149. package/dist/{client → client-v2}/models/NodeValueModel.d.ts +1 -1
  150. package/dist/{client → client-v2}/models/TaskCardCommonItemModel.d.ts +1 -1
  151. package/dist/client-v2/models/WorkflowTasksTopbarActionModel.d.ts +18 -0
  152. package/dist/{client → client-v2}/models/index.d.ts +2 -0
  153. package/dist/client-v2/models/triggerWorkflows.d.ts +43 -0
  154. package/dist/client-v2/nodes/calculation.d.ts +38 -0
  155. package/dist/client-v2/nodes/collectionNode.d.ts +29 -0
  156. package/dist/client-v2/nodes/components/calculation.d.ts +11 -0
  157. package/dist/client-v2/nodes/components/collection.d.ts +15 -0
  158. package/dist/client-v2/nodes/components/condition.d.ts +25 -0
  159. package/dist/client-v2/nodes/components/conditionShared.d.ts +20 -0
  160. package/dist/client-v2/nodes/components/create.d.ts +12 -0
  161. package/dist/client-v2/nodes/components/destroy.d.ts +12 -0
  162. package/dist/{client/triggers/schedule/ScheduleConfig.d.ts → client-v2/nodes/components/end.d.ts} +1 -1
  163. package/dist/client-v2/nodes/components/filter.d.ts +17 -0
  164. package/dist/client-v2/nodes/components/multi-conditions.d.ts +13 -0
  165. package/dist/client-v2/nodes/components/multiConditionsShared.d.ts +20 -0
  166. package/dist/client-v2/nodes/components/output.d.ts +10 -0
  167. package/dist/client-v2/nodes/components/query.d.ts +12 -0
  168. package/dist/client-v2/nodes/components/update.d.ts +12 -0
  169. package/dist/client-v2/nodes/condition.d.ts +46 -0
  170. package/dist/client-v2/nodes/create.d.ts +30 -0
  171. package/dist/client-v2/nodes/destroy.d.ts +24 -0
  172. package/dist/client-v2/nodes/end.d.ts +21 -0
  173. package/dist/client-v2/nodes/multi-conditions.d.ts +34 -0
  174. package/dist/client-v2/nodes/output.d.ts +29 -0
  175. package/dist/client-v2/nodes/query.d.ts +32 -0
  176. package/dist/client-v2/nodes/update.d.ts +25 -0
  177. package/dist/client-v2/pages/ExecutionHistoryDrawer.d.ts +13 -0
  178. package/dist/client-v2/pages/ExecutionViewPage.d.ts +10 -0
  179. package/dist/client-v2/pages/WorkflowCanvasPage.d.ts +10 -0
  180. package/dist/client-v2/pages/WorkflowCategoryTabs.d.ts +25 -0
  181. package/dist/client-v2/pages/WorkflowFormDrawer.d.ts +40 -0
  182. package/dist/client-v2/pages/WorkflowPane.d.ts +10 -0
  183. package/dist/client-v2/pages/WorkflowTasksPage.d.ts +10 -0
  184. package/dist/client-v2/plugin.d.ts +119 -0
  185. package/dist/client-v2/taskCenter.d.ts +105 -0
  186. package/dist/client-v2/triggers/ExecuteWorkflowButton.d.ts +35 -0
  187. package/dist/client-v2/triggers/TriggerConfig.d.ts +22 -0
  188. package/dist/client-v2/triggers/TriggerExecutionButton.d.ts +13 -0
  189. package/dist/client-v2/triggers/collection/CollectionConfig.d.ts +14 -0
  190. package/dist/client-v2/triggers/collection/TriggerCollectionConfig.d.ts +11 -0
  191. package/dist/client-v2/triggers/collection/constants.d.ts +28 -0
  192. package/dist/client-v2/triggers/collection/index.d.ts +40 -0
  193. package/dist/client-v2/triggers/index.d.ts +63 -0
  194. package/dist/client-v2/triggers/schedule/EndsByField.d.ts +17 -0
  195. package/dist/client-v2/triggers/schedule/OnField.d.ts +20 -0
  196. package/dist/client-v2/triggers/schedule/RepeatField.d.ts +23 -0
  197. package/dist/client-v2/triggers/schedule/ScheduleConfig.d.ts +17 -0
  198. package/dist/client-v2/triggers/schedule/ScheduleModes.d.ts +41 -0
  199. package/dist/{client → client-v2}/triggers/schedule/TriggerScheduleConfig.d.ts +1 -0
  200. package/dist/{client → client-v2}/triggers/schedule/constants.d.ts +8 -5
  201. package/dist/client-v2/triggers/schedule/index.d.ts +40 -0
  202. package/dist/client-v2/triggers/schedule/locale/Cron.zh-CN.d.ts +11 -0
  203. package/dist/client-v2/utils/contextSingleton.d.ts +9 -0
  204. package/dist/common/collections/userWorkflowTaskStats.d.ts +54 -0
  205. package/dist/common/collections/userWorkflowTaskStats.js +87 -0
  206. package/dist/common/collections/workflows.d.ts +16 -0
  207. package/dist/common/collections/workflows.js +5 -0
  208. package/dist/common/defaultWorkflowFilter.d.ts +21 -0
  209. package/dist/common/defaultWorkflowFilter.js +38 -0
  210. package/dist/common/executionStatus.d.ts +44 -0
  211. package/dist/common/executionStatus.js +133 -0
  212. package/dist/externalVersion.js +16 -13
  213. package/dist/locale/de-DE.json +15 -1
  214. package/dist/locale/en-US.json +30 -1
  215. package/dist/locale/es-ES.json +15 -1
  216. package/dist/locale/fr-FR.json +15 -1
  217. package/dist/locale/hu-HU.json +15 -1
  218. package/dist/locale/id-ID.json +15 -1
  219. package/dist/locale/it-IT.json +15 -1
  220. package/dist/locale/ja-JP.json +15 -1
  221. package/dist/locale/ko-KR.json +15 -1
  222. package/dist/locale/nl-NL.json +15 -1
  223. package/dist/locale/pt-BR.json +15 -1
  224. package/dist/locale/ru-RU.json +15 -1
  225. package/dist/locale/tr-TR.json +15 -1
  226. package/dist/locale/uk-UA.json +15 -1
  227. package/dist/locale/vi-VN.json +15 -1
  228. package/dist/locale/zh-CN.json +29 -1
  229. package/dist/locale/zh-TW.json +21 -1
  230. package/dist/node_modules/cron-parser/package.json +1 -1
  231. package/dist/node_modules/joi/package.json +1 -1
  232. package/dist/node_modules/lru-cache/package.json +1 -1
  233. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  234. package/dist/server/Dispatcher.d.ts +27 -15
  235. package/dist/server/Dispatcher.js +199 -161
  236. package/dist/server/ExecutionTimeoutManager.js +2 -1
  237. package/dist/server/Plugin.d.ts +58 -12
  238. package/dist/server/Plugin.js +355 -15
  239. package/dist/server/Processor.d.ts +1 -7
  240. package/dist/server/Processor.js +11 -7
  241. package/dist/server/actions/executions.js +3 -6
  242. package/dist/server/actions/index.js +3 -1
  243. package/dist/server/actions/jobs.js +1 -2
  244. package/dist/server/actions/userWorkflowTaskStats.d.ts +10 -0
  245. package/dist/server/actions/userWorkflowTaskStats.js +112 -0
  246. package/dist/server/actions/workflows.d.ts +1 -0
  247. package/dist/server/actions/workflows.js +34 -2
  248. package/dist/server/collections/userWorkflowTaskStats.d.ts +11 -0
  249. package/dist/server/collections/userWorkflowTaskStats.js +43 -0
  250. package/dist/server/index.d.ts +1 -0
  251. package/dist/server/triggers/CollectionTrigger.d.ts +1 -1
  252. package/dist/server/triggers/CollectionTrigger.js +3 -0
  253. package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.d.ts +1 -1
  254. package/dist/server/triggers/index.d.ts +1 -1
  255. package/dist/server/types/Execution.d.ts +2 -0
  256. package/dist/server/types/Job.d.ts +5 -0
  257. package/dist/server/types/Workflow.d.ts +1 -0
  258. package/dist/server/utils.d.ts +2 -1
  259. package/dist/server/utils.js +19 -1
  260. package/dist/swagger/index.d.ts +69 -1
  261. package/dist/swagger/index.js +65 -3
  262. package/package.json +4 -2
  263. package/dist/client/618.c91be3f6e4d73501.js +0 -10
  264. package/dist/client/67.61e70b8b777f8638.js +0 -10
  265. package/dist/client/964.5e11e1820fece37b.js +0 -10
  266. package/dist/client/triggers/schedule/ScheduleModes.d.ts +0 -170
  267. package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -42
@@ -6,260 +6,8 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React from 'react';
10
- import { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/client';
11
- import { FilterDynamicComponent } from '../components/FilterDynamicComponent';
12
- import { WorkflowVariableInput } from '../variable';
13
- import { Instruction, useNodeSavedConfig } from '.';
14
- import { RadioWithTooltip } from '../components';
15
- import { SubModelItem } from '@nocobase/flow-engine';
16
- declare function useVariables({ key: name, title, config }: {
17
- key: any;
18
- title: any;
19
- config: any;
20
- }, options: any): import("../variable").VariableOption;
21
- export default class extends Instruction {
22
- title: string;
23
- type: string;
24
- group: string;
25
- description: string;
26
- icon: React.JSX.Element;
27
- presetFieldset: {
28
- collection: {
29
- type: string;
30
- title: string;
31
- required: boolean;
32
- 'x-reactions': any[];
33
- 'x-decorator': string;
34
- 'x-component': string;
35
- };
36
- };
37
- fieldset: {
38
- collection: {
39
- 'x-disabled': string;
40
- 'x-reactions': any[];
41
- type: string;
42
- title: string;
43
- required: boolean;
44
- 'x-decorator': string;
45
- 'x-component': string;
46
- };
47
- multiple: {
48
- type: string;
49
- title: string;
50
- 'x-decorator': string;
51
- 'x-component': string;
52
- 'x-component-props': {
53
- options: {
54
- label: string;
55
- value: boolean;
56
- tooltip: string;
57
- }[];
58
- };
59
- required: boolean;
60
- default: boolean;
61
- };
62
- params: {
63
- type: string;
64
- 'x-component': string;
65
- properties: {
66
- filter: {
67
- type: string;
68
- title: string;
69
- 'x-decorator': string;
70
- 'x-component': string;
71
- 'x-use-component-props': () => {
72
- options: any[];
73
- className: string;
74
- };
75
- 'x-component-props': {
76
- dynamicComponent: string;
77
- };
78
- };
79
- sort: {
80
- type: string;
81
- title: string;
82
- 'x-decorator': string;
83
- 'x-component': string;
84
- items: {
85
- type: string;
86
- properties: {
87
- space: {
88
- type: string;
89
- 'x-component': string;
90
- properties: {
91
- sort: {
92
- type: string;
93
- 'x-decorator': string;
94
- 'x-component': string;
95
- };
96
- field: {
97
- type: string;
98
- enum: string;
99
- required: boolean;
100
- 'x-decorator': string;
101
- 'x-component': string;
102
- 'x-component-props': {
103
- style: {
104
- width: number;
105
- };
106
- };
107
- };
108
- direction: {
109
- type: string;
110
- 'x-decorator': string;
111
- 'x-component': string;
112
- 'x-component-props': {
113
- optionType: string;
114
- };
115
- enum: {
116
- label: string;
117
- value: string;
118
- }[];
119
- };
120
- remove: {
121
- type: string;
122
- 'x-decorator': string;
123
- 'x-component': string;
124
- };
125
- };
126
- };
127
- };
128
- };
129
- properties: {
130
- add: {
131
- type: string;
132
- title: string;
133
- 'x-component': string;
134
- };
135
- };
136
- };
137
- pagination: {
138
- type: string;
139
- title: string;
140
- 'x-decorator': string;
141
- 'x-decorator-props': {
142
- value: {
143
- designable: boolean;
144
- };
145
- };
146
- 'x-component': string;
147
- properties: {
148
- row: {
149
- type: string;
150
- 'x-component': string;
151
- properties: {
152
- page: {
153
- type: string;
154
- 'x-component': string;
155
- properties: {
156
- page: {
157
- type: string;
158
- title: string;
159
- 'x-decorator': string;
160
- 'x-component': string;
161
- 'x-component-props': {
162
- nullable: boolean;
163
- useTypedConstant: (string | {
164
- min: number;
165
- })[][];
166
- };
167
- default: number;
168
- };
169
- };
170
- };
171
- pageSize: {
172
- type: string;
173
- 'x-component': string;
174
- properties: {
175
- pageSize: {
176
- type: string;
177
- title: string;
178
- 'x-decorator': string;
179
- 'x-component': string;
180
- 'x-component-props': {
181
- nullable: boolean;
182
- useTypedConstant: (string | {
183
- min: number;
184
- })[][];
185
- };
186
- default: number;
187
- };
188
- };
189
- };
190
- };
191
- };
192
- };
193
- };
194
- appends: {
195
- type: string;
196
- title: string;
197
- description: string;
198
- 'x-decorator': string;
199
- 'x-component': string;
200
- 'x-component-props': {
201
- title: string;
202
- multiple: boolean;
203
- useCollection(): any;
204
- };
205
- 'x-reactions': {
206
- dependencies: string[];
207
- fulfill: {
208
- state: {
209
- visible: string;
210
- };
211
- };
212
- }[];
213
- };
214
- };
215
- 'x-reactions': {
216
- dependencies: string[];
217
- fulfill: {
218
- state: {
219
- visible: string;
220
- };
221
- };
222
- }[];
223
- };
224
- failOnEmpty: {
225
- type: string;
226
- 'x-decorator': string;
227
- 'x-component': string;
228
- 'x-content': string;
229
- };
230
- };
231
- scope: {
232
- useNodeSavedConfig: typeof useNodeSavedConfig;
233
- useCollectionDataSource: typeof useCollectionDataSource;
234
- useSortableFields(): {
235
- value: any;
236
- label: any;
237
- }[];
238
- };
239
- components: {
240
- ArrayItems: import("@formily/react").ReactFC<React.HTMLAttributes<HTMLDivElement>> & import("@formily/antd-v5").ArrayBaseMixins & {
241
- Item: import("@formily/react").ReactFC<React.HTMLAttributes<HTMLDivElement> & {
242
- type?: "divide" | "card";
243
- }>;
244
- };
245
- FilterDynamicComponent: typeof FilterDynamicComponent;
246
- SchemaComponentContext: React.Context<import("@nocobase/client").ISchemaComponentContext>;
247
- WorkflowVariableInput: typeof WorkflowVariableInput;
248
- RadioWithTooltip: typeof RadioWithTooltip;
249
- };
250
- useVariables: typeof useVariables;
9
+ import type { SchemaInitializerItemType } from '@nocobase/client';
10
+ import V2QueryInstruction from '../../client-v2/nodes/query';
11
+ export default class extends V2QueryInstruction {
251
12
  useInitializers(node: any): SchemaInitializerItemType | null;
252
- /**
253
- * 2.0
254
- */
255
- getCreateModelMenuItem({ node }: {
256
- node: any;
257
- }): SubModelItem;
258
- useTempAssociationSource(node: any): {
259
- collection: any;
260
- nodeId: any;
261
- nodeKey: any;
262
- nodeType: "node";
263
- };
264
13
  }
265
- export {};
@@ -6,121 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React from 'react';
10
- import { useCollectionDataSource } from '@nocobase/client';
11
- import { AssignedFieldsFormSchemaConfig } from '../components/AssignedFieldsFormSchemaConfig';
12
- import { FilterDynamicComponent } from '../components/FilterDynamicComponent';
13
- import { RadioWithTooltip } from '../components/RadioWithTooltip';
14
- import { Instruction, useNodeSavedConfig } from '.';
15
- export default class extends Instruction {
16
- title: string;
17
- type: string;
18
- group: string;
19
- description: string;
20
- icon: React.JSX.Element;
21
- presetFieldset: {
22
- collection: {
23
- type: string;
24
- title: string;
25
- required: boolean;
26
- 'x-reactions': any[];
27
- 'x-decorator': string;
28
- 'x-component': string;
29
- };
30
- };
31
- fieldset: {
32
- collection: {
33
- 'x-disabled': string;
34
- 'x-reactions': any[];
35
- type: string;
36
- title: string;
37
- required: boolean;
38
- 'x-decorator': string;
39
- 'x-component': string;
40
- };
41
- params: {
42
- type: string;
43
- properties: {
44
- individualHooks: {
45
- type: string;
46
- title: string;
47
- 'x-decorator': string;
48
- 'x-component': string;
49
- 'x-component-props': {
50
- options: {
51
- label: string;
52
- value: boolean;
53
- tooltip: string;
54
- }[];
55
- };
56
- default: boolean;
57
- };
58
- filter: {
59
- title: string;
60
- "x-validator"(value: any): string;
61
- type: string;
62
- 'x-decorator': string;
63
- 'x-component': string;
64
- 'x-use-component-props': () => {
65
- options: any[];
66
- className: string;
67
- };
68
- 'x-component-props': {
69
- dynamicComponent: string;
70
- };
71
- };
72
- values: {
73
- 'x-reactions': {
74
- dependencies: string[];
75
- fulfill: {
76
- state: {
77
- display: string;
78
- };
79
- };
80
- }[];
81
- type: string;
82
- title: string;
83
- description: string;
84
- 'x-decorator': string;
85
- 'x-decorator-props': {
86
- labelAlign: string;
87
- className: string;
88
- };
89
- 'x-component': string;
90
- };
91
- };
92
- };
93
- usingAssignFormSchema: {
94
- type: string;
95
- };
96
- assignFormSchema: {
97
- type: string;
98
- title: string;
99
- 'x-decorator': string;
100
- 'x-component': string;
101
- 'x-reactions': {
102
- dependencies: string[];
103
- fulfill: {
104
- state: {
105
- display: string;
106
- };
107
- };
108
- }[];
109
- };
110
- };
111
- createDefaultConfig(): {
112
- usingAssignFormSchema: boolean;
113
- assignFormSchema: {};
114
- };
115
- scope: {
116
- useCollectionDataSource: typeof useCollectionDataSource;
117
- useNodeSavedConfig: typeof useNodeSavedConfig;
118
- };
119
- components: {
120
- FilterDynamicComponent: typeof FilterDynamicComponent;
121
- CollectionFieldset: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
122
- AssignedFieldsFormSchemaConfig: typeof AssignedFieldsFormSchemaConfig;
123
- RadioWithTooltip: typeof RadioWithTooltip;
124
- };
125
- useTempAssociationSource(node: any): any;
9
+ import V2UpdateInstruction from '../../client-v2/nodes/update';
10
+ export default class extends V2UpdateInstruction {
126
11
  }
@@ -6,30 +6,10 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
- workflowPageClass: import("antd-style").SerializedStyles;
11
- dropdownClass: import("antd-style").SerializedStyles;
12
- workflowVersionDropdownClass: import("antd-style").SerializedStyles;
13
- executionsDropdownRowClass: import("antd-style").SerializedStyles;
14
- workflowDetailsDescriptionClass: import("antd-style").SerializedStyles;
15
- branchBlockClass: import("antd-style").SerializedStyles;
16
- branchClass: import("antd-style").SerializedStyles;
17
- nodeBlockClass: import("antd-style").SerializedStyles;
18
- nodeClass: import("antd-style").SerializedStyles;
19
- nodeCardClass: import("antd-style").SerializedStyles;
20
- nodeJobButtonClass: import("antd-style").SerializedStyles;
21
- nodeHeaderClass: import("antd-style").SerializedStyles;
22
- nodeMetaClass: import("antd-style").SerializedStyles;
23
- nodeTitleClass: import("antd-style").SerializedStyles;
24
- nodeSubtreeClass: import("antd-style").SerializedStyles;
25
- nodeJobResultClass: import("antd-style").SerializedStyles;
26
- addButtonClass: import("antd-style").SerializedStyles;
27
- dropZoneClass: import("antd-style").SerializedStyles;
28
- pasteButtonClass: import("antd-style").SerializedStyles;
29
- dragPreviewClass: import("antd-style").SerializedStyles;
30
- clipboardPreviewClass: import("antd-style").SerializedStyles;
31
- conditionClass: import("antd-style").SerializedStyles;
32
- loopLineClass: import("antd-style").SerializedStyles;
33
- terminalClass: import("antd-style").SerializedStyles;
34
- }>;
35
- export default useStyles;
9
+ /**
10
+ * The canvas stylesheet now lives in `src/client-v2/canvas/style.tsx` and is
11
+ * shared by both canvases (ADR-0003). This module re-exports it via the allowed
12
+ * `v1 → v2` import direction so existing v1 import sites (`import useStyles from
13
+ * '../style'`) are unchanged. Delete this file when the legacy canvas retires.
14
+ */
15
+ export { default } from '../client-v2/canvas/style';
@@ -6,186 +6,8 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React from 'react';
10
- import { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/client';
11
- import { useWorkflowAnyExecuted } from '../hooks';
12
- import { Trigger } from '.';
13
- import { TriggerCollectionRecordSelect } from '../components/TriggerCollectionRecordSelect';
14
- import { SubModelItem } from '@nocobase/flow-engine';
15
- declare function useVariables(config: any, options: any): import("../variable").VariableOption[];
16
- export default class extends Trigger {
17
- title: string;
18
- description: string;
19
- presetFieldset: {
20
- collection: {
21
- 'x-component-props': {
22
- dataSourceFilter(item: any): any;
23
- };
24
- type: string;
25
- title: string;
26
- required: boolean;
27
- 'x-reactions': any[];
28
- 'x-decorator': string;
29
- 'x-component': string;
30
- };
31
- rollbackOnFailure: {
32
- type: string;
33
- 'x-content': string;
34
- description: string;
35
- 'x-decorator': string;
36
- 'x-component': string;
37
- default: boolean;
38
- 'x-reactions': string[];
39
- };
40
- };
41
- fieldset: {
42
- collection: {
43
- 'x-disabled': boolean;
44
- 'x-component-props': {
45
- dataSourceFilter(item: any): any;
46
- };
47
- "x-reactions": any[];
48
- type: string;
49
- title: string;
50
- required: boolean;
51
- 'x-decorator': string;
52
- 'x-component': string;
53
- };
54
- mode: {
55
- type: string;
56
- title: string;
57
- 'x-decorator': string;
58
- 'x-component': string;
59
- 'x-component-props': {
60
- popupMatchSelectWidth: boolean;
61
- placeholder: string;
62
- className: string;
63
- };
64
- enum: {
65
- label: string;
66
- value: number;
67
- }[];
68
- required: boolean;
69
- 'x-reactions': {
70
- dependencies: string[];
71
- fulfill: {
72
- state: {
73
- visible: string;
74
- };
75
- };
76
- }[];
77
- };
78
- changed: {
79
- type: string;
80
- title: string;
81
- description: string;
82
- 'x-decorator': string;
83
- 'x-component': string;
84
- 'x-component-props': {
85
- mode: string;
86
- placeholder: string;
87
- filter(field: any): boolean;
88
- };
89
- 'x-reactions': {
90
- dependencies: string[];
91
- fulfill: {
92
- state: {
93
- visible: string;
94
- };
95
- };
96
- }[];
97
- };
98
- condition: {
99
- title: string;
100
- 'x-component-props': {};
101
- 'x-reactions': {
102
- dependencies: string[];
103
- fulfill: {
104
- state: {
105
- visible: string;
106
- };
107
- };
108
- }[];
109
- type: string;
110
- 'x-decorator': string;
111
- 'x-component': string;
112
- 'x-use-component-props': () => {
113
- options: any[];
114
- className: string;
115
- };
116
- };
117
- appends: {
118
- 'x-reactions': {
119
- dependencies: string[];
120
- fulfill: {
121
- state: {
122
- visible: string;
123
- };
124
- };
125
- }[];
126
- type: string;
127
- title: string;
128
- description: string;
129
- 'x-decorator': string;
130
- 'x-component': string;
131
- 'x-component-props': {
132
- title: string;
133
- multiple: boolean;
134
- useCollection(): any;
135
- };
136
- };
137
- syncTransactionNotice: {
138
- type: string;
139
- 'x-component': string;
140
- };
141
- rollbackOnFailure: {
142
- type: string;
143
- 'x-content': string;
144
- description: string;
145
- 'x-decorator': string;
146
- 'x-component': string;
147
- default: boolean;
148
- 'x-reactions': string[];
149
- };
150
- };
151
- scope: {
152
- useCollectionDataSource: typeof useCollectionDataSource;
153
- useSyncModeVisibleReaction: (field: any) => void;
154
- useWorkflowAnyExecuted: typeof useWorkflowAnyExecuted;
155
- };
156
- components: {
157
- Alert: React.ForwardRefExoticComponent<import("antd").AlertProps & React.RefAttributes<import("antd/es/alert/Alert").AlertRef>> & {
158
- ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
159
- };
160
- FieldsSelect: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
161
- SyncTransactionNotice: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
162
- TriggerCollectionRecordSelect: typeof TriggerCollectionRecordSelect;
163
- };
164
- triggerFieldset: {
165
- data: {
166
- type: string;
167
- title: string;
168
- description: string;
169
- 'x-decorator': string;
170
- 'x-component': string;
171
- default: any;
172
- required: boolean;
173
- };
174
- };
175
- validate(values: any): any;
176
- useVariables: typeof useVariables;
9
+ import type { SchemaInitializerItemType } from '@nocobase/client';
10
+ import V2CollectionTrigger from '../../client-v2/triggers/collection';
11
+ export default class CollectionTrigger extends V2CollectionTrigger {
177
12
  useInitializers(config: any): SchemaInitializerItemType | null;
178
- /**
179
- * 2.0
180
- */
181
- getCreateModelMenuItem({ config }: {
182
- config: any;
183
- }): SubModelItem;
184
- useTempAssociationSource(config: any, workflow: any): {
185
- collection: any;
186
- nodeId: any;
187
- nodeKey: string;
188
- nodeType: "workflow";
189
- };
190
13
  }
191
- export {};
@@ -7,42 +7,8 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import React from 'react';
10
- import { ISchema } from '@formily/react';
11
- import { SchemaInitializerItemType } from '@nocobase/client';
12
- import { UseVariableOptions, VariableOption } from '../variable';
13
- export declare abstract class Trigger {
14
- sync: boolean;
15
- title: string;
16
- description?: string;
17
- useVariables?(config: Record<string, any>, options?: UseVariableOptions): VariableOption[];
18
- fieldset: Record<string, ISchema>;
19
- /**
20
- * @experimental
21
- */
22
- presetFieldset?: Record<string, ISchema>;
23
- triggerFieldset?: Record<string, ISchema>;
24
- validate(config: Record<string, any>): boolean;
25
- view?: ISchema;
26
- scope?: {
27
- [key: string]: any;
28
- };
29
- components?: {
30
- [key: string]: any;
31
- };
32
- useInitializers?(config: any): SchemaInitializerItemType | null;
33
- initializers?: any;
34
- isActionTriggerable_deprecated?: boolean | ((config: object, context?: object) => boolean);
35
- /**
36
- * @experimental
37
- */
38
- useTempAssociationSource?(config: any, workflow: any): TriggerTempAssociationSource | null;
39
- }
40
- export type TriggerTempAssociationSource = {
41
- collection: string;
42
- nodeId: string | number;
43
- nodeKey: string;
44
- nodeType: 'workflow';
45
- };
10
+ export { Trigger } from '../../client-v2/triggers';
11
+ export type { TriggerTempAssociationSource } from '../../client-v2/triggers';
46
12
  export declare const TriggerConfig: () => React.JSX.Element;
47
13
  /**
48
14
  * @experimental