sy-form-components 0.2.12 → 0.2.14
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/dist/index.d.mts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.js +531 -130
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +531 -131
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -515,6 +515,14 @@ interface ReturnableNode {
|
|
|
515
515
|
name?: string;
|
|
516
516
|
type?: string;
|
|
517
517
|
}
|
|
518
|
+
interface ReturnPolicy {
|
|
519
|
+
resubmitMode?: string;
|
|
520
|
+
[key: string]: any;
|
|
521
|
+
}
|
|
522
|
+
interface ReturnableNodeResult {
|
|
523
|
+
nodes: ReturnableNode[];
|
|
524
|
+
policy?: ReturnPolicy | null;
|
|
525
|
+
}
|
|
518
526
|
/** 流程预览路由 */
|
|
519
527
|
interface ProcessRoute {
|
|
520
528
|
nodeId: string;
|
|
@@ -783,6 +791,8 @@ declare function resubmitTask(request: FormRuntimeApi['request'], params: Resubm
|
|
|
783
791
|
declare function saveTask(request: FormRuntimeApi['request'], params: SaveTaskParams): Promise<any>;
|
|
784
792
|
/** 获取可退回节点 */
|
|
785
793
|
declare function getReturnableNodes(request: FormRuntimeApi['request'], taskId: string): Promise<ReturnableNode[]>;
|
|
794
|
+
/** 获取可退回节点和退回策略 */
|
|
795
|
+
declare function getReturnableNodeResult(request: FormRuntimeApi['request'], taskId: string): Promise<ReturnableNodeResult>;
|
|
786
796
|
/** 预览流程路由 */
|
|
787
797
|
declare function previewProcess(request: FormRuntimeApi['request'], params: PreviewParams): Promise<ProcessRoute[]>;
|
|
788
798
|
/** 获取流程定义 */
|
|
@@ -1142,6 +1152,8 @@ interface UseProcessDetailReturn {
|
|
|
1142
1152
|
progressList: ProcessTask[];
|
|
1143
1153
|
formData: Record<string, any> | null;
|
|
1144
1154
|
instanceInfo: FormInstanceData | null;
|
|
1155
|
+
accessDenied: boolean;
|
|
1156
|
+
loadError: string | null;
|
|
1145
1157
|
isApprover: boolean;
|
|
1146
1158
|
activeActions: ProcessAction[];
|
|
1147
1159
|
fieldBehaviors: Record<string, FieldBehavior>;
|
|
@@ -1149,8 +1161,16 @@ interface UseProcessDetailReturn {
|
|
|
1149
1161
|
isOriginatorReturn: boolean;
|
|
1150
1162
|
isProcessCompleted: boolean;
|
|
1151
1163
|
canWithdraw: boolean;
|
|
1164
|
+
canEdit: boolean;
|
|
1165
|
+
canDelete: boolean;
|
|
1166
|
+
canViewWorkflow: boolean;
|
|
1167
|
+
canViewChangeRecords: boolean;
|
|
1168
|
+
dataVersion: number;
|
|
1152
1169
|
switchToEdit: () => void;
|
|
1153
1170
|
switchToReadonly: () => void;
|
|
1171
|
+
saveChanges: (values: Record<string, any>) => Promise<boolean>;
|
|
1172
|
+
deleteInstance: () => Promise<boolean>;
|
|
1173
|
+
refreshDetail: () => Promise<void>;
|
|
1154
1174
|
refreshProgress: () => Promise<void>;
|
|
1155
1175
|
}
|
|
1156
1176
|
/**
|
|
@@ -1163,7 +1183,7 @@ interface UseApprovalActionsOptions {
|
|
|
1163
1183
|
formUuid: string;
|
|
1164
1184
|
appType: string;
|
|
1165
1185
|
currentTaskId?: string;
|
|
1166
|
-
onActionComplete?: (action: string) => void;
|
|
1186
|
+
onActionComplete?: (action: string) => Promise<void> | void;
|
|
1167
1187
|
getFormValues?: () => Record<string, any>;
|
|
1168
1188
|
}
|
|
1169
1189
|
interface UseApprovalActionsReturn {
|
|
@@ -1178,7 +1198,8 @@ interface UseApprovalActionsReturn {
|
|
|
1178
1198
|
isLoading: boolean;
|
|
1179
1199
|
currentAction: string | null;
|
|
1180
1200
|
returnableNodes: ReturnableNode[];
|
|
1181
|
-
|
|
1201
|
+
returnPolicy: ReturnPolicy | null;
|
|
1202
|
+
loadReturnableNodes: () => Promise<ReturnableNode[]>;
|
|
1182
1203
|
}
|
|
1183
1204
|
/**
|
|
1184
1205
|
* 审批操作逻辑 hook
|
|
@@ -1324,7 +1345,8 @@ interface ApprovalActionBarProps {
|
|
|
1324
1345
|
onResubmit?: (comments?: string) => Promise<void> | void;
|
|
1325
1346
|
onCallback?: () => Promise<void> | void;
|
|
1326
1347
|
returnableNodes?: ReturnableNode[];
|
|
1327
|
-
|
|
1348
|
+
returnPolicy?: ReturnPolicy | null;
|
|
1349
|
+
onLoadReturnableNodes?: () => Promise<ReturnableNode[] | void> | void;
|
|
1328
1350
|
renderTransferSelector?: (props: {
|
|
1329
1351
|
value?: string;
|
|
1330
1352
|
onChange: (userId: string) => void;
|
|
@@ -1533,9 +1555,14 @@ interface ProcessDetailTemplateProps {
|
|
|
1533
1555
|
formUuid: string;
|
|
1534
1556
|
appType: string;
|
|
1535
1557
|
formInstanceId: string;
|
|
1558
|
+
enableEdit?: boolean;
|
|
1559
|
+
enableDelete?: boolean;
|
|
1560
|
+
enableChangeRecords?: boolean;
|
|
1561
|
+
showApproverInfo?: boolean;
|
|
1536
1562
|
header?: React__default.ReactNode;
|
|
1537
1563
|
renderTimeline?: (tasks: ProcessTask[]) => React__default.ReactNode;
|
|
1538
1564
|
renderActions?: (actions: ProcessAction[]) => React__default.ReactNode;
|
|
1565
|
+
renderFooterActions?: (actions: ActionConfig[]) => React__default.ReactNode;
|
|
1539
1566
|
renderTransferSelector?: (props: {
|
|
1540
1567
|
value?: string;
|
|
1541
1568
|
onChange: (userId: string) => void;
|
|
@@ -1544,7 +1571,9 @@ interface ProcessDetailTemplateProps {
|
|
|
1544
1571
|
renderActionModalExtra?: (action: ProcessAction) => React__default.ReactNode;
|
|
1545
1572
|
beforeForm?: React__default.ReactNode;
|
|
1546
1573
|
afterForm?: React__default.ReactNode;
|
|
1547
|
-
onActionComplete?: (action: string) => void;
|
|
1574
|
+
onActionComplete?: (action: string) => Promise<void> | void;
|
|
1575
|
+
onSave?: (values: Record<string, any>) => Promise<void> | void;
|
|
1576
|
+
onDelete?: () => Promise<void> | void;
|
|
1548
1577
|
inDrawer?: boolean;
|
|
1549
1578
|
}
|
|
1550
1579
|
declare const ProcessDetailTemplate: React__default.FC<ProcessDetailTemplateProps>;
|
|
@@ -1554,4 +1583,4 @@ interface PageSkeletonProps {
|
|
|
1554
1583
|
}
|
|
1555
1584
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1556
1585
|
|
|
1557
|
-
export { type ActionConfig, AddressField, type AddressFieldProps, type AddressValue, ApprovalActionBar, type ApprovalActionBarProps, type ApprovalActionType, ApprovalActions, type ApprovalActionsProps, type ApprovalPermission, ApprovalTimeline, type ApprovalTimelineProps, type ApproveParams, type AssociationFormConfig, AssociationFormField, type AssociationFormFieldProps, type AssociationValue, AttachmentField, type AttachmentFieldProps, type AttachmentItem, type BaseFieldProps, CascadeDateField, type CascadeDateFieldProps, CascadeSelectField, type CascadeSelectFieldProps, type ChangeRecord, type ChangeRecordListResponse, type ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, type CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, type DataManagementConfig, type DataManagementConfigScope, type DataManagementDensity, type DataManagementField, type DataManagementFilterGroup, type DataManagementFilterRule, DataManagementList, type DataManagementListProps, type DataManagementListResult, type DataManagementQuery, type DataManagementRowAction, type DataManagementSort, DateField, type DateFieldProps, DepartmentSelectField, type DepartmentSelectFieldProps, type DepartmentTreeNode, type DeviceDetectResult, DigitalSignatureField, type DigitalSignatureFieldProps, type DigitalSignatureValue, DraftManager, type DraftManagerProps, EditorField, type EditorFieldProps, UserSelectField as EmployeeSelectField, type FieldBehavior, type FieldDefinition, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormContainer, type FormContainerProps, FormContext, type FormContextValue, type FormDataDeleteParams, type FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, type FormEffect, type FormEngineConfig, FormGrid, type FormGridProps, type FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, type FormRuntimeApi, type FormRuntimeApiConfig, type FormSchema, FormSection, type FormSectionProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, type ImageFieldProps, JSONField, type JSONFieldProps, LocationField, type LocationFieldProps, type LocationValue, MultiSelectField, type MultiSelectFieldProps, NumberField, type NumberFieldProps, type OptionItem, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, type PreviewParams, type ProcessAction, type ProcessBasicInfo, type ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, type ProcessNodeType, ProcessPreview, type ProcessPreviewProps, type ProcessRoute, type ProcessStatus, type ProcessTask, RadioField, type RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, type ResubmitParams, type ReturnParams, type ReturnableNode, RuntimePageShell, type RuntimePageShellProps, type RuntimeRequestConfig, type RuntimeResponse, type SaveTaskParams, SelectField, type SelectFieldProps, SerialNumberField, type SerialNumberFieldProps, type SignaturePoint, type StatusMeta, StickyActionBar, type StickyActionBarProps, type SubFormColumn, SubFormField, type SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, type TaskStatus, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, TextAreaField as TextareaField, type TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, type UserItem, UserSelectField, type UserSelectFieldProps, type ValidationRule, type ViewPermissionQueryParams, type ViewPermissionSummary, type WithdrawParams, advancedSearchDataManagement, batchApproveDataManagementRows, buildFilterPayload, checkUserApproval, createFormRuntimeApi, defaultComponentRegistry, defineFormSchema, deleteDataManagementRows, deleteFormData, downloadDataManagementImportTemplate, evaluateEffects, exportDataManagementRows, extractFormValues, getChangeRecords, getDataManagementConfig, getDataManagementSchema, getDataManagementTransferRecords, getFormData, getProcessBasic, getProcessDefinition, getProcessProgress, getReturnableNodes, getSystemFieldsForFormType, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, importDataManagementRows, importPreviewDataManagementRows, normalizeColumnConfig, normalizeDataManagementFields, normalizeDataManagementList, normalizeFieldBehaviors, normalizeOperation, previewProcess, resubmitTask, returnTask, saveDataManagementConfig, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|
|
1586
|
+
export { type ActionConfig, AddressField, type AddressFieldProps, type AddressValue, ApprovalActionBar, type ApprovalActionBarProps, type ApprovalActionType, ApprovalActions, type ApprovalActionsProps, type ApprovalPermission, ApprovalTimeline, type ApprovalTimelineProps, type ApproveParams, type AssociationFormConfig, AssociationFormField, type AssociationFormFieldProps, type AssociationValue, AttachmentField, type AttachmentFieldProps, type AttachmentItem, type BaseFieldProps, CascadeDateField, type CascadeDateFieldProps, CascadeSelectField, type CascadeSelectFieldProps, type ChangeRecord, type ChangeRecordListResponse, type ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, type CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, type DataManagementConfig, type DataManagementConfigScope, type DataManagementDensity, type DataManagementField, type DataManagementFilterGroup, type DataManagementFilterRule, DataManagementList, type DataManagementListProps, type DataManagementListResult, type DataManagementQuery, type DataManagementRowAction, type DataManagementSort, DateField, type DateFieldProps, DepartmentSelectField, type DepartmentSelectFieldProps, type DepartmentTreeNode, type DeviceDetectResult, DigitalSignatureField, type DigitalSignatureFieldProps, type DigitalSignatureValue, DraftManager, type DraftManagerProps, EditorField, type EditorFieldProps, UserSelectField as EmployeeSelectField, type FieldBehavior, type FieldDefinition, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormContainer, type FormContainerProps, FormContext, type FormContextValue, type FormDataDeleteParams, type FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, type FormEffect, type FormEngineConfig, FormGrid, type FormGridProps, type FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, type FormRuntimeApi, type FormRuntimeApiConfig, type FormSchema, FormSection, type FormSectionProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, type ImageFieldProps, JSONField, type JSONFieldProps, LocationField, type LocationFieldProps, type LocationValue, MultiSelectField, type MultiSelectFieldProps, NumberField, type NumberFieldProps, type OptionItem, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, type PreviewParams, type ProcessAction, type ProcessBasicInfo, type ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, type ProcessNodeType, ProcessPreview, type ProcessPreviewProps, type ProcessRoute, type ProcessStatus, type ProcessTask, RadioField, type RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, type ResubmitParams, type ReturnParams, type ReturnPolicy, type ReturnableNode, type ReturnableNodeResult, RuntimePageShell, type RuntimePageShellProps, type RuntimeRequestConfig, type RuntimeResponse, type SaveTaskParams, SelectField, type SelectFieldProps, SerialNumberField, type SerialNumberFieldProps, type SignaturePoint, type StatusMeta, StickyActionBar, type StickyActionBarProps, type SubFormColumn, SubFormField, type SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, type TaskStatus, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, TextAreaField as TextareaField, type TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, type UserItem, UserSelectField, type UserSelectFieldProps, type ValidationRule, type ViewPermissionQueryParams, type ViewPermissionSummary, type WithdrawParams, advancedSearchDataManagement, batchApproveDataManagementRows, buildFilterPayload, checkUserApproval, createFormRuntimeApi, defaultComponentRegistry, defineFormSchema, deleteDataManagementRows, deleteFormData, downloadDataManagementImportTemplate, evaluateEffects, exportDataManagementRows, extractFormValues, getChangeRecords, getDataManagementConfig, getDataManagementSchema, getDataManagementTransferRecords, getFormData, getProcessBasic, getProcessDefinition, getProcessProgress, getReturnableNodeResult, getReturnableNodes, getSystemFieldsForFormType, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, importDataManagementRows, importPreviewDataManagementRows, normalizeColumnConfig, normalizeDataManagementFields, normalizeDataManagementList, normalizeFieldBehaviors, normalizeOperation, previewProcess, resubmitTask, returnTask, saveDataManagementConfig, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|
package/dist/index.d.ts
CHANGED
|
@@ -515,6 +515,14 @@ interface ReturnableNode {
|
|
|
515
515
|
name?: string;
|
|
516
516
|
type?: string;
|
|
517
517
|
}
|
|
518
|
+
interface ReturnPolicy {
|
|
519
|
+
resubmitMode?: string;
|
|
520
|
+
[key: string]: any;
|
|
521
|
+
}
|
|
522
|
+
interface ReturnableNodeResult {
|
|
523
|
+
nodes: ReturnableNode[];
|
|
524
|
+
policy?: ReturnPolicy | null;
|
|
525
|
+
}
|
|
518
526
|
/** 流程预览路由 */
|
|
519
527
|
interface ProcessRoute {
|
|
520
528
|
nodeId: string;
|
|
@@ -783,6 +791,8 @@ declare function resubmitTask(request: FormRuntimeApi['request'], params: Resubm
|
|
|
783
791
|
declare function saveTask(request: FormRuntimeApi['request'], params: SaveTaskParams): Promise<any>;
|
|
784
792
|
/** 获取可退回节点 */
|
|
785
793
|
declare function getReturnableNodes(request: FormRuntimeApi['request'], taskId: string): Promise<ReturnableNode[]>;
|
|
794
|
+
/** 获取可退回节点和退回策略 */
|
|
795
|
+
declare function getReturnableNodeResult(request: FormRuntimeApi['request'], taskId: string): Promise<ReturnableNodeResult>;
|
|
786
796
|
/** 预览流程路由 */
|
|
787
797
|
declare function previewProcess(request: FormRuntimeApi['request'], params: PreviewParams): Promise<ProcessRoute[]>;
|
|
788
798
|
/** 获取流程定义 */
|
|
@@ -1142,6 +1152,8 @@ interface UseProcessDetailReturn {
|
|
|
1142
1152
|
progressList: ProcessTask[];
|
|
1143
1153
|
formData: Record<string, any> | null;
|
|
1144
1154
|
instanceInfo: FormInstanceData | null;
|
|
1155
|
+
accessDenied: boolean;
|
|
1156
|
+
loadError: string | null;
|
|
1145
1157
|
isApprover: boolean;
|
|
1146
1158
|
activeActions: ProcessAction[];
|
|
1147
1159
|
fieldBehaviors: Record<string, FieldBehavior>;
|
|
@@ -1149,8 +1161,16 @@ interface UseProcessDetailReturn {
|
|
|
1149
1161
|
isOriginatorReturn: boolean;
|
|
1150
1162
|
isProcessCompleted: boolean;
|
|
1151
1163
|
canWithdraw: boolean;
|
|
1164
|
+
canEdit: boolean;
|
|
1165
|
+
canDelete: boolean;
|
|
1166
|
+
canViewWorkflow: boolean;
|
|
1167
|
+
canViewChangeRecords: boolean;
|
|
1168
|
+
dataVersion: number;
|
|
1152
1169
|
switchToEdit: () => void;
|
|
1153
1170
|
switchToReadonly: () => void;
|
|
1171
|
+
saveChanges: (values: Record<string, any>) => Promise<boolean>;
|
|
1172
|
+
deleteInstance: () => Promise<boolean>;
|
|
1173
|
+
refreshDetail: () => Promise<void>;
|
|
1154
1174
|
refreshProgress: () => Promise<void>;
|
|
1155
1175
|
}
|
|
1156
1176
|
/**
|
|
@@ -1163,7 +1183,7 @@ interface UseApprovalActionsOptions {
|
|
|
1163
1183
|
formUuid: string;
|
|
1164
1184
|
appType: string;
|
|
1165
1185
|
currentTaskId?: string;
|
|
1166
|
-
onActionComplete?: (action: string) => void;
|
|
1186
|
+
onActionComplete?: (action: string) => Promise<void> | void;
|
|
1167
1187
|
getFormValues?: () => Record<string, any>;
|
|
1168
1188
|
}
|
|
1169
1189
|
interface UseApprovalActionsReturn {
|
|
@@ -1178,7 +1198,8 @@ interface UseApprovalActionsReturn {
|
|
|
1178
1198
|
isLoading: boolean;
|
|
1179
1199
|
currentAction: string | null;
|
|
1180
1200
|
returnableNodes: ReturnableNode[];
|
|
1181
|
-
|
|
1201
|
+
returnPolicy: ReturnPolicy | null;
|
|
1202
|
+
loadReturnableNodes: () => Promise<ReturnableNode[]>;
|
|
1182
1203
|
}
|
|
1183
1204
|
/**
|
|
1184
1205
|
* 审批操作逻辑 hook
|
|
@@ -1324,7 +1345,8 @@ interface ApprovalActionBarProps {
|
|
|
1324
1345
|
onResubmit?: (comments?: string) => Promise<void> | void;
|
|
1325
1346
|
onCallback?: () => Promise<void> | void;
|
|
1326
1347
|
returnableNodes?: ReturnableNode[];
|
|
1327
|
-
|
|
1348
|
+
returnPolicy?: ReturnPolicy | null;
|
|
1349
|
+
onLoadReturnableNodes?: () => Promise<ReturnableNode[] | void> | void;
|
|
1328
1350
|
renderTransferSelector?: (props: {
|
|
1329
1351
|
value?: string;
|
|
1330
1352
|
onChange: (userId: string) => void;
|
|
@@ -1533,9 +1555,14 @@ interface ProcessDetailTemplateProps {
|
|
|
1533
1555
|
formUuid: string;
|
|
1534
1556
|
appType: string;
|
|
1535
1557
|
formInstanceId: string;
|
|
1558
|
+
enableEdit?: boolean;
|
|
1559
|
+
enableDelete?: boolean;
|
|
1560
|
+
enableChangeRecords?: boolean;
|
|
1561
|
+
showApproverInfo?: boolean;
|
|
1536
1562
|
header?: React__default.ReactNode;
|
|
1537
1563
|
renderTimeline?: (tasks: ProcessTask[]) => React__default.ReactNode;
|
|
1538
1564
|
renderActions?: (actions: ProcessAction[]) => React__default.ReactNode;
|
|
1565
|
+
renderFooterActions?: (actions: ActionConfig[]) => React__default.ReactNode;
|
|
1539
1566
|
renderTransferSelector?: (props: {
|
|
1540
1567
|
value?: string;
|
|
1541
1568
|
onChange: (userId: string) => void;
|
|
@@ -1544,7 +1571,9 @@ interface ProcessDetailTemplateProps {
|
|
|
1544
1571
|
renderActionModalExtra?: (action: ProcessAction) => React__default.ReactNode;
|
|
1545
1572
|
beforeForm?: React__default.ReactNode;
|
|
1546
1573
|
afterForm?: React__default.ReactNode;
|
|
1547
|
-
onActionComplete?: (action: string) => void;
|
|
1574
|
+
onActionComplete?: (action: string) => Promise<void> | void;
|
|
1575
|
+
onSave?: (values: Record<string, any>) => Promise<void> | void;
|
|
1576
|
+
onDelete?: () => Promise<void> | void;
|
|
1548
1577
|
inDrawer?: boolean;
|
|
1549
1578
|
}
|
|
1550
1579
|
declare const ProcessDetailTemplate: React__default.FC<ProcessDetailTemplateProps>;
|
|
@@ -1554,4 +1583,4 @@ interface PageSkeletonProps {
|
|
|
1554
1583
|
}
|
|
1555
1584
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1556
1585
|
|
|
1557
|
-
export { type ActionConfig, AddressField, type AddressFieldProps, type AddressValue, ApprovalActionBar, type ApprovalActionBarProps, type ApprovalActionType, ApprovalActions, type ApprovalActionsProps, type ApprovalPermission, ApprovalTimeline, type ApprovalTimelineProps, type ApproveParams, type AssociationFormConfig, AssociationFormField, type AssociationFormFieldProps, type AssociationValue, AttachmentField, type AttachmentFieldProps, type AttachmentItem, type BaseFieldProps, CascadeDateField, type CascadeDateFieldProps, CascadeSelectField, type CascadeSelectFieldProps, type ChangeRecord, type ChangeRecordListResponse, type ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, type CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, type DataManagementConfig, type DataManagementConfigScope, type DataManagementDensity, type DataManagementField, type DataManagementFilterGroup, type DataManagementFilterRule, DataManagementList, type DataManagementListProps, type DataManagementListResult, type DataManagementQuery, type DataManagementRowAction, type DataManagementSort, DateField, type DateFieldProps, DepartmentSelectField, type DepartmentSelectFieldProps, type DepartmentTreeNode, type DeviceDetectResult, DigitalSignatureField, type DigitalSignatureFieldProps, type DigitalSignatureValue, DraftManager, type DraftManagerProps, EditorField, type EditorFieldProps, UserSelectField as EmployeeSelectField, type FieldBehavior, type FieldDefinition, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormContainer, type FormContainerProps, FormContext, type FormContextValue, type FormDataDeleteParams, type FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, type FormEffect, type FormEngineConfig, FormGrid, type FormGridProps, type FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, type FormRuntimeApi, type FormRuntimeApiConfig, type FormSchema, FormSection, type FormSectionProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, type ImageFieldProps, JSONField, type JSONFieldProps, LocationField, type LocationFieldProps, type LocationValue, MultiSelectField, type MultiSelectFieldProps, NumberField, type NumberFieldProps, type OptionItem, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, type PreviewParams, type ProcessAction, type ProcessBasicInfo, type ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, type ProcessNodeType, ProcessPreview, type ProcessPreviewProps, type ProcessRoute, type ProcessStatus, type ProcessTask, RadioField, type RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, type ResubmitParams, type ReturnParams, type ReturnableNode, RuntimePageShell, type RuntimePageShellProps, type RuntimeRequestConfig, type RuntimeResponse, type SaveTaskParams, SelectField, type SelectFieldProps, SerialNumberField, type SerialNumberFieldProps, type SignaturePoint, type StatusMeta, StickyActionBar, type StickyActionBarProps, type SubFormColumn, SubFormField, type SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, type TaskStatus, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, TextAreaField as TextareaField, type TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, type UserItem, UserSelectField, type UserSelectFieldProps, type ValidationRule, type ViewPermissionQueryParams, type ViewPermissionSummary, type WithdrawParams, advancedSearchDataManagement, batchApproveDataManagementRows, buildFilterPayload, checkUserApproval, createFormRuntimeApi, defaultComponentRegistry, defineFormSchema, deleteDataManagementRows, deleteFormData, downloadDataManagementImportTemplate, evaluateEffects, exportDataManagementRows, extractFormValues, getChangeRecords, getDataManagementConfig, getDataManagementSchema, getDataManagementTransferRecords, getFormData, getProcessBasic, getProcessDefinition, getProcessProgress, getReturnableNodes, getSystemFieldsForFormType, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, importDataManagementRows, importPreviewDataManagementRows, normalizeColumnConfig, normalizeDataManagementFields, normalizeDataManagementList, normalizeFieldBehaviors, normalizeOperation, previewProcess, resubmitTask, returnTask, saveDataManagementConfig, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|
|
1586
|
+
export { type ActionConfig, AddressField, type AddressFieldProps, type AddressValue, ApprovalActionBar, type ApprovalActionBarProps, type ApprovalActionType, ApprovalActions, type ApprovalActionsProps, type ApprovalPermission, ApprovalTimeline, type ApprovalTimelineProps, type ApproveParams, type AssociationFormConfig, AssociationFormField, type AssociationFormFieldProps, type AssociationValue, AttachmentField, type AttachmentFieldProps, type AttachmentItem, type BaseFieldProps, CascadeDateField, type CascadeDateFieldProps, CascadeSelectField, type CascadeSelectFieldProps, type ChangeRecord, type ChangeRecordListResponse, type ChangeRecordQueryParams, ChangeRecords, type ChangeRecordsProps, CheckboxField, type CheckboxFieldProps, ComponentRegistryContext, type ComponentRegistryContextValue, ComponentRegistryProvider, type DataManagementConfig, type DataManagementConfigScope, type DataManagementDensity, type DataManagementField, type DataManagementFilterGroup, type DataManagementFilterRule, DataManagementList, type DataManagementListProps, type DataManagementListResult, type DataManagementQuery, type DataManagementRowAction, type DataManagementSort, DateField, type DateFieldProps, DepartmentSelectField, type DepartmentSelectFieldProps, type DepartmentTreeNode, type DeviceDetectResult, DigitalSignatureField, type DigitalSignatureFieldProps, type DigitalSignatureValue, DraftManager, type DraftManagerProps, EditorField, type EditorFieldProps, UserSelectField as EmployeeSelectField, type FieldBehavior, type FieldDefinition, FieldWrapper, type FieldWrapperProps, FormActionBar, type FormActionBarProps, FormActions, type FormActionsProps, FormContainer, type FormContainerProps, FormContext, type FormContextValue, type FormDataDeleteParams, type FormDataQueryParams, FormDetailTemplate, type FormDetailTemplateProps, type FormEffect, type FormEngineConfig, FormGrid, type FormGridProps, type FormInstanceData, FormProvider, type FormProviderProps, FormRenderer, type FormRendererProps, type FormRuntimeApi, type FormRuntimeApiConfig, type FormSchema, FormSection, type FormSectionProps, type FormStepItem, FormSteps, type FormStepsProps, FormSubmitTemplate, type FormSubmitTemplateProps, FormSummary, FormSummaryCard, type FormSummaryCardProps, type FormSummaryProps, type FormTabItem, FormTabs, type FormTabsProps, ImageField, type ImageFieldProps, JSONField, type JSONFieldProps, LocationField, type LocationFieldProps, type LocationValue, MultiSelectField, type MultiSelectFieldProps, NumberField, type NumberFieldProps, type OptionItem, PROCESS_STATUS_META, PageSkeleton, type PageSkeletonProps, type PreviewParams, type ProcessAction, type ProcessBasicInfo, type ProcessDefinition, ProcessDetailTemplate, type ProcessDetailTemplateProps, type ProcessNodeType, ProcessPreview, type ProcessPreviewProps, type ProcessRoute, type ProcessStatus, type ProcessTask, RadioField, type RadioFieldProps, RecordChangePanel, type RecordChangePanelProps, type ResubmitParams, type ReturnParams, type ReturnPolicy, type ReturnableNode, type ReturnableNodeResult, RuntimePageShell, type RuntimePageShellProps, type RuntimeRequestConfig, type RuntimeResponse, type SaveTaskParams, SelectField, type SelectFieldProps, SerialNumberField, type SerialNumberFieldProps, type SignaturePoint, type StatusMeta, StickyActionBar, type StickyActionBarProps, type SubFormColumn, SubFormField, type SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, SummaryPanel, type SummaryPanelMetaItem, type SummaryPanelProps, TASK_STATUS_META, type TaskStatus, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, TextAreaField as TextareaField, type TransferParams, type UseApprovalActionsOptions, type UseApprovalActionsReturn, type UseChangeRecordsOptions, type UseChangeRecordsReturn, type UseDraftStorageOptions, type UseDraftStorageReturn, type UseFieldBehaviorOptions, type UseFieldPermissionOptions, type UseFieldPermissionReturn, type UseFormDataReturn, type UseFormDetailOptions, type UseFormDetailReturn, type UseFormEngineReturn, type UseFormNavigationOptions, type UseFormNavigationReturn, type UseFormSubmitReturn, type UseProcessDetailOptions, type UseProcessDetailReturn, type UserItem, UserSelectField, type UserSelectFieldProps, type ValidationRule, type ViewPermissionQueryParams, type ViewPermissionSummary, type WithdrawParams, advancedSearchDataManagement, batchApproveDataManagementRows, buildFilterPayload, checkUserApproval, createFormRuntimeApi, defaultComponentRegistry, defineFormSchema, deleteDataManagementRows, deleteFormData, downloadDataManagementImportTemplate, evaluateEffects, exportDataManagementRows, extractFormValues, getChangeRecords, getDataManagementConfig, getDataManagementSchema, getDataManagementTransferRecords, getFormData, getProcessBasic, getProcessDefinition, getProcessProgress, getReturnableNodeResult, getReturnableNodes, getSystemFieldsForFormType, getViewPermission, handleApproval, hasViewOperation, hasViewPermission, importDataManagementRows, importPreviewDataManagementRows, normalizeColumnConfig, normalizeDataManagementFields, normalizeDataManagementList, normalizeFieldBehaviors, normalizeOperation, previewProcess, resubmitTask, returnTask, saveDataManagementConfig, saveTask, transferTask, triggerCallbackTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|