@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.
- package/.turbo/turbo-build.log +14 -0
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/h5/ApprovalBlockInitializer.d.ts +8 -0
- package/dist/client/h5/ApprovalSettings.d.ts +2 -0
- package/dist/client/h5/collection/ApprovalTodos.d.ts +105 -0
- package/dist/client/h5/collection/Approvals.collection.d.ts +85 -0
- package/dist/client/h5/collection/FlowNodes.collection.d.ts +38 -0
- package/dist/client/h5/collection/UserJobs.collection.d.ts +141 -0
- package/dist/client/h5/collection/Workflows.collection.d.ts +30 -0
- package/dist/client/h5/collection/approvalCarbonCopy.collection.d.ts +156 -0
- package/dist/client/h5/collection/notice.collection.d.ts +131 -0
- package/dist/client/h5/component/ApprovalProcess.view.d.ts +2 -0
- package/dist/client/h5/component/ApprovalReachDataType.d.ts +2 -0
- package/dist/client/h5/component/ApprovalTemplateType.d.ts +2 -0
- package/dist/client/h5/constants.d.ts +159 -0
- package/dist/client/h5/context/ApprovalExecution.d.ts +3 -0
- package/dist/client/h5/context/FormBlock.d.ts +2 -0
- package/dist/client/h5/context/SchemaComponent.d.ts +5 -0
- package/dist/client/h5/context/WithActionEnabled.d.ts +3 -0
- package/dist/client/h5/index.d.ts +6 -0
- package/dist/client/h5/initiations/InitiationsBlock.d.ts +5 -0
- package/dist/client/h5/initiations/component/ApprovalItem.d.ts +2 -0
- package/dist/client/h5/initiations/component/ApprovalStatus.d.ts +2 -0
- package/dist/client/h5/initiations/component/InitiationsItem.d.ts +3 -0
- package/dist/client/h5/initiations/component/UserInitiationsItem.d.ts +3 -0
- package/dist/client/h5/initiations/component/ViewActionInitiationsContent.d.ts +10 -0
- package/dist/client/h5/initiations/component/ViewActionUserInitiationsContent.d.ts +3 -0
- package/dist/client/h5/initiations/config/LauncherActionConfig.d.ts +2 -0
- package/dist/client/h5/initiations/config/LauncherActionConfigComponent.d.ts +2 -0
- package/dist/client/h5/initiations/hook/useActionResubmit.d.ts +3 -0
- package/dist/client/h5/initiations/hook/useCreateSubmit.d.ts +3 -0
- package/dist/client/h5/initiations/hook/useDestroyAction.d.ts +3 -0
- package/dist/client/h5/initiations/hook/useFormBlockProps.d.ts +3 -0
- package/dist/client/h5/initiations/hook/useUpadteSubmit.d.ts +3 -0
- package/dist/client/h5/initiations/hook/useWithdrawAction.d.ts +3 -0
- package/dist/client/h5/initiations/provider/ActionBar.d.ts +1 -0
- package/dist/client/h5/initiations/provider/ActionResubmit.provider.d.ts +1 -0
- package/dist/client/h5/initiations/provider/ApplyActionStatus.d.ts +3 -0
- package/dist/client/h5/initiations/provider/Resubmit.provider.d.ts +10 -0
- package/dist/client/h5/initiations/provider/WithdrawAction.d.ts +3 -0
- package/dist/client/h5/locale.d.ts +7 -0
- package/dist/client/h5/todos/TodosBlock.d.ts +3 -0
- package/dist/client/h5/todos/component/TabApplicantType.d.ts +2 -0
- package/dist/client/h5/todos/component/TabApprovalItem.d.ts +3 -0
- package/dist/client/h5/todos/component/TabApprovalType.d.ts +2 -0
- package/dist/client/h5/todos/component/TabDuplicateItem.d.ts +3 -0
- package/dist/client/h5/todos/component/TabExecutedItem.d.ts +3 -0
- package/dist/client/h5/todos/component/TabPendingItem.d.ts +3 -0
- package/dist/client/h5/todos/component/TabProcessedItem.d.ts +3 -0
- package/dist/client/h5/todos/component/ViewActionTodosContent.d.ts +3 -0
- package/dist/client/h5/todos/component/ViewTodosDetailsContent.d.ts +2 -0
- package/dist/client/h5/todos/component/ViewTodosUserJobsContent.d.ts +6 -0
- package/dist/client/h5/todos/component/ViewTodosWorkflowNoticeContent.d.ts +3 -0
- package/dist/client/h5/todos/componentSchema.d.ts +32 -0
- package/dist/client/h5/todos/hook/useApprovalDetailBlockProps.d.ts +3 -0
- package/dist/client/h5/todos/hook/useApprovalFormBlockProps.d.ts +3 -0
- package/dist/client/h5/todos/hook/useDestroyAction.d.ts +3 -0
- package/dist/client/h5/todos/hook/useFormBlockProps.d.ts +9 -0
- package/dist/client/h5/todos/hook/usePropsNoticeDetail.d.ts +3 -0
- package/dist/client/h5/todos/hook/useSubmit.d.ts +6 -0
- package/dist/client/h5/todos/interface/interface.d.ts +139 -0
- package/dist/client/h5/todos/provider/ActionBarProvider.d.ts +3 -0
- package/dist/client/h5/todos/provider/ApplyActionStatus.d.ts +3 -0
- package/dist/client/h5/todos/provider/ApprovalAction.d.ts +9 -0
- package/dist/client/h5/todos/provider/ApprovalFormBlock.d.ts +2 -0
- package/dist/client/h5/todos/provider/FormBlockProvider.d.ts +2 -0
- package/dist/client/h5/todos/provider/ManualActionStatusProvider.d.ts +6 -0
- package/dist/client/h5/todos/provider/WithdrawAction.d.ts +3 -0
- package/dist/client/h5/todos/provider/todosContext.d.ts +2 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client/index.js +183 -0
- package/dist/client/pc/collections/approvalCarbonCopy.d.ts +156 -0
- package/dist/client/pc/collections/approvalRecords.d.ts +131 -0
- package/dist/client/pc/collections/approvals.d.ts +109 -0
- package/dist/client/pc/collections/flowNodes.d.ts +38 -0
- package/dist/client/pc/collections/workflows.d.ts +41 -0
- package/dist/client/pc/common/FormBlock.provider.d.ts +2 -0
- package/dist/client/pc/configuration/Approval.setting.d.ts +8 -0
- package/dist/client/pc/configuration/ApprovalPane.component.d.ts +2 -0
- package/dist/client/pc/configuration/ApprovalPane.schema.d.ts +651 -0
- package/dist/client/pc/configuration/instruction-approval/Approval.node.d.ts +152 -0
- package/dist/client/pc/configuration/instruction-approval/ApprovalNode.component.d.ts +4 -0
- package/dist/client/pc/configuration/instruction-approval/ApproverConfig.context.d.ts +1 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/SkipApproval.schema.d.ts +14 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/SkipApproval.view.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/VC.AssigneesAddition.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/VC.AssigneesSelect.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/VC.ContentTooltip.d.ts +5 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/VC.NegotiationConfig.d.ts +5 -0
- package/dist/client/pc/configuration/instruction-approval/approval-config/VC.SchemaConfigButtonApprover.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/ApprovalUpdateForm.provider.d.ts +1 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverAddBlock.initializer.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverBlock.view.d.ts +5 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverInterface.schema.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/Iz.ApproverActionConfig.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.ActionBarProvider.d.ts +1 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.ApprovalActionProvider.d.ts +1 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.SchemaConfigButtonContext.d.ts +1 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApprovalActionConfig.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApprovalFormBlockProvider.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApproverAddBlock.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApproverAddBlockKit.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/approver-interface/useApprovalFormBlockProps.d.ts +3 -0
- package/dist/client/pc/configuration/instruction-approval/forms/AddActionButton.setting.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-approval/forms/Approval.options.d.ts +42 -0
- package/dist/client/pc/configuration/instruction-approval/forms/FormBlock.factory.d.ts +6 -0
- package/dist/client/pc/configuration/instruction-approval/forms/update.d.ts +28 -0
- package/dist/client/pc/configuration/instruction-approval/kit.d.ts +5 -0
- package/dist/client/pc/configuration/instruction-approval/utils.d.ts +1 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/ApprovalCarbonCopy.instruction.d.ts +76 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/config-items/AddNotifiedPerson.view.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/config-items/ConfigButtonNotice.view.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/config-items/SelectNotifiedPerson.view.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/kit.d.ts +5 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.block.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.initializer.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.schema.d.ts +6 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetailContainer.schema.d.ts +2 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/style.d.ts +3 -0
- package/dist/client/pc/configuration/instruction-carbon-copy/style.d.ts +5 -0
- package/dist/client/pc/configuration/plugin.d.ts +5 -0
- package/dist/client/pc/configuration/trigger/Approval.trigger.d.ts +121 -0
- package/dist/client/pc/configuration/trigger/ConfigButton.view.d.ts +2 -0
- package/dist/client/pc/configuration/trigger/launcher-interface/LauncherActionConfig.component.d.ts +3 -0
- package/dist/client/pc/configuration/trigger/launcher-interface/LauncherActionConfig.initializer.d.ts +2 -0
- package/dist/client/pc/configuration/trigger/launcher-interface/LauncherAddBlockButton.initializer.d.ts +2 -0
- package/dist/client/pc/configuration/trigger/launcher-interface/LauncherBlockButton.component.d.ts +2 -0
- package/dist/client/pc/configuration/trigger/launcher-interface/LauncherInterface.schema.d.ts +2 -0
- package/dist/client/pc/configuration/trigger/launcher-interface/SchemaAddBlock.component.d.ts +5 -0
- package/dist/client/pc/configuration/trigger/plugin.d.ts +6 -0
- package/dist/client/pc/constants.d.ts +91 -0
- package/dist/client/pc/index.d.ts +5 -0
- package/dist/client/pc/locale.d.ts +7 -0
- package/dist/client/pc/usage/block/ApprovalBlock.initializer.d.ts +70 -0
- package/dist/client/pc/usage/block/BlockInitItem.provider.d.ts +5 -0
- package/dist/client/pc/usage/block/BlockInitItem.schema.d.ts +21 -0
- package/dist/client/pc/usage/block/BlockInitItem.view.d.ts +2 -0
- package/dist/client/pc/usage/block/InitiateApplication.component.d.ts +6 -0
- package/dist/client/pc/usage/block/carbon-copy/CarbonCopyBlock.provider.d.ts +5 -0
- package/dist/client/pc/usage/block/carbon-copy/CarbonCopyCenter.schema.d.ts +2 -0
- package/dist/client/pc/usage/block/common/ApprovalExecution.provider.d.ts +6 -0
- package/dist/client/pc/usage/block/common/FlowContext.provider.d.ts +6 -0
- package/dist/client/pc/usage/block/common/FuzzySearch.component.d.ts +2 -0
- package/dist/client/pc/usage/block/common/SchemaComponent.provider.d.ts +5 -0
- package/dist/client/pc/usage/block/common/useHandleRefresh.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/ApprovalStatus.context.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/CheckContent.component.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/CheckContent.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/CheckContent.schema.d.ts +45 -0
- package/dist/client/pc/usage/block/initiations/CheckContent.view.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/CheckLink.schema.d.ts +24 -0
- package/dist/client/pc/usage/block/initiations/CheckLink.view.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/TableInitiated.d.ts +6 -0
- package/dist/client/pc/usage/block/initiations/TableInitiated.schema.d.ts +182 -0
- package/dist/client/pc/usage/block/initiations/WithdrawAction.provider.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/apply-button/ActionBar.provider.d.ts +1 -0
- package/dist/client/pc/usage/block/initiations/apply-button/ActionStatus.provider.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/apply-button/ActionWithdraw.provider.d.ts +1 -0
- package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.component.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.view.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/apply-button/hooks/useActionResubmit.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/apply-button/hooks/useSubmitCreate.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/apply-button/hooks/useWithdrawAction.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/hooks/useActionResubmit.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/hooks/useDestroyAction.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/hooks/useFormBlockProps.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/hooks/useSubmitUpdate.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/hooks/useWithdrawAction.d.ts +3 -0
- package/dist/client/pc/usage/block/initiations/providers/ActionBar.provider.d.ts +1 -0
- package/dist/client/pc/usage/block/initiations/providers/ActionResubmit.provider.d.ts +1 -0
- package/dist/client/pc/usage/block/initiations/providers/ApplyActionStatus.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/initiations/providers/Record.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/plugin.d.ts +5 -0
- package/dist/client/pc/usage/block/todos/CheckContent.component.d.ts +2 -0
- package/dist/client/pc/usage/block/todos/CheckContent.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/todos/CheckContent.schema.d.ts +40 -0
- package/dist/client/pc/usage/block/todos/CheckContent.view.d.ts +2 -0
- package/dist/client/pc/usage/block/todos/CheckLink.schema.d.ts +19 -0
- package/dist/client/pc/usage/block/todos/CheckLink.view.d.ts +2 -0
- package/dist/client/pc/usage/block/todos/TableTodos.d.ts +6 -0
- package/dist/client/pc/usage/block/todos/TableTodos.schema.d.ts +195 -0
- package/dist/client/pc/usage/block/todos/hooks/useApprovalDetailBlockProps.d.ts +3 -0
- package/dist/client/pc/usage/block/todos/hooks/useApprovalFormBlockProps.d.ts +3 -0
- package/dist/client/pc/usage/block/todos/hooks/useSubmit.d.ts +3 -0
- package/dist/client/pc/usage/block/todos/providers/ActionBar.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/todos/providers/ApprovalAction.provider.d.ts +10 -0
- package/dist/client/pc/usage/block/todos/providers/ApprovalExecutions.provider.d.ts +28 -0
- package/dist/client/pc/usage/block/todos/providers/ApprovalFormBlock.provider.d.ts +2 -0
- package/dist/client/pc/usage/block/todos/providers/ApprovalUpdateForm.provider.d.ts +1 -0
- package/dist/client/pc/usage/common/ApprovalData.provider.d.ts +5 -0
- package/dist/client/pc/usage/common/ApprovalProcess.view.d.ts +2 -0
- package/dist/client/pc/usage/common/Resubmit.provider.d.ts +10 -0
- package/dist/client/pc/usage/common/WithActionEnabled.provider.d.ts +3 -0
- package/dist/client/pc/usage/common/approval-columns/approvalStatus.column.d.ts +3 -0
- package/dist/client/pc/usage/common/approval-columns/lastNode.column.d.ts +2 -0
- package/dist/client/pc/usage/common/approval-columns/node.column.d.ts +1 -0
- package/dist/client/pc/usage/common/approval-columns/status.column.d.ts +3 -0
- package/dist/client/pc/usage/common/approval-columns/summary.column.d.ts +2 -0
- package/dist/client/pc/usage/common/approval-columns/user.column.d.ts +1 -0
- package/dist/client/pc/usage/common/approval-columns/workflow.column.d.ts +2 -0
- package/dist/client/pc/usage/common/notice-columns/column.action.d.ts +2 -0
- package/dist/client/pc/usage/common/notice-columns/column.node.d.ts +1 -0
- package/dist/client/pc/usage/common/notice-columns/column.status.d.ts +8 -0
- package/dist/client/pc/usage/common/notice-columns/column.user.d.ts +1 -0
- package/dist/client/pc/usage/common/notice-columns/column.workflow.d.ts +2 -0
- package/dist/client/pc/usage/common/notice-show-detail/NoticeDetail.provider.d.ts +5 -0
- package/dist/client/pc/usage/common/notice-show-detail/NoticeDetail.schema.d.ts +2 -0
- package/dist/client/pc/usage/common/notice-show-detail/contexts/MyComponent.context.d.ts +9 -0
- package/dist/client/pc/usage/common/notice-show-detail/contexts/WorkflowNotice.context.d.ts +4 -0
- package/dist/client/pc/usage/common/notice-show-detail/hooks/usePropsNoticeDetail.d.ts +3 -0
- package/dist/client/pc/usage/common/plugin.d.ts +4 -0
- package/dist/client/pc/usage/common/process-columns/index.d.ts +44 -0
- package/dist/client/pc/usage/common/process-columns/renderDetail.d.ts +2 -0
- package/dist/client/pc/usage/common/process-columns/renderStatus.d.ts +2 -0
- package/dist/client/pc/usage/common/process-columns/renderTaskNode.d.ts +2 -0
- package/dist/client/pc/usage/common/style.d.ts +4 -0
- package/dist/client/pc/usage/common/tools.d.ts +1 -0
- package/dist/client/pc/usage/plugin.d.ts +5 -0
- package/dist/client/pc/usage/record-block/RecordApprovals.decorator.d.ts +5 -0
- package/dist/client/pc/usage/record-block/RecordApprovals.initializer.d.ts +2 -0
- package/dist/client/pc/usage/record-block/RecordApprovals.schema.d.ts +110 -0
- package/dist/client/pc/usage/record-block/RecordApprovals.view.d.ts +2 -0
- package/dist/client/pc/usage/record-block/plugin.d.ts +6 -0
- package/dist/common/collection-name.d.ts +4 -0
- package/dist/common/collection-name.js +36 -0
- package/dist/externalVersion.js +19 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +311 -0
- package/dist/locale/zh-CN.json +388 -0
- package/dist/server/actions/approvalCarbonCopy.d.ts +3 -0
- package/dist/server/actions/approvalCarbonCopy.js +71 -0
- package/dist/server/actions/approvalRecords.d.ts +4 -0
- package/dist/server/actions/approvalRecords.js +111 -0
- package/dist/server/actions/approvals.d.ts +8 -0
- package/dist/server/actions/approvals.js +275 -0
- package/dist/server/actions/index.d.ts +3 -0
- package/dist/server/actions/index.js +48 -0
- package/dist/server/actions/workflows.d.ts +3 -0
- package/dist/server/actions/workflows.js +49 -0
- package/dist/server/collections/approvalCarbonCopy.d.ts +2 -0
- package/dist/server/collections/approvalCarbonCopy.js +87 -0
- package/dist/server/collections/approvalExecutions.d.ts +2 -0
- package/dist/server/collections/approvalExecutions.js +70 -0
- package/dist/server/collections/approvalRecords.d.ts +2 -0
- package/dist/server/collections/approvalRecords.js +88 -0
- package/dist/server/collections/approvals.d.ts +2 -0
- package/dist/server/collections/approvals.js +96 -0
- package/dist/server/constants/error-code.d.ts +22 -0
- package/dist/server/constants/error-code.js +48 -0
- package/dist/server/constants/status.d.ts +20 -0
- package/dist/server/constants/status.js +46 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +33 -0
- package/dist/server/instructions/Approval.d.ts +9 -0
- package/dist/server/instructions/Approval.js +220 -0
- package/dist/server/instructions/ApprovalCarbonCopy.d.ts +8 -0
- package/dist/server/instructions/ApprovalCarbonCopy.js +99 -0
- package/dist/server/instructions/tools.d.ts +11 -0
- package/dist/server/instructions/tools.js +139 -0
- package/dist/server/plugin.d.ts +12 -0
- package/dist/server/plugin.js +89 -0
- package/dist/server/tools.d.ts +11 -0
- package/dist/server/tools.js +70 -0
- package/dist/server/triggers/Approval.d.ts +23 -0
- package/dist/server/triggers/Approval.js +313 -0
- package/dist/server/triggers/tools.d.ts +12 -0
- package/dist/server/triggers/tools.js +44 -0
- package/dist/server/utils.d.ts +1 -0
- package/dist/server/utils.js +39 -0
- package/package.json +45 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export declare const CollectionApprovalCarbonCopy: {
|
|
2
|
+
title: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: ({
|
|
5
|
+
type: string;
|
|
6
|
+
name: string;
|
|
7
|
+
interface: string;
|
|
8
|
+
uiSchema: {
|
|
9
|
+
type: string;
|
|
10
|
+
title: string;
|
|
11
|
+
'x-component': string;
|
|
12
|
+
'x-component-props'?: undefined;
|
|
13
|
+
enum?: undefined;
|
|
14
|
+
};
|
|
15
|
+
target?: undefined;
|
|
16
|
+
foreignKey?: undefined;
|
|
17
|
+
isAssociation?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
name: string;
|
|
21
|
+
target: string;
|
|
22
|
+
foreignKey: string;
|
|
23
|
+
interface: string;
|
|
24
|
+
uiSchema: {
|
|
25
|
+
type: string;
|
|
26
|
+
title: string;
|
|
27
|
+
'x-component': string;
|
|
28
|
+
'x-component-props': {
|
|
29
|
+
fieldNames: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
33
|
+
service: {
|
|
34
|
+
resource: string;
|
|
35
|
+
};
|
|
36
|
+
showTime?: undefined;
|
|
37
|
+
style?: undefined;
|
|
38
|
+
};
|
|
39
|
+
enum?: undefined;
|
|
40
|
+
};
|
|
41
|
+
isAssociation?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
type: string;
|
|
44
|
+
name: string;
|
|
45
|
+
target: string;
|
|
46
|
+
foreignKey: string;
|
|
47
|
+
interface: string;
|
|
48
|
+
isAssociation: boolean;
|
|
49
|
+
uiSchema: {
|
|
50
|
+
type: string;
|
|
51
|
+
title: string;
|
|
52
|
+
'x-component': string;
|
|
53
|
+
'x-component-props': {
|
|
54
|
+
fieldNames: {
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
service: {
|
|
59
|
+
resource: string;
|
|
60
|
+
};
|
|
61
|
+
showTime?: undefined;
|
|
62
|
+
style?: undefined;
|
|
63
|
+
};
|
|
64
|
+
enum?: undefined;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
type: string;
|
|
68
|
+
name: string;
|
|
69
|
+
interface: string;
|
|
70
|
+
uiSchema: {
|
|
71
|
+
type: string;
|
|
72
|
+
title: string;
|
|
73
|
+
'x-component': string;
|
|
74
|
+
enum: {
|
|
75
|
+
value: any;
|
|
76
|
+
label: string;
|
|
77
|
+
color: string;
|
|
78
|
+
}[];
|
|
79
|
+
'x-component-props'?: undefined;
|
|
80
|
+
};
|
|
81
|
+
target?: undefined;
|
|
82
|
+
foreignKey?: undefined;
|
|
83
|
+
isAssociation?: undefined;
|
|
84
|
+
} | {
|
|
85
|
+
name: string;
|
|
86
|
+
type: string;
|
|
87
|
+
interface: string;
|
|
88
|
+
uiSchema: {
|
|
89
|
+
type: string;
|
|
90
|
+
title: string;
|
|
91
|
+
'x-component': string;
|
|
92
|
+
'x-component-props': {
|
|
93
|
+
showTime: boolean;
|
|
94
|
+
fieldNames?: undefined;
|
|
95
|
+
service?: undefined;
|
|
96
|
+
style?: undefined;
|
|
97
|
+
};
|
|
98
|
+
enum?: undefined;
|
|
99
|
+
};
|
|
100
|
+
target?: undefined;
|
|
101
|
+
foreignKey?: undefined;
|
|
102
|
+
isAssociation?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
type: string;
|
|
105
|
+
name: string;
|
|
106
|
+
interface: string;
|
|
107
|
+
uiSchema: {
|
|
108
|
+
type: string;
|
|
109
|
+
title: string;
|
|
110
|
+
'x-component': string;
|
|
111
|
+
'x-component-props': {
|
|
112
|
+
style: {
|
|
113
|
+
overflow: string;
|
|
114
|
+
textOverflow: string;
|
|
115
|
+
whiteSpace: string;
|
|
116
|
+
};
|
|
117
|
+
fieldNames?: undefined;
|
|
118
|
+
service?: undefined;
|
|
119
|
+
showTime?: undefined;
|
|
120
|
+
};
|
|
121
|
+
enum?: undefined;
|
|
122
|
+
};
|
|
123
|
+
target?: undefined;
|
|
124
|
+
foreignKey?: undefined;
|
|
125
|
+
isAssociation?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: string;
|
|
128
|
+
name: string;
|
|
129
|
+
interface: string;
|
|
130
|
+
uiSchema: {
|
|
131
|
+
type: string;
|
|
132
|
+
title: string;
|
|
133
|
+
'x-component': string;
|
|
134
|
+
enum: ({
|
|
135
|
+
value: number;
|
|
136
|
+
label: string;
|
|
137
|
+
editable: boolean;
|
|
138
|
+
color?: undefined;
|
|
139
|
+
} | {
|
|
140
|
+
value: number;
|
|
141
|
+
label: string;
|
|
142
|
+
color: string;
|
|
143
|
+
editable: boolean;
|
|
144
|
+
} | {
|
|
145
|
+
value: number;
|
|
146
|
+
label: string;
|
|
147
|
+
color: string;
|
|
148
|
+
editable?: undefined;
|
|
149
|
+
})[];
|
|
150
|
+
'x-component-props'?: undefined;
|
|
151
|
+
};
|
|
152
|
+
target?: undefined;
|
|
153
|
+
foreignKey?: undefined;
|
|
154
|
+
isAssociation?: undefined;
|
|
155
|
+
})[];
|
|
156
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export declare const CollectionWorkflowNotice: {
|
|
2
|
+
title: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fields: ({
|
|
5
|
+
type: string;
|
|
6
|
+
name: string;
|
|
7
|
+
interface: string;
|
|
8
|
+
uiSchema: {
|
|
9
|
+
type: string;
|
|
10
|
+
title: string;
|
|
11
|
+
'x-component': string;
|
|
12
|
+
'x-component-props'?: undefined;
|
|
13
|
+
enum?: undefined;
|
|
14
|
+
};
|
|
15
|
+
target?: undefined;
|
|
16
|
+
foreignKey?: undefined;
|
|
17
|
+
isAssociation?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
name: string;
|
|
21
|
+
target: string;
|
|
22
|
+
foreignKey: string;
|
|
23
|
+
interface: string;
|
|
24
|
+
uiSchema: {
|
|
25
|
+
type: string;
|
|
26
|
+
title: string;
|
|
27
|
+
'x-component': string;
|
|
28
|
+
'x-component-props': {
|
|
29
|
+
fieldNames: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
33
|
+
service: {
|
|
34
|
+
resource: string;
|
|
35
|
+
};
|
|
36
|
+
showTime?: undefined;
|
|
37
|
+
style?: undefined;
|
|
38
|
+
};
|
|
39
|
+
enum?: undefined;
|
|
40
|
+
};
|
|
41
|
+
isAssociation?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
type: string;
|
|
44
|
+
name: string;
|
|
45
|
+
target: string;
|
|
46
|
+
foreignKey: string;
|
|
47
|
+
interface: string;
|
|
48
|
+
isAssociation: boolean;
|
|
49
|
+
uiSchema: {
|
|
50
|
+
type: string;
|
|
51
|
+
title: string;
|
|
52
|
+
'x-component': string;
|
|
53
|
+
'x-component-props': {
|
|
54
|
+
fieldNames: {
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
service: {
|
|
59
|
+
resource: string;
|
|
60
|
+
};
|
|
61
|
+
showTime?: undefined;
|
|
62
|
+
style?: undefined;
|
|
63
|
+
};
|
|
64
|
+
enum?: undefined;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
type: string;
|
|
68
|
+
name: string;
|
|
69
|
+
interface: string;
|
|
70
|
+
uiSchema: {
|
|
71
|
+
type: string;
|
|
72
|
+
title: string;
|
|
73
|
+
'x-component': string;
|
|
74
|
+
enum: ({
|
|
75
|
+
value: any;
|
|
76
|
+
label: string;
|
|
77
|
+
color: string;
|
|
78
|
+
} | {
|
|
79
|
+
value: number;
|
|
80
|
+
label: string;
|
|
81
|
+
color?: undefined;
|
|
82
|
+
})[];
|
|
83
|
+
'x-component-props'?: undefined;
|
|
84
|
+
};
|
|
85
|
+
target?: undefined;
|
|
86
|
+
foreignKey?: undefined;
|
|
87
|
+
isAssociation?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
name: string;
|
|
90
|
+
type: string;
|
|
91
|
+
interface: string;
|
|
92
|
+
uiSchema: {
|
|
93
|
+
type: string;
|
|
94
|
+
title: string;
|
|
95
|
+
'x-component': string;
|
|
96
|
+
'x-component-props': {
|
|
97
|
+
showTime: boolean;
|
|
98
|
+
fieldNames?: undefined;
|
|
99
|
+
service?: undefined;
|
|
100
|
+
style?: undefined;
|
|
101
|
+
};
|
|
102
|
+
enum?: undefined;
|
|
103
|
+
};
|
|
104
|
+
target?: undefined;
|
|
105
|
+
foreignKey?: undefined;
|
|
106
|
+
isAssociation?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
type: string;
|
|
109
|
+
name: string;
|
|
110
|
+
interface: string;
|
|
111
|
+
uiSchema: {
|
|
112
|
+
type: string;
|
|
113
|
+
title: string;
|
|
114
|
+
'x-component': string;
|
|
115
|
+
'x-component-props': {
|
|
116
|
+
style: {
|
|
117
|
+
overflow: string;
|
|
118
|
+
textOverflow: string;
|
|
119
|
+
whiteSpace: string;
|
|
120
|
+
};
|
|
121
|
+
fieldNames?: undefined;
|
|
122
|
+
service?: undefined;
|
|
123
|
+
showTime?: undefined;
|
|
124
|
+
};
|
|
125
|
+
enum?: undefined;
|
|
126
|
+
};
|
|
127
|
+
target?: undefined;
|
|
128
|
+
foreignKey?: undefined;
|
|
129
|
+
isAssociation?: undefined;
|
|
130
|
+
})[];
|
|
131
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaInitializerItemType } from '@tachybase/client';
|
|
3
|
+
import { JOB_STATUS } from '@tachybase/module-workflow/client';
|
|
4
|
+
import { ISchema } from '@tachybase/schema';
|
|
5
|
+
export declare const NOTICE_INSTRUCTION_NAMESPACE = "notice";
|
|
6
|
+
export declare const COLLECTION_NOTICE_NAME = "workflowNotice";
|
|
7
|
+
export declare const COLLECTION_NAME_APPROVAL_CARBON_COPY = "approvalCarbonCopy";
|
|
8
|
+
/**显示状态 */
|
|
9
|
+
export declare const APPROVAL_STATUS: {
|
|
10
|
+
/**已分配 */
|
|
11
|
+
ASSIGNED: any;
|
|
12
|
+
/** 待处理*/
|
|
13
|
+
PENDING: number;
|
|
14
|
+
/**已退回 */
|
|
15
|
+
RETURNED: number;
|
|
16
|
+
/**已通过 */
|
|
17
|
+
APPROVED: number;
|
|
18
|
+
/**已拒绝 */
|
|
19
|
+
REJECTED: number;
|
|
20
|
+
/**取消 */
|
|
21
|
+
CANCELED: number;
|
|
22
|
+
/**撤回 */
|
|
23
|
+
WITHDRAWN: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const ProcessedStatus: number[];
|
|
26
|
+
export declare const approvalStatusOptions: ({
|
|
27
|
+
value: any;
|
|
28
|
+
label: string;
|
|
29
|
+
color: string;
|
|
30
|
+
} | {
|
|
31
|
+
value: number;
|
|
32
|
+
label: string;
|
|
33
|
+
color?: undefined;
|
|
34
|
+
})[];
|
|
35
|
+
/**行为状态 */
|
|
36
|
+
export declare const APPROVAL_ACTION_STATUS: {
|
|
37
|
+
/** 0:草稿 */
|
|
38
|
+
DRAFT: number;
|
|
39
|
+
/** 1:已退回 */
|
|
40
|
+
RETURNED: number;
|
|
41
|
+
/** 2:提交 */
|
|
42
|
+
SUBMITTED: number;
|
|
43
|
+
/** 3:处理中 */
|
|
44
|
+
PROCESSING: number;
|
|
45
|
+
/** 4:已完结 */
|
|
46
|
+
APPROVED: number;
|
|
47
|
+
/**5:重新提交 */
|
|
48
|
+
RESUBMIT: number;
|
|
49
|
+
/** -1:拒收 */
|
|
50
|
+
REJECTED: number;
|
|
51
|
+
};
|
|
52
|
+
export declare const ApprovalStatusEnums: ({
|
|
53
|
+
value: number;
|
|
54
|
+
label: string;
|
|
55
|
+
editable: boolean;
|
|
56
|
+
color?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
value: number;
|
|
59
|
+
label: string;
|
|
60
|
+
color: string;
|
|
61
|
+
editable: boolean;
|
|
62
|
+
} | {
|
|
63
|
+
value: number;
|
|
64
|
+
label: string;
|
|
65
|
+
color: string;
|
|
66
|
+
editable?: undefined;
|
|
67
|
+
})[];
|
|
68
|
+
export declare const ApprovalPriorityType: {
|
|
69
|
+
value: string;
|
|
70
|
+
label: string;
|
|
71
|
+
color: string;
|
|
72
|
+
}[];
|
|
73
|
+
export declare const ApprovalStatusEnumDict: {};
|
|
74
|
+
export declare const JobStatusEnums: {
|
|
75
|
+
0: {
|
|
76
|
+
color: string;
|
|
77
|
+
label: string;
|
|
78
|
+
};
|
|
79
|
+
1: {
|
|
80
|
+
color: string;
|
|
81
|
+
label: string;
|
|
82
|
+
};
|
|
83
|
+
[-5]: {
|
|
84
|
+
color: string;
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
[-6]: {
|
|
88
|
+
color: string;
|
|
89
|
+
label: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export declare const VoteCategory: {
|
|
93
|
+
SINGLE: symbol;
|
|
94
|
+
ALL: symbol;
|
|
95
|
+
VOTE: symbol;
|
|
96
|
+
};
|
|
97
|
+
export declare const VoteCategoryEnums: {};
|
|
98
|
+
export declare function voteOption(value: number): symbol;
|
|
99
|
+
export declare function flatSchemaArray(sourceData: any, filter: any, needRecursion?: boolean): any[];
|
|
100
|
+
type ValueOf<T> = T[keyof T];
|
|
101
|
+
export type FormType = {
|
|
102
|
+
type: 'create' | 'update' | 'custom';
|
|
103
|
+
title: string;
|
|
104
|
+
actions: ValueOf<typeof JOB_STATUS>[];
|
|
105
|
+
collection: string | {
|
|
106
|
+
name: string;
|
|
107
|
+
fields: any[];
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export type ManualFormType = {
|
|
112
|
+
title: string;
|
|
113
|
+
config: {
|
|
114
|
+
useInitializer: ({ allCollections }?: {
|
|
115
|
+
allCollections: any[];
|
|
116
|
+
}) => SchemaInitializerItemType;
|
|
117
|
+
initializers?: {
|
|
118
|
+
[key: string]: React.FC;
|
|
119
|
+
};
|
|
120
|
+
components?: {
|
|
121
|
+
[key: string]: React.FC;
|
|
122
|
+
};
|
|
123
|
+
parseFormOptions(root: ISchema): {
|
|
124
|
+
[key: string]: FormType;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
block: {
|
|
128
|
+
scope?: {
|
|
129
|
+
[key: string]: () => any;
|
|
130
|
+
};
|
|
131
|
+
components?: {
|
|
132
|
+
[key: string]: React.FC;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
export declare const EXECUTION_STATUS: {
|
|
137
|
+
QUEUEING: any;
|
|
138
|
+
STARTED: number;
|
|
139
|
+
RESOLVED: number;
|
|
140
|
+
FAILED: number;
|
|
141
|
+
ERROR: number;
|
|
142
|
+
ABORTED: number;
|
|
143
|
+
CANCELED: number;
|
|
144
|
+
REJECTED: number;
|
|
145
|
+
RETRY_NEEDED: number;
|
|
146
|
+
};
|
|
147
|
+
export declare const ExecutionStatusOptions: {
|
|
148
|
+
value: any;
|
|
149
|
+
label: string;
|
|
150
|
+
color: string;
|
|
151
|
+
icon: React.JSX.Element;
|
|
152
|
+
description: string;
|
|
153
|
+
}[];
|
|
154
|
+
export declare const ApprovalNoticeStatusOptions: {
|
|
155
|
+
value: any;
|
|
156
|
+
label: string;
|
|
157
|
+
color: string;
|
|
158
|
+
}[];
|
|
159
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../style/style.css';
|
|
3
|
+
export declare const ViewActionInitiationsContent: () => React.JSX.Element;
|
|
4
|
+
export declare function WithdrawActionProvider(): any;
|
|
5
|
+
export declare function useWithdrawAction(): {
|
|
6
|
+
run(): void;
|
|
7
|
+
};
|
|
8
|
+
export declare function ActionBarProvider(props: any): any;
|
|
9
|
+
export declare function useContextApprovalStatus(): number;
|
|
10
|
+
export declare function ContextInitiationsApprovalStatusProvider(props: any): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ActionBarProvider(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProviderActionResubmit(props: any): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ResubmitProps {
|
|
3
|
+
isResubmit?: boolean;
|
|
4
|
+
setResubmit?: any;
|
|
5
|
+
}
|
|
6
|
+
export declare const ResubmitProvider: ({ children }: {
|
|
7
|
+
children: any;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export declare const useResubmit: () => ResubmitProps;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const NAMESPACE = "@tachybase/plugin-workflow-approval";
|
|
2
|
+
export declare function usePluginTranslation(): any;
|
|
3
|
+
export declare function useTranslation(): {
|
|
4
|
+
t: (key: string, options?: {}) => string;
|
|
5
|
+
};
|
|
6
|
+
export declare function lang(key: string, options?: {}): string;
|
|
7
|
+
export declare const tval: (key: string, haveNamespace?: boolean) => string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const TabApprovalItem: React.MemoExoticComponent<import("@tachybase/schema").ReactFC<unknown>>;
|
|
3
|
+
export declare const changeWorkflowNoticeService: (api: any, t: any, cm: any, compile: any, input: any, setData: any, params: any, filter: any, user: any) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../style/style.css';
|
|
3
|
+
import { Registry } from '@tachybase/utils/client';
|
|
4
|
+
import { ManualFormType } from '../../constants';
|
|
5
|
+
export declare const ViewTodosUserJobsContent: React.MemoExoticComponent<import("@tachybase/schema").ReactFC<unknown>>;
|
|
6
|
+
export declare const manualFormTypes: Registry<ManualFormType>;
|