@tachybase/plugin-workflow-approval 0.23.8

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 (277) hide show
  1. package/.turbo/turbo-build.log +14 -0
  2. package/LICENSE +201 -0
  3. package/README.md +1 -0
  4. package/client.d.ts +2 -0
  5. package/client.js +1 -0
  6. package/dist/client/h5/ApprovalBlockInitializer.d.ts +8 -0
  7. package/dist/client/h5/ApprovalSettings.d.ts +2 -0
  8. package/dist/client/h5/collection/ApprovalTodos.d.ts +105 -0
  9. package/dist/client/h5/collection/Approvals.collection.d.ts +85 -0
  10. package/dist/client/h5/collection/FlowNodes.collection.d.ts +38 -0
  11. package/dist/client/h5/collection/UserJobs.collection.d.ts +141 -0
  12. package/dist/client/h5/collection/Workflows.collection.d.ts +30 -0
  13. package/dist/client/h5/collection/approvalCarbonCopy.collection.d.ts +156 -0
  14. package/dist/client/h5/collection/notice.collection.d.ts +131 -0
  15. package/dist/client/h5/component/ApprovalProcess.view.d.ts +2 -0
  16. package/dist/client/h5/component/ApprovalReachDataType.d.ts +2 -0
  17. package/dist/client/h5/component/ApprovalTemplateType.d.ts +2 -0
  18. package/dist/client/h5/constants.d.ts +159 -0
  19. package/dist/client/h5/context/ApprovalExecution.d.ts +3 -0
  20. package/dist/client/h5/context/FormBlock.d.ts +2 -0
  21. package/dist/client/h5/context/SchemaComponent.d.ts +5 -0
  22. package/dist/client/h5/context/WithActionEnabled.d.ts +3 -0
  23. package/dist/client/h5/index.d.ts +6 -0
  24. package/dist/client/h5/initiations/InitiationsBlock.d.ts +5 -0
  25. package/dist/client/h5/initiations/component/ApprovalItem.d.ts +2 -0
  26. package/dist/client/h5/initiations/component/ApprovalStatus.d.ts +2 -0
  27. package/dist/client/h5/initiations/component/InitiationsItem.d.ts +3 -0
  28. package/dist/client/h5/initiations/component/UserInitiationsItem.d.ts +3 -0
  29. package/dist/client/h5/initiations/component/ViewActionInitiationsContent.d.ts +10 -0
  30. package/dist/client/h5/initiations/component/ViewActionUserInitiationsContent.d.ts +3 -0
  31. package/dist/client/h5/initiations/config/LauncherActionConfig.d.ts +2 -0
  32. package/dist/client/h5/initiations/config/LauncherActionConfigComponent.d.ts +2 -0
  33. package/dist/client/h5/initiations/hook/useActionResubmit.d.ts +3 -0
  34. package/dist/client/h5/initiations/hook/useCreateSubmit.d.ts +3 -0
  35. package/dist/client/h5/initiations/hook/useDestroyAction.d.ts +3 -0
  36. package/dist/client/h5/initiations/hook/useFormBlockProps.d.ts +3 -0
  37. package/dist/client/h5/initiations/hook/useUpadteSubmit.d.ts +3 -0
  38. package/dist/client/h5/initiations/hook/useWithdrawAction.d.ts +3 -0
  39. package/dist/client/h5/initiations/provider/ActionBar.d.ts +1 -0
  40. package/dist/client/h5/initiations/provider/ActionResubmit.provider.d.ts +1 -0
  41. package/dist/client/h5/initiations/provider/ApplyActionStatus.d.ts +3 -0
  42. package/dist/client/h5/initiations/provider/Resubmit.provider.d.ts +10 -0
  43. package/dist/client/h5/initiations/provider/WithdrawAction.d.ts +3 -0
  44. package/dist/client/h5/locale.d.ts +7 -0
  45. package/dist/client/h5/todos/TodosBlock.d.ts +3 -0
  46. package/dist/client/h5/todos/component/TabApplicantType.d.ts +2 -0
  47. package/dist/client/h5/todos/component/TabApprovalItem.d.ts +3 -0
  48. package/dist/client/h5/todos/component/TabApprovalType.d.ts +2 -0
  49. package/dist/client/h5/todos/component/TabDuplicateItem.d.ts +3 -0
  50. package/dist/client/h5/todos/component/TabExecutedItem.d.ts +3 -0
  51. package/dist/client/h5/todos/component/TabPendingItem.d.ts +3 -0
  52. package/dist/client/h5/todos/component/TabProcessedItem.d.ts +3 -0
  53. package/dist/client/h5/todos/component/ViewActionTodosContent.d.ts +3 -0
  54. package/dist/client/h5/todos/component/ViewTodosDetailsContent.d.ts +2 -0
  55. package/dist/client/h5/todos/component/ViewTodosUserJobsContent.d.ts +6 -0
  56. package/dist/client/h5/todos/component/ViewTodosWorkflowNoticeContent.d.ts +3 -0
  57. package/dist/client/h5/todos/componentSchema.d.ts +32 -0
  58. package/dist/client/h5/todos/hook/useApprovalDetailBlockProps.d.ts +3 -0
  59. package/dist/client/h5/todos/hook/useApprovalFormBlockProps.d.ts +3 -0
  60. package/dist/client/h5/todos/hook/useDestroyAction.d.ts +3 -0
  61. package/dist/client/h5/todos/hook/useFormBlockProps.d.ts +9 -0
  62. package/dist/client/h5/todos/hook/usePropsNoticeDetail.d.ts +3 -0
  63. package/dist/client/h5/todos/hook/useSubmit.d.ts +6 -0
  64. package/dist/client/h5/todos/interface/interface.d.ts +139 -0
  65. package/dist/client/h5/todos/provider/ActionBarProvider.d.ts +3 -0
  66. package/dist/client/h5/todos/provider/ApplyActionStatus.d.ts +3 -0
  67. package/dist/client/h5/todos/provider/ApprovalAction.d.ts +9 -0
  68. package/dist/client/h5/todos/provider/ApprovalFormBlock.d.ts +2 -0
  69. package/dist/client/h5/todos/provider/FormBlockProvider.d.ts +2 -0
  70. package/dist/client/h5/todos/provider/ManualActionStatusProvider.d.ts +6 -0
  71. package/dist/client/h5/todos/provider/WithdrawAction.d.ts +3 -0
  72. package/dist/client/h5/todos/provider/todosContext.d.ts +2 -0
  73. package/dist/client/index.d.ts +7 -0
  74. package/dist/client/index.js +183 -0
  75. package/dist/client/pc/collections/approvalCarbonCopy.d.ts +156 -0
  76. package/dist/client/pc/collections/approvalRecords.d.ts +131 -0
  77. package/dist/client/pc/collections/approvals.d.ts +109 -0
  78. package/dist/client/pc/collections/flowNodes.d.ts +38 -0
  79. package/dist/client/pc/collections/workflows.d.ts +41 -0
  80. package/dist/client/pc/common/FormBlock.provider.d.ts +2 -0
  81. package/dist/client/pc/configuration/Approval.setting.d.ts +8 -0
  82. package/dist/client/pc/configuration/ApprovalPane.component.d.ts +2 -0
  83. package/dist/client/pc/configuration/ApprovalPane.schema.d.ts +651 -0
  84. package/dist/client/pc/configuration/instruction-approval/Approval.node.d.ts +152 -0
  85. package/dist/client/pc/configuration/instruction-approval/ApprovalNode.component.d.ts +4 -0
  86. package/dist/client/pc/configuration/instruction-approval/ApproverConfig.context.d.ts +1 -0
  87. package/dist/client/pc/configuration/instruction-approval/approval-config/SkipApproval.schema.d.ts +14 -0
  88. package/dist/client/pc/configuration/instruction-approval/approval-config/SkipApproval.view.d.ts +2 -0
  89. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.AssigneesAddition.d.ts +2 -0
  90. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.AssigneesSelect.d.ts +2 -0
  91. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.ContentTooltip.d.ts +5 -0
  92. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.NegotiationConfig.d.ts +5 -0
  93. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.SchemaConfigButtonApprover.d.ts +2 -0
  94. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApprovalUpdateForm.provider.d.ts +1 -0
  95. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverAddBlock.initializer.d.ts +2 -0
  96. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverBlock.view.d.ts +5 -0
  97. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverInterface.schema.d.ts +2 -0
  98. package/dist/client/pc/configuration/instruction-approval/approver-interface/Iz.ApproverActionConfig.d.ts +2 -0
  99. package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.ActionBarProvider.d.ts +1 -0
  100. package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.ApprovalActionProvider.d.ts +1 -0
  101. package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.SchemaConfigButtonContext.d.ts +1 -0
  102. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApprovalActionConfig.d.ts +2 -0
  103. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApprovalFormBlockProvider.d.ts +2 -0
  104. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApproverAddBlock.d.ts +2 -0
  105. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApproverAddBlockKit.d.ts +2 -0
  106. package/dist/client/pc/configuration/instruction-approval/approver-interface/useApprovalFormBlockProps.d.ts +3 -0
  107. package/dist/client/pc/configuration/instruction-approval/forms/AddActionButton.setting.d.ts +2 -0
  108. package/dist/client/pc/configuration/instruction-approval/forms/Approval.options.d.ts +42 -0
  109. package/dist/client/pc/configuration/instruction-approval/forms/FormBlock.factory.d.ts +6 -0
  110. package/dist/client/pc/configuration/instruction-approval/forms/update.d.ts +28 -0
  111. package/dist/client/pc/configuration/instruction-approval/kit.d.ts +5 -0
  112. package/dist/client/pc/configuration/instruction-approval/utils.d.ts +1 -0
  113. package/dist/client/pc/configuration/instruction-carbon-copy/ApprovalCarbonCopy.instruction.d.ts +76 -0
  114. package/dist/client/pc/configuration/instruction-carbon-copy/config-items/AddNotifiedPerson.view.d.ts +2 -0
  115. package/dist/client/pc/configuration/instruction-carbon-copy/config-items/ConfigButtonNotice.view.d.ts +2 -0
  116. package/dist/client/pc/configuration/instruction-carbon-copy/config-items/SelectNotifiedPerson.view.d.ts +2 -0
  117. package/dist/client/pc/configuration/instruction-carbon-copy/kit.d.ts +5 -0
  118. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.block.d.ts +2 -0
  119. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.initializer.d.ts +2 -0
  120. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.schema.d.ts +6 -0
  121. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetailContainer.schema.d.ts +2 -0
  122. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/style.d.ts +3 -0
  123. package/dist/client/pc/configuration/instruction-carbon-copy/style.d.ts +5 -0
  124. package/dist/client/pc/configuration/plugin.d.ts +5 -0
  125. package/dist/client/pc/configuration/trigger/Approval.trigger.d.ts +121 -0
  126. package/dist/client/pc/configuration/trigger/ConfigButton.view.d.ts +2 -0
  127. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherActionConfig.component.d.ts +3 -0
  128. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherActionConfig.initializer.d.ts +2 -0
  129. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherAddBlockButton.initializer.d.ts +2 -0
  130. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherBlockButton.component.d.ts +2 -0
  131. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherInterface.schema.d.ts +2 -0
  132. package/dist/client/pc/configuration/trigger/launcher-interface/SchemaAddBlock.component.d.ts +5 -0
  133. package/dist/client/pc/configuration/trigger/plugin.d.ts +6 -0
  134. package/dist/client/pc/constants.d.ts +91 -0
  135. package/dist/client/pc/index.d.ts +5 -0
  136. package/dist/client/pc/locale.d.ts +7 -0
  137. package/dist/client/pc/usage/block/ApprovalBlock.initializer.d.ts +70 -0
  138. package/dist/client/pc/usage/block/BlockInitItem.provider.d.ts +5 -0
  139. package/dist/client/pc/usage/block/BlockInitItem.schema.d.ts +21 -0
  140. package/dist/client/pc/usage/block/BlockInitItem.view.d.ts +2 -0
  141. package/dist/client/pc/usage/block/InitiateApplication.component.d.ts +6 -0
  142. package/dist/client/pc/usage/block/carbon-copy/CarbonCopyBlock.provider.d.ts +5 -0
  143. package/dist/client/pc/usage/block/carbon-copy/CarbonCopyCenter.schema.d.ts +2 -0
  144. package/dist/client/pc/usage/block/common/ApprovalExecution.provider.d.ts +6 -0
  145. package/dist/client/pc/usage/block/common/FlowContext.provider.d.ts +6 -0
  146. package/dist/client/pc/usage/block/common/FuzzySearch.component.d.ts +2 -0
  147. package/dist/client/pc/usage/block/common/SchemaComponent.provider.d.ts +5 -0
  148. package/dist/client/pc/usage/block/common/useHandleRefresh.d.ts +3 -0
  149. package/dist/client/pc/usage/block/initiations/ApprovalStatus.context.d.ts +2 -0
  150. package/dist/client/pc/usage/block/initiations/CheckContent.component.d.ts +2 -0
  151. package/dist/client/pc/usage/block/initiations/CheckContent.provider.d.ts +2 -0
  152. package/dist/client/pc/usage/block/initiations/CheckContent.schema.d.ts +45 -0
  153. package/dist/client/pc/usage/block/initiations/CheckContent.view.d.ts +2 -0
  154. package/dist/client/pc/usage/block/initiations/CheckLink.schema.d.ts +24 -0
  155. package/dist/client/pc/usage/block/initiations/CheckLink.view.d.ts +2 -0
  156. package/dist/client/pc/usage/block/initiations/TableInitiated.d.ts +6 -0
  157. package/dist/client/pc/usage/block/initiations/TableInitiated.schema.d.ts +182 -0
  158. package/dist/client/pc/usage/block/initiations/WithdrawAction.provider.d.ts +3 -0
  159. package/dist/client/pc/usage/block/initiations/apply-button/ActionBar.provider.d.ts +1 -0
  160. package/dist/client/pc/usage/block/initiations/apply-button/ActionStatus.provider.d.ts +3 -0
  161. package/dist/client/pc/usage/block/initiations/apply-button/ActionWithdraw.provider.d.ts +1 -0
  162. package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.component.d.ts +2 -0
  163. package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.provider.d.ts +2 -0
  164. package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.view.d.ts +2 -0
  165. package/dist/client/pc/usage/block/initiations/apply-button/hooks/useActionResubmit.d.ts +3 -0
  166. package/dist/client/pc/usage/block/initiations/apply-button/hooks/useSubmitCreate.d.ts +3 -0
  167. package/dist/client/pc/usage/block/initiations/apply-button/hooks/useWithdrawAction.d.ts +3 -0
  168. package/dist/client/pc/usage/block/initiations/hooks/useActionResubmit.d.ts +3 -0
  169. package/dist/client/pc/usage/block/initiations/hooks/useDestroyAction.d.ts +3 -0
  170. package/dist/client/pc/usage/block/initiations/hooks/useFormBlockProps.d.ts +3 -0
  171. package/dist/client/pc/usage/block/initiations/hooks/useSubmitUpdate.d.ts +3 -0
  172. package/dist/client/pc/usage/block/initiations/hooks/useWithdrawAction.d.ts +3 -0
  173. package/dist/client/pc/usage/block/initiations/providers/ActionBar.provider.d.ts +1 -0
  174. package/dist/client/pc/usage/block/initiations/providers/ActionResubmit.provider.d.ts +1 -0
  175. package/dist/client/pc/usage/block/initiations/providers/ApplyActionStatus.provider.d.ts +2 -0
  176. package/dist/client/pc/usage/block/initiations/providers/Record.provider.d.ts +2 -0
  177. package/dist/client/pc/usage/block/plugin.d.ts +5 -0
  178. package/dist/client/pc/usage/block/todos/CheckContent.component.d.ts +2 -0
  179. package/dist/client/pc/usage/block/todos/CheckContent.provider.d.ts +2 -0
  180. package/dist/client/pc/usage/block/todos/CheckContent.schema.d.ts +40 -0
  181. package/dist/client/pc/usage/block/todos/CheckContent.view.d.ts +2 -0
  182. package/dist/client/pc/usage/block/todos/CheckLink.schema.d.ts +19 -0
  183. package/dist/client/pc/usage/block/todos/CheckLink.view.d.ts +2 -0
  184. package/dist/client/pc/usage/block/todos/TableTodos.d.ts +6 -0
  185. package/dist/client/pc/usage/block/todos/TableTodos.schema.d.ts +195 -0
  186. package/dist/client/pc/usage/block/todos/hooks/useApprovalDetailBlockProps.d.ts +3 -0
  187. package/dist/client/pc/usage/block/todos/hooks/useApprovalFormBlockProps.d.ts +3 -0
  188. package/dist/client/pc/usage/block/todos/hooks/useSubmit.d.ts +3 -0
  189. package/dist/client/pc/usage/block/todos/providers/ActionBar.provider.d.ts +2 -0
  190. package/dist/client/pc/usage/block/todos/providers/ApprovalAction.provider.d.ts +10 -0
  191. package/dist/client/pc/usage/block/todos/providers/ApprovalExecutions.provider.d.ts +28 -0
  192. package/dist/client/pc/usage/block/todos/providers/ApprovalFormBlock.provider.d.ts +2 -0
  193. package/dist/client/pc/usage/block/todos/providers/ApprovalUpdateForm.provider.d.ts +1 -0
  194. package/dist/client/pc/usage/common/ApprovalData.provider.d.ts +5 -0
  195. package/dist/client/pc/usage/common/ApprovalProcess.view.d.ts +2 -0
  196. package/dist/client/pc/usage/common/Resubmit.provider.d.ts +10 -0
  197. package/dist/client/pc/usage/common/WithActionEnabled.provider.d.ts +3 -0
  198. package/dist/client/pc/usage/common/approval-columns/approvalStatus.column.d.ts +3 -0
  199. package/dist/client/pc/usage/common/approval-columns/lastNode.column.d.ts +2 -0
  200. package/dist/client/pc/usage/common/approval-columns/node.column.d.ts +1 -0
  201. package/dist/client/pc/usage/common/approval-columns/status.column.d.ts +3 -0
  202. package/dist/client/pc/usage/common/approval-columns/summary.column.d.ts +2 -0
  203. package/dist/client/pc/usage/common/approval-columns/user.column.d.ts +1 -0
  204. package/dist/client/pc/usage/common/approval-columns/workflow.column.d.ts +2 -0
  205. package/dist/client/pc/usage/common/notice-columns/column.action.d.ts +2 -0
  206. package/dist/client/pc/usage/common/notice-columns/column.node.d.ts +1 -0
  207. package/dist/client/pc/usage/common/notice-columns/column.status.d.ts +8 -0
  208. package/dist/client/pc/usage/common/notice-columns/column.user.d.ts +1 -0
  209. package/dist/client/pc/usage/common/notice-columns/column.workflow.d.ts +2 -0
  210. package/dist/client/pc/usage/common/notice-show-detail/NoticeDetail.provider.d.ts +5 -0
  211. package/dist/client/pc/usage/common/notice-show-detail/NoticeDetail.schema.d.ts +2 -0
  212. package/dist/client/pc/usage/common/notice-show-detail/contexts/MyComponent.context.d.ts +9 -0
  213. package/dist/client/pc/usage/common/notice-show-detail/contexts/WorkflowNotice.context.d.ts +4 -0
  214. package/dist/client/pc/usage/common/notice-show-detail/hooks/usePropsNoticeDetail.d.ts +3 -0
  215. package/dist/client/pc/usage/common/plugin.d.ts +4 -0
  216. package/dist/client/pc/usage/common/process-columns/index.d.ts +44 -0
  217. package/dist/client/pc/usage/common/process-columns/renderDetail.d.ts +2 -0
  218. package/dist/client/pc/usage/common/process-columns/renderStatus.d.ts +2 -0
  219. package/dist/client/pc/usage/common/process-columns/renderTaskNode.d.ts +2 -0
  220. package/dist/client/pc/usage/common/style.d.ts +4 -0
  221. package/dist/client/pc/usage/common/tools.d.ts +1 -0
  222. package/dist/client/pc/usage/plugin.d.ts +5 -0
  223. package/dist/client/pc/usage/record-block/RecordApprovals.decorator.d.ts +5 -0
  224. package/dist/client/pc/usage/record-block/RecordApprovals.initializer.d.ts +2 -0
  225. package/dist/client/pc/usage/record-block/RecordApprovals.schema.d.ts +110 -0
  226. package/dist/client/pc/usage/record-block/RecordApprovals.view.d.ts +2 -0
  227. package/dist/client/pc/usage/record-block/plugin.d.ts +6 -0
  228. package/dist/common/collection-name.d.ts +4 -0
  229. package/dist/common/collection-name.js +36 -0
  230. package/dist/externalVersion.js +19 -0
  231. package/dist/index.d.ts +2 -0
  232. package/dist/index.js +39 -0
  233. package/dist/locale/en-US.json +311 -0
  234. package/dist/locale/zh-CN.json +388 -0
  235. package/dist/server/actions/approvalCarbonCopy.d.ts +3 -0
  236. package/dist/server/actions/approvalCarbonCopy.js +71 -0
  237. package/dist/server/actions/approvalRecords.d.ts +4 -0
  238. package/dist/server/actions/approvalRecords.js +111 -0
  239. package/dist/server/actions/approvals.d.ts +8 -0
  240. package/dist/server/actions/approvals.js +275 -0
  241. package/dist/server/actions/index.d.ts +3 -0
  242. package/dist/server/actions/index.js +48 -0
  243. package/dist/server/actions/workflows.d.ts +3 -0
  244. package/dist/server/actions/workflows.js +49 -0
  245. package/dist/server/collections/approvalCarbonCopy.d.ts +2 -0
  246. package/dist/server/collections/approvalCarbonCopy.js +87 -0
  247. package/dist/server/collections/approvalExecutions.d.ts +2 -0
  248. package/dist/server/collections/approvalExecutions.js +70 -0
  249. package/dist/server/collections/approvalRecords.d.ts +2 -0
  250. package/dist/server/collections/approvalRecords.js +88 -0
  251. package/dist/server/collections/approvals.d.ts +2 -0
  252. package/dist/server/collections/approvals.js +96 -0
  253. package/dist/server/constants/error-code.d.ts +22 -0
  254. package/dist/server/constants/error-code.js +48 -0
  255. package/dist/server/constants/status.d.ts +20 -0
  256. package/dist/server/constants/status.js +46 -0
  257. package/dist/server/index.d.ts +1 -0
  258. package/dist/server/index.js +33 -0
  259. package/dist/server/instructions/Approval.d.ts +9 -0
  260. package/dist/server/instructions/Approval.js +220 -0
  261. package/dist/server/instructions/ApprovalCarbonCopy.d.ts +8 -0
  262. package/dist/server/instructions/ApprovalCarbonCopy.js +99 -0
  263. package/dist/server/instructions/tools.d.ts +11 -0
  264. package/dist/server/instructions/tools.js +139 -0
  265. package/dist/server/plugin.d.ts +12 -0
  266. package/dist/server/plugin.js +89 -0
  267. package/dist/server/tools.d.ts +11 -0
  268. package/dist/server/tools.js +70 -0
  269. package/dist/server/triggers/Approval.d.ts +23 -0
  270. package/dist/server/triggers/Approval.js +313 -0
  271. package/dist/server/triggers/tools.d.ts +12 -0
  272. package/dist/server/triggers/tools.js +44 -0
  273. package/dist/server/utils.d.ts +1 -0
  274. package/dist/server/utils.js +39 -0
  275. package/package.json +45 -0
  276. package/server.d.ts +2 -0
  277. package/server.js +1 -0
