sy-form-components 0.2.9 → 0.2.11
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +147 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -908,6 +908,10 @@ declare function exportDataManagementRows(request: FormRuntimeApi['request'], pa
|
|
|
908
908
|
embedImages?: 'y' | 'n';
|
|
909
909
|
exportFields?: string[];
|
|
910
910
|
}): Promise<Blob | RuntimeResponse<any>>;
|
|
911
|
+
declare function downloadDataManagementImportTemplate(request: FormRuntimeApi['request'], params: {
|
|
912
|
+
appType: string;
|
|
913
|
+
formUuid: string;
|
|
914
|
+
}): Promise<Blob | RuntimeResponse<any>>;
|
|
911
915
|
declare function importPreviewDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
912
916
|
appType: string;
|
|
913
917
|
formUuid: string;
|
|
@@ -1460,6 +1464,7 @@ interface DataManagementRowAction {
|
|
|
1460
1464
|
interface DataManagementListProps {
|
|
1461
1465
|
appType: string;
|
|
1462
1466
|
formUuid: string;
|
|
1467
|
+
detailBasePath?: string;
|
|
1463
1468
|
menuFormUuid?: string;
|
|
1464
1469
|
readonly?: boolean;
|
|
1465
1470
|
fullHeight?: boolean;
|
|
@@ -1549,4 +1554,4 @@ interface PageSkeletonProps {
|
|
|
1549
1554
|
}
|
|
1550
1555
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1551
1556
|
|
|
1552
|
-
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, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -908,6 +908,10 @@ declare function exportDataManagementRows(request: FormRuntimeApi['request'], pa
|
|
|
908
908
|
embedImages?: 'y' | 'n';
|
|
909
909
|
exportFields?: string[];
|
|
910
910
|
}): Promise<Blob | RuntimeResponse<any>>;
|
|
911
|
+
declare function downloadDataManagementImportTemplate(request: FormRuntimeApi['request'], params: {
|
|
912
|
+
appType: string;
|
|
913
|
+
formUuid: string;
|
|
914
|
+
}): Promise<Blob | RuntimeResponse<any>>;
|
|
911
915
|
declare function importPreviewDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
912
916
|
appType: string;
|
|
913
917
|
formUuid: string;
|
|
@@ -1460,6 +1464,7 @@ interface DataManagementRowAction {
|
|
|
1460
1464
|
interface DataManagementListProps {
|
|
1461
1465
|
appType: string;
|
|
1462
1466
|
formUuid: string;
|
|
1467
|
+
detailBasePath?: string;
|
|
1463
1468
|
menuFormUuid?: string;
|
|
1464
1469
|
readonly?: boolean;
|
|
1465
1470
|
fullHeight?: boolean;
|
|
@@ -1549,4 +1554,4 @@ interface PageSkeletonProps {
|
|
|
1549
1554
|
}
|
|
1550
1555
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1551
1556
|
|
|
1552
|
-
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, 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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -95,6 +95,7 @@ __export(index_exports, {
|
|
|
95
95
|
defineFormSchema: () => defineFormSchema,
|
|
96
96
|
deleteDataManagementRows: () => deleteDataManagementRows,
|
|
97
97
|
deleteFormData: () => deleteFormData,
|
|
98
|
+
downloadDataManagementImportTemplate: () => downloadDataManagementImportTemplate,
|
|
98
99
|
evaluateEffects: () => evaluateEffects,
|
|
99
100
|
exportDataManagementRows: () => exportDataManagementRows,
|
|
100
101
|
extractFormValues: () => extractFormValues,
|
|
@@ -7147,6 +7148,16 @@ async function exportDataManagementRows(request, params) {
|
|
|
7147
7148
|
}
|
|
7148
7149
|
});
|
|
7149
7150
|
}
|
|
7151
|
+
async function downloadDataManagementImportTemplate(request, params) {
|
|
7152
|
+
return request({
|
|
7153
|
+
url: `/${params.appType}/v1/form/advancedExportTemplate.xlsx`,
|
|
7154
|
+
method: "get",
|
|
7155
|
+
responseType: "blob",
|
|
7156
|
+
params: {
|
|
7157
|
+
formUuid: params.formUuid
|
|
7158
|
+
}
|
|
7159
|
+
});
|
|
7160
|
+
}
|
|
7150
7161
|
async function importPreviewDataManagementRows(request, params) {
|
|
7151
7162
|
const response = await request({
|
|
7152
7163
|
url: `/${params.appType}/v1/form/importPreview.xlsx`,
|
|
@@ -7865,12 +7876,17 @@ function useFormDetail(options) {
|
|
|
7865
7876
|
const [instanceInfo, setInstanceInfo] = (0, import_react49.useState)(null);
|
|
7866
7877
|
const [permissions, setPermissions] = (0, import_react49.useState)(null);
|
|
7867
7878
|
const mountedRef = (0, import_react49.useRef)(true);
|
|
7879
|
+
const onPermissionDeniedRef = (0, import_react49.useRef)(onPermissionDenied);
|
|
7880
|
+
const fieldIdsKey = fieldIds?.join("") ?? "";
|
|
7868
7881
|
(0, import_react49.useEffect)(() => {
|
|
7869
7882
|
mountedRef.current = true;
|
|
7870
7883
|
return () => {
|
|
7871
7884
|
mountedRef.current = false;
|
|
7872
7885
|
};
|
|
7873
7886
|
}, []);
|
|
7887
|
+
(0, import_react49.useEffect)(() => {
|
|
7888
|
+
onPermissionDeniedRef.current = onPermissionDenied;
|
|
7889
|
+
}, [onPermissionDenied]);
|
|
7874
7890
|
const loadData = (0, import_react49.useCallback)(async () => {
|
|
7875
7891
|
if (!mountedRef.current) return;
|
|
7876
7892
|
setLoading(true);
|
|
@@ -7881,7 +7897,7 @@ function useFormDetail(options) {
|
|
|
7881
7897
|
]);
|
|
7882
7898
|
if (!mountedRef.current) return;
|
|
7883
7899
|
if (!permResult || !hasViewOperation(permResult.operations, "view")) {
|
|
7884
|
-
|
|
7900
|
+
onPermissionDeniedRef.current?.();
|
|
7885
7901
|
}
|
|
7886
7902
|
const normalizedInfo = normalizeFormInstanceInfo(formResult, {
|
|
7887
7903
|
formUuid,
|
|
@@ -7890,7 +7906,9 @@ function useFormDetail(options) {
|
|
|
7890
7906
|
});
|
|
7891
7907
|
setPermissions(permResult);
|
|
7892
7908
|
setInstanceInfo(normalizedInfo);
|
|
7893
|
-
setFormData(
|
|
7909
|
+
setFormData(
|
|
7910
|
+
extractFormValues(formResult, fieldIdsKey ? fieldIdsKey.split("") : void 0)
|
|
7911
|
+
);
|
|
7894
7912
|
} catch (error) {
|
|
7895
7913
|
console.error("[useFormDetail] Failed to load data:", error);
|
|
7896
7914
|
if (mountedRef.current) {
|
|
@@ -7903,7 +7921,7 @@ function useFormDetail(options) {
|
|
|
7903
7921
|
setLoading(false);
|
|
7904
7922
|
}
|
|
7905
7923
|
}
|
|
7906
|
-
}, [request, formUuid, appType, formInstanceId,
|
|
7924
|
+
}, [request, formUuid, appType, formInstanceId, fieldIdsKey]);
|
|
7907
7925
|
(0, import_react49.useEffect)(() => {
|
|
7908
7926
|
loadData();
|
|
7909
7927
|
}, [loadData]);
|
|
@@ -7999,6 +8017,7 @@ function useProcessDetail(options) {
|
|
|
7999
8017
|
const [permissions, setPermissions] = (0, import_react50.useState)(null);
|
|
8000
8018
|
const [processDefinition, setProcessDefinition] = (0, import_react50.useState)(null);
|
|
8001
8019
|
const mountedRef = (0, import_react50.useRef)(true);
|
|
8020
|
+
const fieldIdsKey = fieldIds?.join("") ?? "";
|
|
8002
8021
|
(0, import_react50.useEffect)(() => {
|
|
8003
8022
|
mountedRef.current = true;
|
|
8004
8023
|
return () => {
|
|
@@ -8044,7 +8063,9 @@ function useProcessDetail(options) {
|
|
|
8044
8063
|
setApprovalTasks(approvalResult?.currentTasks ?? []);
|
|
8045
8064
|
setPermissions(permResult);
|
|
8046
8065
|
setInstanceInfo(formResult);
|
|
8047
|
-
setFormData(
|
|
8066
|
+
setFormData(
|
|
8067
|
+
extractFormValues(formResult, fieldIdsKey ? fieldIdsKey.split("") : void 0)
|
|
8068
|
+
);
|
|
8048
8069
|
if (permResult?.operations?.includes("VIEW_PROCESS") || permResult?.operations?.length > 0) {
|
|
8049
8070
|
try {
|
|
8050
8071
|
const progress = await getProcessProgress(request, formInstanceId);
|
|
@@ -8079,7 +8100,7 @@ function useProcessDetail(options) {
|
|
|
8079
8100
|
setLoading(false);
|
|
8080
8101
|
}
|
|
8081
8102
|
}
|
|
8082
|
-
}, [request, formUuid, appType, formInstanceId,
|
|
8103
|
+
}, [request, formUuid, appType, formInstanceId, fieldIdsKey]);
|
|
8083
8104
|
(0, import_react50.useEffect)(() => {
|
|
8084
8105
|
loadData();
|
|
8085
8106
|
}, [loadData]);
|
|
@@ -10111,6 +10132,74 @@ var fileToBase64 = (file) => new Promise((resolve, reject) => {
|
|
|
10111
10132
|
reader.onerror = reject;
|
|
10112
10133
|
reader.readAsDataURL(file);
|
|
10113
10134
|
});
|
|
10135
|
+
var normalizeBasePath2 = (basePath) => {
|
|
10136
|
+
const normalized = String(basePath || "").replace(/^\/+|\/+$/g, "");
|
|
10137
|
+
return normalized ? `/${normalized}` : "";
|
|
10138
|
+
};
|
|
10139
|
+
var inferBasePath2 = (appType) => {
|
|
10140
|
+
if (typeof window === "undefined") return "";
|
|
10141
|
+
const pathname = window.location?.pathname || "";
|
|
10142
|
+
const marker = `/${appType}/`;
|
|
10143
|
+
const markerIndex = pathname.indexOf(marker);
|
|
10144
|
+
if (markerIndex <= 0) return "";
|
|
10145
|
+
return pathname.slice(0, markerIndex);
|
|
10146
|
+
};
|
|
10147
|
+
var buildDefaultDetailUrl = ({
|
|
10148
|
+
appType,
|
|
10149
|
+
formUuid,
|
|
10150
|
+
formType,
|
|
10151
|
+
formInstanceId,
|
|
10152
|
+
basePath
|
|
10153
|
+
}) => {
|
|
10154
|
+
const prefix = normalizeBasePath2(basePath ?? inferBasePath2(appType));
|
|
10155
|
+
const detailType = formType === "process" ? "processDetail" : "formDetail";
|
|
10156
|
+
return `${prefix}/${appType}/${detailType}/${formUuid}?formInstId=${encodeURIComponent(formInstanceId)}`;
|
|
10157
|
+
};
|
|
10158
|
+
var getHeaderValue = (headers, key) => {
|
|
10159
|
+
if (!headers) return "";
|
|
10160
|
+
if (typeof headers.get === "function")
|
|
10161
|
+
return headers.get(key) || headers.get(key.toLowerCase()) || "";
|
|
10162
|
+
return headers[key] || headers[key.toLowerCase()] || "";
|
|
10163
|
+
};
|
|
10164
|
+
var resolveDownloadFilename = (headers, fallbackName) => {
|
|
10165
|
+
const disposition = getHeaderValue(headers, "content-disposition");
|
|
10166
|
+
if (typeof disposition !== "string") return fallbackName;
|
|
10167
|
+
const matchStar = disposition.match(/filename\*=UTF-8''([^;]+)/i);
|
|
10168
|
+
if (matchStar?.[1]) return decodeURIComponent(matchStar[1]);
|
|
10169
|
+
const match = disposition.match(/filename="?([^";]+)"?/i);
|
|
10170
|
+
if (match?.[1]) return decodeURIComponent(match[1]);
|
|
10171
|
+
return fallbackName;
|
|
10172
|
+
};
|
|
10173
|
+
var downloadBlobResponse = async (response, fallbackName) => {
|
|
10174
|
+
if (typeof window === "undefined" || typeof document === "undefined") return;
|
|
10175
|
+
const headers = response?.headers;
|
|
10176
|
+
const payload = response?.data ?? response;
|
|
10177
|
+
const contentType = getHeaderValue(headers, "content-type") || payload?.type || "";
|
|
10178
|
+
const hasBlob = typeof Blob !== "undefined";
|
|
10179
|
+
if (hasBlob && payload instanceof Blob && String(contentType).includes("application/json")) {
|
|
10180
|
+
const text = await payload.text();
|
|
10181
|
+
try {
|
|
10182
|
+
const json = JSON.parse(text);
|
|
10183
|
+
throw new Error(json?.message || "\u4E0B\u8F7D\u5931\u8D25");
|
|
10184
|
+
} catch (error) {
|
|
10185
|
+
if (error instanceof SyntaxError) throw new Error("\u4E0B\u8F7D\u5931\u8D25");
|
|
10186
|
+
if (error instanceof Error) throw error;
|
|
10187
|
+
throw new Error("\u4E0B\u8F7D\u5931\u8D25");
|
|
10188
|
+
}
|
|
10189
|
+
}
|
|
10190
|
+
const blob = hasBlob && payload instanceof Blob ? payload : hasBlob && payload instanceof ArrayBuffer ? new Blob([payload], { type: contentType || "application/octet-stream" }) : new Blob([typeof payload === "string" ? payload : JSON.stringify(payload ?? "")], {
|
|
10191
|
+
type: contentType || "application/octet-stream"
|
|
10192
|
+
});
|
|
10193
|
+
const filename = resolveDownloadFilename(headers, fallbackName);
|
|
10194
|
+
const url = window.URL.createObjectURL(blob);
|
|
10195
|
+
const anchor = document.createElement("a");
|
|
10196
|
+
anchor.href = url;
|
|
10197
|
+
anchor.download = filename;
|
|
10198
|
+
document.body.appendChild(anchor);
|
|
10199
|
+
anchor.click();
|
|
10200
|
+
anchor.remove();
|
|
10201
|
+
window.URL.revokeObjectURL(url);
|
|
10202
|
+
};
|
|
10114
10203
|
function FilterGroupEditor({
|
|
10115
10204
|
group,
|
|
10116
10205
|
fields,
|
|
@@ -10270,12 +10359,16 @@ function ResizableColumnTitle({
|
|
|
10270
10359
|
"span",
|
|
10271
10360
|
{
|
|
10272
10361
|
"aria-hidden": true,
|
|
10273
|
-
className: "absolute -right-
|
|
10274
|
-
|
|
10362
|
+
className: "absolute -right-3 top-0 h-full w-4 cursor-col-resize after:absolute after:right-1 after:top-1/2 after:h-5 after:w-0.5 after:-translate-y-1/2 after:rounded after:bg-transparent hover:after:bg-ant-color-primary",
|
|
10363
|
+
onClickCapture: (event) => {
|
|
10275
10364
|
event.preventDefault();
|
|
10276
10365
|
event.stopPropagation();
|
|
10277
10366
|
},
|
|
10278
|
-
|
|
10367
|
+
onDoubleClickCapture: (event) => {
|
|
10368
|
+
event.preventDefault();
|
|
10369
|
+
event.stopPropagation();
|
|
10370
|
+
},
|
|
10371
|
+
onMouseDownCapture: handleMouseDown,
|
|
10279
10372
|
title: "\u62D6\u62FD\u8C03\u6574\u5217\u5BBD"
|
|
10280
10373
|
}
|
|
10281
10374
|
)
|
|
@@ -10284,6 +10377,7 @@ function ResizableColumnTitle({
|
|
|
10284
10377
|
var DataManagementList = ({
|
|
10285
10378
|
appType,
|
|
10286
10379
|
formUuid,
|
|
10380
|
+
detailBasePath,
|
|
10287
10381
|
menuFormUuid,
|
|
10288
10382
|
readonly = false,
|
|
10289
10383
|
fullHeight = true,
|
|
@@ -10330,6 +10424,7 @@ var DataManagementList = ({
|
|
|
10330
10424
|
const [importOpen, setImportOpen] = (0, import_react61.useState)(false);
|
|
10331
10425
|
const [importPreview, setImportPreview] = (0, import_react61.useState)([]);
|
|
10332
10426
|
const [importBase64, setImportBase64] = (0, import_react61.useState)("");
|
|
10427
|
+
const [templateDownloading, setTemplateDownloading] = (0, import_react61.useState)(false);
|
|
10333
10428
|
const [recordsOpen, setRecordsOpen] = (0, import_react61.useState)(false);
|
|
10334
10429
|
const [recordTab, setRecordTab] = (0, import_react61.useState)("export");
|
|
10335
10430
|
const [transferRecords, setTransferRecords] = (0, import_react61.useState)([]);
|
|
@@ -10425,7 +10520,6 @@ var DataManagementList = ({
|
|
|
10425
10520
|
}).catch(() => void 0);
|
|
10426
10521
|
if (!mounted) return;
|
|
10427
10522
|
const resolved = normalizeColumnConfig(saved, allFields);
|
|
10428
|
-
const resolvedDetailOpenMode = detailPageUrlBuilder ? resolved.detailOpenMode : "drawer";
|
|
10429
10523
|
const nextSearchKeyWord = saved?.filter?.searchKeyWord || "";
|
|
10430
10524
|
const nextFilterGroup = hydrateFilterGroup(saved?.filter?.group);
|
|
10431
10525
|
setFields(allFields);
|
|
@@ -10436,7 +10530,7 @@ var DataManagementList = ({
|
|
|
10436
10530
|
setLockFieldIds(resolved.lockFieldIds);
|
|
10437
10531
|
setSort(resolved.sort);
|
|
10438
10532
|
setDensity(resolved.density);
|
|
10439
|
-
setDetailOpenMode(
|
|
10533
|
+
setDetailOpenMode(resolved.detailOpenMode);
|
|
10440
10534
|
setPageSize(resolved.pageSize);
|
|
10441
10535
|
setSearchKeyWord(nextSearchKeyWord);
|
|
10442
10536
|
setFilterGroup(nextFilterGroup);
|
|
@@ -10458,7 +10552,7 @@ var DataManagementList = ({
|
|
|
10458
10552
|
return () => {
|
|
10459
10553
|
mounted = false;
|
|
10460
10554
|
};
|
|
10461
|
-
}, [appType, configScope,
|
|
10555
|
+
}, [appType, configScope, formUuid, loadData, menuFormUuid, request]);
|
|
10462
10556
|
const persistConfig = (0, import_react61.useCallback)(
|
|
10463
10557
|
async (patch) => {
|
|
10464
10558
|
const nextConfig = { ...config, ...patch };
|
|
@@ -10524,20 +10618,23 @@ var DataManagementList = ({
|
|
|
10524
10618
|
import_antd32.message.warning("\u5F53\u524D\u8BB0\u5F55\u7F3A\u5C11\u5B9E\u4F8B ID\uFF0C\u65E0\u6CD5\u6253\u5F00\u8BE6\u60C5");
|
|
10525
10619
|
return;
|
|
10526
10620
|
}
|
|
10527
|
-
if (detailOpenMode === "newPage" &&
|
|
10528
|
-
const detailUrl = detailPageUrlBuilder({ record, formInstanceId: String(formInstanceId) })
|
|
10621
|
+
if (detailOpenMode === "newPage" && typeof window !== "undefined") {
|
|
10622
|
+
const detailUrl = detailPageUrlBuilder?.({ record, formInstanceId: String(formInstanceId) }) || buildDefaultDetailUrl({
|
|
10623
|
+
appType,
|
|
10624
|
+
formUuid,
|
|
10625
|
+
formType,
|
|
10626
|
+
formInstanceId: String(formInstanceId),
|
|
10627
|
+
basePath: detailBasePath
|
|
10628
|
+
});
|
|
10529
10629
|
if (detailUrl) {
|
|
10530
10630
|
window.open(detailUrl, "_blank");
|
|
10531
10631
|
return;
|
|
10532
10632
|
}
|
|
10533
10633
|
}
|
|
10534
|
-
if (detailOpenMode === "newPage" && !detailPageUrlBuilder) {
|
|
10535
|
-
setDetailOpenMode("drawer");
|
|
10536
|
-
}
|
|
10537
10634
|
setActiveRecord(record);
|
|
10538
10635
|
setDetailOpen(true);
|
|
10539
10636
|
},
|
|
10540
|
-
[detailOpenMode, detailPageUrlBuilder]
|
|
10637
|
+
[appType, detailBasePath, detailOpenMode, detailPageUrlBuilder, formType, formUuid]
|
|
10541
10638
|
);
|
|
10542
10639
|
const handleDelete = (0, import_react61.useCallback)(
|
|
10543
10640
|
async (ids) => {
|
|
@@ -10619,6 +10716,19 @@ var DataManagementList = ({
|
|
|
10619
10716
|
setExporting(false);
|
|
10620
10717
|
}
|
|
10621
10718
|
};
|
|
10719
|
+
const handleDownloadTemplate = async () => {
|
|
10720
|
+
setTemplateDownloading(true);
|
|
10721
|
+
try {
|
|
10722
|
+
const response = await downloadDataManagementImportTemplate(request, { appType, formUuid });
|
|
10723
|
+
await downloadBlobResponse(response, `\u5BFC\u5165\u6A21\u677F-${formUuid}.xlsx`);
|
|
10724
|
+
import_antd32.message.success("\u6A21\u677F\u4E0B\u8F7D\u5DF2\u5F00\u59CB");
|
|
10725
|
+
} catch (error) {
|
|
10726
|
+
console.error("[DataManagementList] download template failed:", error);
|
|
10727
|
+
import_antd32.message.error(error instanceof Error ? error.message : "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u5931\u8D25");
|
|
10728
|
+
} finally {
|
|
10729
|
+
setTemplateDownloading(false);
|
|
10730
|
+
}
|
|
10731
|
+
};
|
|
10622
10732
|
const loadTransferRecords = async (type) => {
|
|
10623
10733
|
setRecordTab(type);
|
|
10624
10734
|
setRecordsOpen(true);
|
|
@@ -10670,7 +10780,6 @@ var DataManagementList = ({
|
|
|
10670
10780
|
width: columnWidth,
|
|
10671
10781
|
fixed: lockFieldIds.includes(field.fieldId) ? "left" : void 0,
|
|
10672
10782
|
ellipsis: true,
|
|
10673
|
-
sorter: true,
|
|
10674
10783
|
render: (value) => renderCellValue(value, field)
|
|
10675
10784
|
};
|
|
10676
10785
|
}) || [];
|
|
@@ -10907,18 +11016,11 @@ var DataManagementList = ({
|
|
|
10907
11016
|
showSizeChanger: true,
|
|
10908
11017
|
showTotal: (count) => `\u5171 ${count} \u6761`
|
|
10909
11018
|
},
|
|
10910
|
-
onChange: (pagination
|
|
10911
|
-
const sorters = Array.isArray(sorter) ? sorter : [sorter];
|
|
10912
|
-
const nextSort = sorters.filter((item) => item?.field && item?.order).map((item) => ({
|
|
10913
|
-
id: String(item.field),
|
|
10914
|
-
isAsc: item.order === "ascend" ? "y" : "n"
|
|
10915
|
-
}));
|
|
10916
|
-
setSort(nextSort);
|
|
10917
|
-
persistConfig({ sort: nextSort });
|
|
11019
|
+
onChange: (pagination) => {
|
|
10918
11020
|
loadData({
|
|
10919
11021
|
current: pagination.current || 1,
|
|
10920
11022
|
pageSize: pagination.pageSize || pageSize,
|
|
10921
|
-
sort
|
|
11023
|
+
sort
|
|
10922
11024
|
});
|
|
10923
11025
|
}
|
|
10924
11026
|
}
|
|
@@ -10963,27 +11065,6 @@ var DataManagementList = ({
|
|
|
10963
11065
|
}
|
|
10964
11066
|
)
|
|
10965
11067
|
] }),
|
|
10966
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
|
|
10967
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u5217\u5BBD" }),
|
|
10968
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "grid max-h-56 gap-2 overflow-auto rounded-lg border border-ant-border-secondary p-3 md:grid-cols-2", children: showFields.map((fieldId) => {
|
|
10969
|
-
const field = fields.find((item) => item.fieldId === fieldId);
|
|
10970
|
-
const width = widths[fieldId] || field?.width || 160;
|
|
10971
|
-
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
|
|
10972
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "min-w-0 truncate text-sm text-ant-color-text-secondary", children: field?.label || fieldId }),
|
|
10973
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
10974
|
-
import_antd32.InputNumber,
|
|
10975
|
-
{
|
|
10976
|
-
min: 96,
|
|
10977
|
-
max: 520,
|
|
10978
|
-
value: width,
|
|
10979
|
-
addonAfter: "px",
|
|
10980
|
-
onChange: (value) => updateColumnWidth(fieldId, Number(value || 160)),
|
|
10981
|
-
onBlur: () => commitColumnWidth(fieldId, widthsRef.current[fieldId] || width)
|
|
10982
|
-
}
|
|
10983
|
-
)
|
|
10984
|
-
] }, fieldId);
|
|
10985
|
-
}) })
|
|
10986
|
-
] }),
|
|
10987
11068
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
|
|
10988
11069
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u51BB\u7ED3\u5217" }),
|
|
10989
11070
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
@@ -11065,10 +11146,10 @@ var DataManagementList = ({
|
|
|
11065
11146
|
{
|
|
11066
11147
|
block: true,
|
|
11067
11148
|
value: detailOpenMode,
|
|
11068
|
-
options:
|
|
11149
|
+
options: [
|
|
11069
11150
|
{ label: "\u62BD\u5C49", value: "drawer" },
|
|
11070
11151
|
{ label: "\u65B0\u9875", value: "newPage" }
|
|
11071
|
-
]
|
|
11152
|
+
],
|
|
11072
11153
|
onChange: (value) => setDetailOpenMode(value)
|
|
11073
11154
|
}
|
|
11074
11155
|
)
|
|
@@ -11174,6 +11255,21 @@ var DataManagementList = ({
|
|
|
11174
11255
|
okButtonProps: { disabled: !importBase64 },
|
|
11175
11256
|
okText: "\u786E\u8BA4\u5BFC\u5165",
|
|
11176
11257
|
children: [
|
|
11258
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "mb-3 flex flex-col gap-3 rounded-lg border border-ant-border-secondary bg-ant-bg-container px-4 py-3 md:flex-row md:items-center md:justify-between", children: [
|
|
11259
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
|
|
11260
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "text-sm font-medium text-ant-color-text", children: "\u5BFC\u5165\u6A21\u677F" }),
|
|
11261
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "mt-1 text-xs text-ant-color-text-secondary", children: "\u5148\u4E0B\u8F7D\u6A21\u677F\u586B\u5199\u6570\u636E\uFF0C\u518D\u4E0A\u4F20 Excel \u6587\u4EF6\u5BFC\u5165" })
|
|
11262
|
+
] }),
|
|
11263
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
11264
|
+
import_antd32.Button,
|
|
11265
|
+
{
|
|
11266
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_icons11.DownloadOutlined, {}),
|
|
11267
|
+
loading: templateDownloading,
|
|
11268
|
+
onClick: handleDownloadTemplate,
|
|
11269
|
+
children: "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F"
|
|
11270
|
+
}
|
|
11271
|
+
)
|
|
11272
|
+
] }),
|
|
11177
11273
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
11178
11274
|
import_antd32.Upload.Dragger,
|
|
11179
11275
|
{
|
|
@@ -12206,6 +12302,7 @@ var ProcessDetailTemplate = (props) => {
|
|
|
12206
12302
|
defineFormSchema,
|
|
12207
12303
|
deleteDataManagementRows,
|
|
12208
12304
|
deleteFormData,
|
|
12305
|
+
downloadDataManagementImportTemplate,
|
|
12209
12306
|
evaluateEffects,
|
|
12210
12307
|
exportDataManagementRows,
|
|
12211
12308
|
extractFormValues,
|