@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,44 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var tools_exports = {};
|
|
19
|
+
__export(tools_exports, {
|
|
20
|
+
ApprovalJobStatusMap: () => ApprovalJobStatusMap,
|
|
21
|
+
ExecutionStatusMap: () => ExecutionStatusMap
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(tools_exports);
|
|
24
|
+
var import_module_workflow = require("@tachybase/module-workflow");
|
|
25
|
+
var import_status = require("../constants/status");
|
|
26
|
+
const ExecutionStatusMap = {
|
|
27
|
+
[import_module_workflow.EXECUTION_STATUS.RESOLVED]: import_status.APPROVAL_STATUS.APPROVED,
|
|
28
|
+
[import_module_workflow.EXECUTION_STATUS.REJECTED]: import_status.APPROVAL_STATUS.REJECTED,
|
|
29
|
+
[import_module_workflow.EXECUTION_STATUS.CANCELED]: import_status.APPROVAL_STATUS.DRAFT,
|
|
30
|
+
[import_module_workflow.EXECUTION_STATUS.RETRY_NEEDED]: import_status.APPROVAL_STATUS.RETURNED,
|
|
31
|
+
[import_module_workflow.EXECUTION_STATUS.FAILED]: import_status.APPROVAL_STATUS.ERROR,
|
|
32
|
+
[import_module_workflow.EXECUTION_STATUS.ERROR]: import_status.APPROVAL_STATUS.ERROR,
|
|
33
|
+
[import_module_workflow.EXECUTION_STATUS.ABORTED]: import_status.APPROVAL_STATUS.ERROR
|
|
34
|
+
};
|
|
35
|
+
const ApprovalJobStatusMap = {
|
|
36
|
+
[import_status.APPROVAL_ACTION_STATUS.APPROVED]: import_status.APPROVAL_STATUS.APPROVED,
|
|
37
|
+
[import_status.APPROVAL_ACTION_STATUS.REJECTED]: import_status.APPROVAL_STATUS.REJECTED,
|
|
38
|
+
[import_status.APPROVAL_ACTION_STATUS.RETURNED]: import_status.APPROVAL_STATUS.RETURNED
|
|
39
|
+
};
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
ApprovalJobStatusMap,
|
|
43
|
+
ExecutionStatusMap
|
|
44
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findUniqueObjects(sourceArray: any[], uniqueByArray: string[], compareByKey?: string, compareByFunc?: (a: any, b: any) => number): any[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var utils_exports = {};
|
|
19
|
+
__export(utils_exports, {
|
|
20
|
+
findUniqueObjects: () => findUniqueObjects
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(utils_exports);
|
|
23
|
+
function findUniqueObjects(sourceArray = [], uniqueByArray, compareByKey = "", compareByFunc = (a, b) => a - b) {
|
|
24
|
+
const uniqueMap = {};
|
|
25
|
+
let result = [];
|
|
26
|
+
sourceArray.forEach((obj) => {
|
|
27
|
+
const uniqueKey = uniqueByArray.map((field) => obj[field]).join("|");
|
|
28
|
+
const existingObj = uniqueMap[uniqueKey];
|
|
29
|
+
if (!existingObj || compareByFunc(obj[compareByKey], existingObj[compareByKey]) > 0) {
|
|
30
|
+
uniqueMap[uniqueKey] = obj;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
result = Object.values(uniqueMap);
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
findUniqueObjects
|
|
39
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tachybase/plugin-workflow-approval",
|
|
3
|
+
"displayName": "Approval",
|
|
4
|
+
"version": "0.23.8",
|
|
5
|
+
"description": "Approval base in Workflow",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"Approval",
|
|
8
|
+
"Workflow"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/server/index.js",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@ant-design/icons": "~5.3.7",
|
|
13
|
+
"@types/lodash": "^4.17.13",
|
|
14
|
+
"ahooks": "^3.8.4",
|
|
15
|
+
"antd": "5.22.5",
|
|
16
|
+
"antd-mobile": "^5.38.1",
|
|
17
|
+
"antd-mobile-icons": "^0.3.0",
|
|
18
|
+
"file-saver": "^2.0.5",
|
|
19
|
+
"jsonata": "^2.0.6",
|
|
20
|
+
"lodash": "4.17.21",
|
|
21
|
+
"react-i18next": "^15.2.0",
|
|
22
|
+
"react-router-dom": "6.28.1",
|
|
23
|
+
"sequelize": "^6.37.5"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/file-saver": "^2.0.7"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@tachybase/actions": "0.23.8",
|
|
30
|
+
"@tachybase/client": "0.23.8",
|
|
31
|
+
"@tachybase/database": "0.23.8",
|
|
32
|
+
"@tachybase/server": "0.23.8",
|
|
33
|
+
"@tachybase/module-workflow": "0.23.8",
|
|
34
|
+
"@tachybase/test": "0.23.8",
|
|
35
|
+
"@tachybase/components": "0.23.8",
|
|
36
|
+
"@tachybase/data-source": "0.23.8",
|
|
37
|
+
"@tachybase/utils": "0.23.8",
|
|
38
|
+
"@tachybase/schema": "0.23.8"
|
|
39
|
+
},
|
|
40
|
+
"description.zh-CN": "审批系统是一个强大的BPM工具,为业务流程自动化提供基础支持,同时具备高度灵活性和可扩展性,确保审批流程的效率和合规性,助力企业释放创新潜力。",
|
|
41
|
+
"displayName.zh-CN": "审批",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tachybase-build --no-dts @tachybase/plugin-workflow-approval"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/server.d.ts
ADDED
package/server.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/server/index.js');
|