@@ -0,0 +1,152 @@
1
+ import React from 'react';
2
+ import { Instruction, RadioWithTooltip, useWorkflowAnyExecuted } from '@tachybase/module-workflow/client';
3
+ export declare class ApprovalInstruction extends Instruction {
4
+ title: string;
5
+ type: string;
6
+ group: string;
7
+ icon: string;
8
+ color: string;
9
+ description: string;
10
+ options: {
11
+ label: string;
12
+ key: string;
13
+ value(): {
14
+ branchMode: boolean;
15
+ applyDetail: string;
16
+ };
17
+ }[];
18
+ fieldset: {
19
+ branchMode: {
20
+ type: string;
21
+ title: string;
22
+ 'x-decorator': string;
23
+ 'x-component': string;
24
+ 'x-component-props': {
25
+ disabled: boolean;
26
+ };
27
+ enum: {
28
+ value: boolean;
29
+ label: React.JSX.Element;
30
+ }[];
31
+ default: boolean;
32
+ };
33
+ assignees: {
34
+ type: string;
35
+ title: string;
36
+ 'x-decorator': string;
37
+ 'x-component': string;
38
+ 'x-component-props': {
39
+ className: string;
40
+ };
41
+ items: {
42
+ type: string;
43
+ 'x-component': string;
44
+ 'x-component-props': {
45
+ className: string;
46
+ };
47
+ properties: {
48
+ sort: {
49
+ type: string;
50
+ 'x-decorator': string;
51
+ 'x-component': string;
52
+ };
53
+ input: {
54
+ type: string;
55
+ 'x-decorator': string;
56
+ 'x-component': string;
57
+ };
58
+ remove: {
59
+ type: string;
60
+ 'x-decorator': string;
61
+ 'x-component': string;
62
+ };
63
+ };
64
+ };
65
+ required: boolean;
66
+ properties: {
67
+ add: {
68
+ type: string;
69
+ title: string;
70
+ 'x-component': string;
71
+ };
72
+ };
73
+ };
74
+ negotiation: {
75
+ type: string;
76
+ title: string;
77
+ 'x-decorator': string;
78
+ 'x-component': string;
79
+ default: number;
80
+ };
81
+ order: {
82
+ type: string;
83
+ title: string;
84
+ 'x-decorator': string;
85
+ 'x-component': string;
86
+ 'x-component-props': {
87
+ options: {
88
+ label: string;
89
+ value: boolean;
90
+ tooltip: string;
91
+ }[];
92
+ };
93
+ default: boolean;
94
+ };
95
+ endOnReject: {
96
+ type: string;
97
+ 'x-decorator': string;
98
+ 'x-component': string;
99
+ 'x-content': string;
100
+ description: string;
101
+ 'x-reactions': {
102
+ dependencies: string[];
103
+ fulfill: {
104
+ state: {
105
+ visible: string;
106
+ };
107
+ };
108
+ }[];
109
+ };
110
+ applyDetail: {
111
+ type: string;
112
+ title: string;
113
+ 'x-decorator': string;
114
+ 'x-component': string;
115
+ properties: {
116
+ applyDetail: {
117
+ type: string;
118
+ 'x-component': string;
119
+ };
120
+ };
121
+ required: boolean;
122
+ };
123
+ };
124
+ scope: {
125
+ useWorkflowAnyExecuted: typeof useWorkflowAnyExecuted;
126
+ };
127
+ Component: ({ data }: {
128
+ data: any;
129
+ }) => React.JSX.Element;
130
+ components: {
131
+ ArrayItems: import("packages/schema/lib").ReactFC<React.HTMLAttributes<HTMLDivElement>> & import("@tachybase/components").ArrayBaseMixins & {
132
+ Item: import("packages/schema/lib").ReactFC<React.HTMLAttributes<HTMLDivElement> & {
133
+ type?: "card" | "divide";
134
+ }>;
135
+ };
136
+ SchemaConfigButtonApprover: (props: any) => React.JSX.Element;
137
+ SchemaConfig: () => React.JSX.Element;
138
+ AssigneesSelect: (props: any) => React.JSX.Element;
139
+ NegotiationConfig: ({ value, onChange }: {
140
+ value: any;
141
+ onChange: any;
142
+ }) => React.JSX.Element;
143
+ RadioWithTooltip: typeof RadioWithTooltip;
144
+ AssigneesAddition: () => React.JSX.Element;
145
+ ViewSkipApproval: () => React.JSX.Element;
146
+ };
147
+ isAvailable({ workflow, upstream, branchIndex }: {
148
+ workflow: any;
149
+ upstream: any;
150
+ branchIndex: any;
151
+ }): boolean;
152
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const ApprovalInstructionNode: ({ data }: {
3
+ data: any;
4
+ }) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ContextApproverConfig: any;
@@ -0,0 +1,14 @@
1
+ import { FilterDynamicComponent } from '@tachybase/module-workflow/client';
2
+ export declare const getSchemaSkipApproval: (params: any) => {
3
+ type: string;
4
+ properties: {
5
+ filter: {
6
+ type: string;
7
+ 'x-component': string;
8
+ 'x-component-props': {
9
+ options: any;
10
+ dynamicComponent: typeof FilterDynamicComponent;
11
+ };
12
+ };
13
+ };
14
+ };
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const ViewSkipApproval: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const AssigneesAddition: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const AssigneesSelect: (props: any) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const ContentTooltip: ({ content, tooltip }: {
3
+ content: any;
4
+ tooltip: any;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const NegotiationConfig: ({ value, onChange }: {
3
+ value: any;
4
+ onChange: any;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SchemaConfigButtonApprover: (props: any) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ProviderApprovalUpdateForm: (props: any) => any;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const ApproverAddBlockInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export declare const ApproverBlock: ({ value: srcID, onChange }: {
3
+ value: any;
4
+ onChange: any;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ApproverInterfaceComponent: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const ApproverActionConfigInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1 @@
1
+ export declare const ActionBarProvider: (props: any) => any;
@@ -0,0 +1 @@
1
+ export declare const ApprovalActionProvider: (props: any) => any;
@@ -0,0 +1 @@
1
+ export declare const ContextApproverBlock: import("react").Context<{}>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ApprovalActionConfigComponent: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ApprovalFormBlockProvider: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ApproverAddBlockComponent: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ApproverAddBlockKit: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function useApprovalFormBlockProps(e: any): {
2
+ form: any;
3
+ };
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const ApprovalAddActionButton: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,42 @@
1
+ import { SchemaInitializerItemType } from '@tachybase/client';
2
+ import { JOB_STATUS } from '@tachybase/module-workflow/client';
3
+ import { ISchema } from '@tachybase/schema';
4
+ import { Registry } from '@tachybase/utils/client';
5
+ type ValueOf<T> = T[keyof T];
6
+ export type FormType = {
7
+ type: 'create' | 'update' | 'custom';
8
+ title: string;
9
+ actions: ValueOf<typeof JOB_STATUS>[];
10
+ collection: string | {
11
+ name: string;
12
+ fields: any[];
13
+ [key: string]: any;
14
+ };
15
+ };
16
+ export type ApprovalFormType = {
17
+ title: string;
18
+ config: {
19
+ useInitializer: ({ allCollections }?: {
20
+ allCollections: any[];
21
+ }) => SchemaInitializerItemType;
22
+ initializers?: {
23
+ [key: string]: React.FC;
24
+ };
25
+ components?: {
26
+ [key: string]: React.FC;
27
+ };
28
+ parseFormOptions(root: ISchema): {
29
+ [key: string]: FormType;
30
+ };
31
+ };
32
+ block: {
33
+ scope?: {
34
+ [key: string]: () => any;
35
+ };
36
+ components?: {
37
+ [key: string]: React.FC;
38
+ };
39
+ };
40
+ };
41
+ export declare const approvalFormOptions: Registry<ApprovalFormType>;
42
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { Plugin } from '@tachybase/client';
3
+ export declare class KitApprovalAddActionButton extends Plugin {
4
+ load(): Promise<void>;
5
+ }
6
+ export declare const FormBlockFactory: () => React.JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { FilterDynamicComponent } from '@tachybase/module-workflow/client';
2
+ declare const updateFormConfig: {
3
+ title: string;
4
+ config: {
5
+ initializers: {};
6
+ components: {
7
+ FilterDynamicComponent: typeof FilterDynamicComponent;
8
+ };
9
+ useInitializer: ({ allCollections }: {
10
+ allCollections: any;
11
+ }) => {
12
+ name: string;
13
+ key: string;
14
+ type: string;
15
+ title: string;
16
+ componentProps: {
17
+ onOpenChange(keys: any): void;
18
+ };
19
+ children: any[];
20
+ };
21
+ parseFormOptions: (root: any) => {};
22
+ };
23
+ block: {
24
+ scope: {};
25
+ components: {};
26
+ };
27
+ };
28
+ export default updateFormConfig;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class KitApprovalInstruction extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1 @@
1
+ export declare function isApprovalReturnFunc(upstream: any, branchIndex: any, filter: any): boolean;
@@ -0,0 +1,76 @@
1
+ import { GroupType, Instruction } from '@tachybase/module-workflow/client';
2
+ export declare class ApprovalCarbonCopyInstruction extends Instruction {
3
+ title: string;
4
+ type: string;
5
+ group: GroupType;
6
+ icon: string;
7
+ color: string;
8
+ description: string;
9
+ components: {
10
+ ArrayItems: import("packages/schema/lib").ReactFC<import("react").HTMLAttributes<HTMLDivElement>> & import("@tachybase/components").ArrayBaseMixins & {
11
+ Item: import("packages/schema/lib").ReactFC<React.HTMLAttributes<HTMLDivElement> & {
12
+ type?: "card" | "divide";
13
+ }>;
14
+ };
15
+ SelectNotifiedPerson: (props: any) => import("react").JSX.Element;
16
+ AdditionNotifiedPerson: () => import("react").JSX.Element;
17
+ ConfigButtonNotice: (props: any) => import("react").JSX.Element;
18
+ CarbonCopyDetail: () => import("react").JSX.Element;
19
+ };
20
+ fieldset: {
21
+ carbonCopyPerson: {
22
+ type: string;
23
+ title: string;
24
+ 'x-decorator': string;
25
+ 'x-component': string;
26
+ 'x-component-props': {
27
+ className: string;
28
+ };
29
+ items: {
30
+ type: string;
31
+ 'x-component': string;
32
+ 'x-component-props': {
33
+ className: string;
34
+ };
35
+ properties: {
36
+ sort: {
37
+ type: string;
38
+ 'x-decorator': string;
39
+ 'x-component': string;
40
+ };
41
+ input: {
42
+ type: string;
43
+ 'x-decorator': string;
44
+ 'x-component': string;
45
+ };
46
+ remove: {
47
+ type: string;
48
+ 'x-decorator': string;
49
+ 'x-component': string;
50
+ };
51
+ };
52
+ };
53
+ properties: {
54
+ add: {
55
+ type: string;
56
+ title: string;
57
+ 'x-component': string;
58
+ };
59
+ };
60
+ };
61
+ showCarbonCopyDetail: {
62
+ type: string;
63
+ title: string;
64
+ required: boolean;
65
+ 'x-decorator': string;
66
+ 'x-component': string;
67
+ properties: {
68
+ showCarbonCopyDetail: {
69
+ type: string;
70
+ 'x-component': string;
71
+ };
72
+ };
73
+ };
74
+ };
75
+ isAvailable(params: any): boolean;
76
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const AdditionNotifiedPerson: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigButtonNotice: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SelectNotifiedPerson: (props: any) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class KitCarbonCopy extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CarbonCopyDetailAddBlock: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const CarbonCopyDetailInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { Plugin } from '@tachybase/client';
3
+ export declare class SCCarbonCopyDetail extends Plugin {
4
+ load(): Promise<void>;
5
+ }
6
+ export declare const CarbonCopyDetail: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CarbonCopyDetailContainer: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const schemaStyle: {
2
+ ActionStyle: string;
3
+ };
@@ -0,0 +1,5 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{}>;
2
+ export declare const configSytles: {
3
+ ArrayItemsStyle: string;
4
+ SpaceStyle: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export default class KitApprovalConfiguration extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1,121 @@
1
+ import { SchemaInitializerItemType } from '@tachybase/client';
2
+ import { RadioWithTooltip, Trigger, UseVariableOptions, useWorkflowAnyExecuted } from '@tachybase/module-workflow/client';
3
+ export declare class ApprovalTrigger extends Trigger {
4
+ sync: boolean;
5
+ title: string;
6
+ description: string;
7
+ scope: {
8
+ useWorkflowAnyExecuted: typeof useWorkflowAnyExecuted;
9
+ };
10
+ components: {
11
+ ConfigButtonView: (props: any) => import("react").JSX.Element;
12
+ LauncherInterface: () => import("react").JSX.Element;
13
+ RadioWithTooltip: typeof RadioWithTooltip;
14
+ };
15
+ fieldset: {
16
+ collection: {
17
+ type: string;
18
+ title: string;
19
+ required: boolean;
20
+ 'x-decorator': string;
21
+ 'x-component': string;
22
+ 'x-disabled': string;
23
+ };
24
+ centralized: {
25
+ type: string;
26
+ title: string;
27
+ 'x-decorator': string;
28
+ 'x-component': string;
29
+ 'x-component-props': {
30
+ direction: string;
31
+ options: {
32
+ label: string;
33
+ value: boolean;
34
+ tooltip: string;
35
+ }[];
36
+ };
37
+ default: boolean;
38
+ };
39
+ withdrawable: {
40
+ type: string;
41
+ 'x-decorator': string;
42
+ 'x-component': string;
43
+ 'x-content': string;
44
+ description: string;
45
+ };
46
+ applyForm: {
47
+ type: string;
48
+ title: string;
49
+ description: string;
50
+ 'x-decorator': string;
51
+ 'x-component': string;
52
+ 'x-reactions': {
53
+ dependencies: string[];
54
+ fulfill: {
55
+ state: {
56
+ visible: string;
57
+ };
58
+ };
59
+ }[];
60
+ properties: {
61
+ applyForm: {
62
+ type: string;
63
+ 'x-component': string;
64
+ default: any;
65
+ };
66
+ };
67
+ };
68
+ appends: {
69
+ type: string;
70
+ title: string;
71
+ description: string;
72
+ 'x-decorator': string;
73
+ 'x-component': string;
74
+ 'x-component-props': {
75
+ title: string;
76
+ multiple: boolean;
77
+ useCollection(): any;
78
+ };
79
+ 'x-reactions': {
80
+ dependencies: string[];
81
+ fulfill: {
82
+ state: {
83
+ visible: string;
84
+ };
85
+ };
86
+ }[];
87
+ };
88
+ summary: {
89
+ type: string;
90
+ title: string;
91
+ 'x-decorator': string;
92
+ 'x-component': string;
93
+ 'x-component-props': {
94
+ title: string;
95
+ multiple: boolean;
96
+ needLeaf: boolean;
97
+ useCollection(): any;
98
+ };
99
+ 'x-reactions': {
100
+ dependencies: string[];
101
+ fulfill: {
102
+ state: {
103
+ visible: string;
104
+ };
105
+ };
106
+ }[];
107
+ };
108
+ };
109
+ isActionTriggerable: (config: any, context: {
110
+ action: string;
111
+ direct: any;
112
+ }) => boolean;
113
+ useVariables(config: {
114
+ collection: any;
115
+ appends: any[];
116
+ summary: any[];
117
+ }, options: UseVariableOptions): import("@tachybase/module-workflow/client").VariableOption[];
118
+ useInitializers(config: {
119
+ collection: any;
120
+ }): SchemaInitializerItemType | null;
121
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigButtonView: (props: any) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const LauncherActionConfigComponent: () => React.JSX.Element;
3
+ export declare const LauncherActionConfigReSubmit: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const LauncherActionConfigInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@tachybase/client';
2
+ export declare const LauncherAddBlockButtonIntializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const LauncherAddBlockButtonComponent: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const LauncherInterface: () => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const SchemaAddBlock: ({ value, onChange }: {
3
+ value: any;
4
+ onChange: any;
5
+ }) => React.JSX.Element;