sy-form-components 0.2.6 → 0.2.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/dist/index.d.mts +305 -6
- package/dist/index.d.ts +305 -6
- package/dist/index.js +3044 -630
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3095 -653
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -440,7 +440,7 @@ type TaskStatus = 'pending' | 'approved' | 'rejected' | 'returned' | 'suspended'
|
|
|
440
440
|
/** 流程任务节点类型 */
|
|
441
441
|
type ProcessNodeType = 'start' | 'approval' | 'copy' | 'end' | 'system' | 'originator_return' | 'callback_wait';
|
|
442
442
|
/** 审批操作类型 */
|
|
443
|
-
type ApprovalActionType = 'agree' | 'rejected' | 'transfer' | 'return' | 'save' | 'withdraw';
|
|
443
|
+
type ApprovalActionType = 'agree' | 'approved' | 'rejected' | 'reject' | 'transfer' | 'return' | 'save' | 'withdraw' | 'resubmit' | 'callback';
|
|
444
444
|
/** 流程操作动作定义 */
|
|
445
445
|
interface ProcessAction {
|
|
446
446
|
action: ApprovalActionType;
|
|
@@ -448,8 +448,14 @@ interface ProcessAction {
|
|
|
448
448
|
zh_CN: string;
|
|
449
449
|
en_US?: string;
|
|
450
450
|
};
|
|
451
|
+
text?: {
|
|
452
|
+
zh_CN?: string;
|
|
453
|
+
en_US?: string;
|
|
454
|
+
};
|
|
455
|
+
hidden?: boolean;
|
|
451
456
|
remark?: {
|
|
452
457
|
popUp: boolean;
|
|
458
|
+
required?: boolean;
|
|
453
459
|
content?: {
|
|
454
460
|
zh_CN: string;
|
|
455
461
|
en_US?: string;
|
|
@@ -475,6 +481,8 @@ interface ProcessTask {
|
|
|
475
481
|
createdAt?: string;
|
|
476
482
|
actionAt?: string;
|
|
477
483
|
actions?: ProcessAction[];
|
|
484
|
+
isSimulated?: boolean;
|
|
485
|
+
multiApproveMode?: 'and' | 'or' | string;
|
|
478
486
|
}
|
|
479
487
|
/** 流程基本信息 */
|
|
480
488
|
interface ProcessBasicInfo {
|
|
@@ -488,6 +496,7 @@ interface ProcessBasicInfo {
|
|
|
488
496
|
originatorDepartment?: string;
|
|
489
497
|
createdAt: string;
|
|
490
498
|
currentTask?: ProcessTask;
|
|
499
|
+
isExecuting?: boolean;
|
|
491
500
|
}
|
|
492
501
|
/** 审批权限 */
|
|
493
502
|
interface ApprovalPermission {
|
|
@@ -502,6 +511,9 @@ interface ApprovalPermission {
|
|
|
502
511
|
interface ReturnableNode {
|
|
503
512
|
nodeId: string;
|
|
504
513
|
nodeName: string;
|
|
514
|
+
id?: string;
|
|
515
|
+
name?: string;
|
|
516
|
+
type?: string;
|
|
505
517
|
}
|
|
506
518
|
/** 流程预览路由 */
|
|
507
519
|
interface ProcessRoute {
|
|
@@ -550,6 +562,18 @@ interface ChangeRecord {
|
|
|
550
562
|
operatorId: string;
|
|
551
563
|
operatorName: string;
|
|
552
564
|
operatedAt: string;
|
|
565
|
+
operatorDepartmentName?: string;
|
|
566
|
+
operationId?: string;
|
|
567
|
+
changeType?: 'create' | 'update' | 'delete' | string;
|
|
568
|
+
changeSource?: string;
|
|
569
|
+
changedCount?: number;
|
|
570
|
+
createdAt?: string;
|
|
571
|
+
changes?: Array<{
|
|
572
|
+
fieldKey?: string;
|
|
573
|
+
fieldLabel?: string;
|
|
574
|
+
beforeValue?: any;
|
|
575
|
+
afterValue?: any;
|
|
576
|
+
}>;
|
|
553
577
|
}
|
|
554
578
|
/** 变更记录列表响应 */
|
|
555
579
|
interface ChangeRecordListResponse {
|
|
@@ -758,6 +782,11 @@ declare function getReturnableNodes(request: FormRuntimeApi['request'], taskId:
|
|
|
758
782
|
declare function previewProcess(request: FormRuntimeApi['request'], params: PreviewParams): Promise<ProcessRoute[]>;
|
|
759
783
|
/** 获取流程定义 */
|
|
760
784
|
declare function getProcessDefinition(request: FormRuntimeApi['request'], formUuid: string): Promise<ProcessDefinition>;
|
|
785
|
+
/** 触发回调等待任务 */
|
|
786
|
+
declare function triggerCallbackTask(request: FormRuntimeApi['request'], params: {
|
|
787
|
+
taskId: string;
|
|
788
|
+
payload?: Record<string, any>;
|
|
789
|
+
}): Promise<any>;
|
|
761
790
|
/** 获取表单实例数据 */
|
|
762
791
|
declare function getFormData(request: FormRuntimeApi['request'], params: FormDataQueryParams): Promise<FormInstanceData>;
|
|
763
792
|
/** 删除表单数据 */
|
|
@@ -767,6 +796,131 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
767
796
|
/** 获取视图权限摘要 */
|
|
768
797
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
769
798
|
|
|
799
|
+
type DataManagementConfigScope = 'global' | 'personal';
|
|
800
|
+
type DataManagementDensity = 'compact' | 'middle' | 'loose';
|
|
801
|
+
type FilterLogic = 'AND' | 'OR';
|
|
802
|
+
interface DataManagementField extends FieldDefinition {
|
|
803
|
+
id: string;
|
|
804
|
+
fieldId: string;
|
|
805
|
+
componentName: string;
|
|
806
|
+
label: string;
|
|
807
|
+
width?: number;
|
|
808
|
+
system?: boolean;
|
|
809
|
+
processOnly?: boolean;
|
|
810
|
+
displayable?: boolean;
|
|
811
|
+
}
|
|
812
|
+
interface DataManagementFilterRule {
|
|
813
|
+
id: string;
|
|
814
|
+
key: string;
|
|
815
|
+
operator: string;
|
|
816
|
+
value: any;
|
|
817
|
+
componentName?: string;
|
|
818
|
+
}
|
|
819
|
+
interface DataManagementFilterGroup {
|
|
820
|
+
id: string;
|
|
821
|
+
logic: FilterLogic;
|
|
822
|
+
rules: DataManagementFilterRule[];
|
|
823
|
+
conditions: DataManagementFilterGroup[];
|
|
824
|
+
}
|
|
825
|
+
interface DataManagementSort {
|
|
826
|
+
id: string;
|
|
827
|
+
isAsc: 'y' | 'n';
|
|
828
|
+
}
|
|
829
|
+
interface DataManagementConfig {
|
|
830
|
+
showFields?: string[];
|
|
831
|
+
widths?: Record<string, number>;
|
|
832
|
+
lockFieldIds?: string[];
|
|
833
|
+
sort?: DataManagementSort[];
|
|
834
|
+
filter?: {
|
|
835
|
+
searchKeyWord?: string;
|
|
836
|
+
group?: DataManagementFilterGroup;
|
|
837
|
+
};
|
|
838
|
+
density?: DataManagementDensity;
|
|
839
|
+
detailOpenMode?: 'drawer' | 'newPage';
|
|
840
|
+
pageSize?: number;
|
|
841
|
+
[key: string]: any;
|
|
842
|
+
}
|
|
843
|
+
interface DataManagementQuery {
|
|
844
|
+
appType: string;
|
|
845
|
+
formUuid: string;
|
|
846
|
+
filters?: DataManagementFilterGroup;
|
|
847
|
+
rawFilters?: string;
|
|
848
|
+
conditionType?: FilterLogic;
|
|
849
|
+
searchKeyWord?: string;
|
|
850
|
+
currentPage?: number;
|
|
851
|
+
pageSize?: number;
|
|
852
|
+
order?: DataManagementSort[];
|
|
853
|
+
instanceStatus?: string;
|
|
854
|
+
}
|
|
855
|
+
interface DataManagementListResult {
|
|
856
|
+
records: any[];
|
|
857
|
+
total: number;
|
|
858
|
+
}
|
|
859
|
+
interface DataManagementApiOptions {
|
|
860
|
+
appType: string;
|
|
861
|
+
formUuid: string;
|
|
862
|
+
menuFormUuid?: string;
|
|
863
|
+
scope?: DataManagementConfigScope;
|
|
864
|
+
}
|
|
865
|
+
declare const getSystemFieldsForFormType: (formType?: string) => DataManagementField[];
|
|
866
|
+
declare const normalizeDataManagementFields: (payload: any) => {
|
|
867
|
+
fields: DataManagementField[];
|
|
868
|
+
formType?: string;
|
|
869
|
+
};
|
|
870
|
+
declare const normalizeDataManagementList: (payload: any) => DataManagementListResult;
|
|
871
|
+
declare const buildFilterPayload: (group?: DataManagementFilterGroup) => string | undefined;
|
|
872
|
+
declare const normalizeColumnConfig: (cfg: DataManagementConfig | undefined, fields: DataManagementField[]) => Required<Pick<DataManagementConfig, "showFields" | "widths" | "lockFieldIds" | "sort">> & {
|
|
873
|
+
density: DataManagementDensity;
|
|
874
|
+
detailOpenMode: "drawer" | "newPage";
|
|
875
|
+
pageSize: number;
|
|
876
|
+
};
|
|
877
|
+
declare function getDataManagementSchema(request: FormRuntimeApi['request'], params: {
|
|
878
|
+
appType: string;
|
|
879
|
+
formUuid: string;
|
|
880
|
+
}): Promise<{
|
|
881
|
+
fields: DataManagementField[];
|
|
882
|
+
formType?: string;
|
|
883
|
+
}>;
|
|
884
|
+
declare function getDataManagementConfig(request: FormRuntimeApi['request'], options: DataManagementApiOptions): Promise<DataManagementConfig | undefined>;
|
|
885
|
+
declare function saveDataManagementConfig(request: FormRuntimeApi['request'], options: DataManagementApiOptions & {
|
|
886
|
+
config: DataManagementConfig;
|
|
887
|
+
}): Promise<any>;
|
|
888
|
+
declare function advancedSearchDataManagement(request: FormRuntimeApi['request'], query: DataManagementQuery): Promise<DataManagementListResult>;
|
|
889
|
+
declare function deleteDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
890
|
+
appType: string;
|
|
891
|
+
formUuid: string;
|
|
892
|
+
formInstanceIds: string[];
|
|
893
|
+
}): Promise<any>;
|
|
894
|
+
declare function batchApproveDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
895
|
+
appType: string;
|
|
896
|
+
formUuid: string;
|
|
897
|
+
formInstanceIds: string[];
|
|
898
|
+
action: 'approved' | 'rejected';
|
|
899
|
+
comments?: string;
|
|
900
|
+
}): Promise<any>;
|
|
901
|
+
declare function exportDataManagementRows(request: FormRuntimeApi['request'], params: DataManagementQuery & {
|
|
902
|
+
exportAll?: 'y' | 'n';
|
|
903
|
+
embedImages?: 'y' | 'n';
|
|
904
|
+
exportFields?: string[];
|
|
905
|
+
}): Promise<Blob | RuntimeResponse<any>>;
|
|
906
|
+
declare function importPreviewDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
907
|
+
appType: string;
|
|
908
|
+
formUuid: string;
|
|
909
|
+
fileBase64: string;
|
|
910
|
+
}): Promise<any>;
|
|
911
|
+
declare function importDataManagementRows(request: FormRuntimeApi['request'], params: {
|
|
912
|
+
appType: string;
|
|
913
|
+
formUuid: string;
|
|
914
|
+
fileBase64: string;
|
|
915
|
+
}): Promise<any>;
|
|
916
|
+
declare function getDataManagementTransferRecords(request: FormRuntimeApi['request'], params: {
|
|
917
|
+
appType: string;
|
|
918
|
+
formUuid: string;
|
|
919
|
+
type: 'import' | 'export';
|
|
920
|
+
currentPage?: number;
|
|
921
|
+
pageSize?: number;
|
|
922
|
+
}): Promise<DataManagementListResult>;
|
|
923
|
+
|
|
770
924
|
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
771
925
|
|
|
772
926
|
declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
@@ -1011,6 +1165,7 @@ interface UseApprovalActionsReturn {
|
|
|
1011
1165
|
withdraw: (reason?: string) => Promise<boolean>;
|
|
1012
1166
|
save: () => Promise<boolean>;
|
|
1013
1167
|
resubmit: (comments?: string) => Promise<boolean>;
|
|
1168
|
+
callbackTask: (payload?: Record<string, any>) => Promise<boolean>;
|
|
1014
1169
|
isLoading: boolean;
|
|
1015
1170
|
currentAction: string | null;
|
|
1016
1171
|
returnableNodes: ReturnableNode[];
|
|
@@ -1088,6 +1243,11 @@ declare function defineFormSchema(schema: FormSchema): FormSchema;
|
|
|
1088
1243
|
|
|
1089
1244
|
declare const extractFormValues: (formInstance: unknown, fieldIds?: readonly string[]) => Record<string, any> | null;
|
|
1090
1245
|
|
|
1246
|
+
declare function normalizeOperation(operation?: string): string;
|
|
1247
|
+
declare function hasViewOperation(operations: string[] | undefined, expected: string): boolean;
|
|
1248
|
+
declare function normalizeFieldBehaviors(permissions: ViewPermissionSummary | null | undefined, mode: 'readonly' | 'edit'): Record<string, FieldBehavior>;
|
|
1249
|
+
declare function hasViewPermission(permissions: ViewPermissionSummary | null | undefined): boolean;
|
|
1250
|
+
|
|
1091
1251
|
interface FormSummaryCardProps {
|
|
1092
1252
|
title?: string;
|
|
1093
1253
|
formInstanceId?: string;
|
|
@@ -1118,23 +1278,64 @@ interface ChangeRecordsProps {
|
|
|
1118
1278
|
}
|
|
1119
1279
|
declare const ChangeRecords: React__default.FC<ChangeRecordsProps>;
|
|
1120
1280
|
|
|
1281
|
+
interface RecordChangePanelProps {
|
|
1282
|
+
records?: ChangeRecord[];
|
|
1283
|
+
loading?: boolean;
|
|
1284
|
+
total?: number;
|
|
1285
|
+
page?: number;
|
|
1286
|
+
pageSize?: number;
|
|
1287
|
+
defaultExpanded?: boolean;
|
|
1288
|
+
hasMore?: boolean;
|
|
1289
|
+
onLoadMore?: () => void;
|
|
1290
|
+
onRefresh?: () => void;
|
|
1291
|
+
onExpand?: () => void;
|
|
1292
|
+
onPageChange?: (page: number, pageSize: number) => void;
|
|
1293
|
+
className?: string;
|
|
1294
|
+
}
|
|
1295
|
+
declare const RecordChangePanel: React__default.FC<RecordChangePanelProps>;
|
|
1296
|
+
|
|
1121
1297
|
interface ApprovalTimelineProps {
|
|
1122
1298
|
tasks: ProcessTask[];
|
|
1123
1299
|
className?: string;
|
|
1124
1300
|
renderNode?: (task: ProcessTask, index: number) => React__default.ReactNode;
|
|
1125
1301
|
showRemarks?: boolean;
|
|
1126
1302
|
compactMode?: boolean;
|
|
1303
|
+
showApproverInfo?: boolean;
|
|
1127
1304
|
}
|
|
1128
1305
|
declare const ApprovalTimeline: React__default.FC<ApprovalTimelineProps>;
|
|
1129
1306
|
|
|
1307
|
+
interface ApprovalActionBarProps {
|
|
1308
|
+
actions: ProcessAction[];
|
|
1309
|
+
onApprove?: (comments?: string) => Promise<void> | void;
|
|
1310
|
+
onReject?: (comments?: string) => Promise<void> | void;
|
|
1311
|
+
onTransfer?: (userId: string, reason?: string) => Promise<void> | void;
|
|
1312
|
+
onReturn?: (nodeId: string, reason?: string) => Promise<void> | void;
|
|
1313
|
+
onWithdraw?: (reason?: string) => Promise<void> | void;
|
|
1314
|
+
onSave?: () => Promise<void> | void;
|
|
1315
|
+
onResubmit?: (comments?: string) => Promise<void> | void;
|
|
1316
|
+
onCallback?: () => Promise<void> | void;
|
|
1317
|
+
returnableNodes?: ReturnableNode[];
|
|
1318
|
+
onLoadReturnableNodes?: () => Promise<void> | void;
|
|
1319
|
+
renderTransferSelector?: (props: {
|
|
1320
|
+
value?: string;
|
|
1321
|
+
onChange: (userId: string) => void;
|
|
1322
|
+
}) => React__default.ReactNode;
|
|
1323
|
+
renderReturnNodeLabel?: (node: ReturnableNode) => React__default.ReactNode;
|
|
1324
|
+
renderActionModalExtra?: (action: ProcessAction) => React__default.ReactNode;
|
|
1325
|
+
maxMobileButtons?: number;
|
|
1326
|
+
className?: string;
|
|
1327
|
+
inDrawer?: boolean;
|
|
1328
|
+
}
|
|
1329
|
+
declare const ApprovalActionBar: React__default.FC<ApprovalActionBarProps>;
|
|
1330
|
+
|
|
1130
1331
|
interface ApprovalActionsProps {
|
|
1131
1332
|
actions: ProcessAction[];
|
|
1132
|
-
onApprove?: (comments?: string) => Promise<void
|
|
1133
|
-
onReject?: (comments?: string) => Promise<void
|
|
1333
|
+
onApprove?: (comments?: string) => Promise<void> | void;
|
|
1334
|
+
onReject?: (comments?: string) => Promise<void> | void;
|
|
1134
1335
|
onTransfer?: () => void;
|
|
1135
1336
|
onReturn?: () => void;
|
|
1136
|
-
onWithdraw?: (reason?: string) => Promise<void
|
|
1137
|
-
onSave?: () => Promise<void
|
|
1337
|
+
onWithdraw?: (reason?: string) => Promise<void> | void;
|
|
1338
|
+
onSave?: () => Promise<void> | void;
|
|
1138
1339
|
layout?: 'horizontal' | 'vertical';
|
|
1139
1340
|
maxVisible?: number;
|
|
1140
1341
|
className?: string;
|
|
@@ -1152,8 +1353,12 @@ interface ActionConfig {
|
|
|
1152
1353
|
confirm?: {
|
|
1153
1354
|
title: string;
|
|
1154
1355
|
content: string;
|
|
1356
|
+
okText?: string;
|
|
1357
|
+
cancelText?: string;
|
|
1155
1358
|
};
|
|
1156
1359
|
icon?: React__default.ReactNode;
|
|
1360
|
+
priority?: number;
|
|
1361
|
+
placement?: 'left' | 'right';
|
|
1157
1362
|
}
|
|
1158
1363
|
interface FormActionBarProps {
|
|
1159
1364
|
actions: ActionConfig[];
|
|
@@ -1162,6 +1367,54 @@ interface FormActionBarProps {
|
|
|
1162
1367
|
}
|
|
1163
1368
|
declare const FormActionBar: React__default.FC<FormActionBarProps>;
|
|
1164
1369
|
|
|
1370
|
+
interface StickyActionBarProps {
|
|
1371
|
+
actions: ActionConfig[];
|
|
1372
|
+
className?: string;
|
|
1373
|
+
maxMobileButtons?: number;
|
|
1374
|
+
layoutMode?: 'default' | 'approval';
|
|
1375
|
+
inDrawer?: boolean;
|
|
1376
|
+
maxWidth?: number | string;
|
|
1377
|
+
position?: 'sticky' | 'fixed' | 'inline';
|
|
1378
|
+
}
|
|
1379
|
+
declare const StickyActionBar: React__default.FC<StickyActionBarProps>;
|
|
1380
|
+
|
|
1381
|
+
interface RuntimePageShellProps {
|
|
1382
|
+
children: React__default.ReactNode;
|
|
1383
|
+
actions?: React__default.ReactNode;
|
|
1384
|
+
loading?: boolean;
|
|
1385
|
+
loadingTip?: string;
|
|
1386
|
+
accessDenied?: boolean;
|
|
1387
|
+
error?: React__default.ReactNode;
|
|
1388
|
+
empty?: React__default.ReactNode;
|
|
1389
|
+
className?: string;
|
|
1390
|
+
contentClassName?: string;
|
|
1391
|
+
maxWidth?: number | string;
|
|
1392
|
+
inDrawer?: boolean;
|
|
1393
|
+
}
|
|
1394
|
+
declare const RuntimePageShell: React__default.FC<RuntimePageShellProps>;
|
|
1395
|
+
|
|
1396
|
+
interface SummaryPanelMetaItem {
|
|
1397
|
+
key: string;
|
|
1398
|
+
label: string;
|
|
1399
|
+
value?: React__default.ReactNode;
|
|
1400
|
+
icon?: React__default.ReactNode;
|
|
1401
|
+
}
|
|
1402
|
+
interface SummaryPanelProps {
|
|
1403
|
+
title?: React__default.ReactNode;
|
|
1404
|
+
eyebrow?: React__default.ReactNode;
|
|
1405
|
+
status?: StatusMeta;
|
|
1406
|
+
creator?: {
|
|
1407
|
+
name?: string;
|
|
1408
|
+
avatar?: string;
|
|
1409
|
+
department?: string;
|
|
1410
|
+
};
|
|
1411
|
+
createdAt?: React__default.ReactNode;
|
|
1412
|
+
metaItems?: SummaryPanelMetaItem[];
|
|
1413
|
+
className?: string;
|
|
1414
|
+
children?: React__default.ReactNode;
|
|
1415
|
+
}
|
|
1416
|
+
declare const SummaryPanel: React__default.FC<SummaryPanelProps>;
|
|
1417
|
+
|
|
1165
1418
|
interface DraftManagerProps {
|
|
1166
1419
|
hasDraft: boolean;
|
|
1167
1420
|
draftTimestamp?: number | null;
|
|
@@ -1180,6 +1433,36 @@ interface ProcessPreviewProps {
|
|
|
1180
1433
|
}
|
|
1181
1434
|
declare const ProcessPreview: React__default.FC<ProcessPreviewProps>;
|
|
1182
1435
|
|
|
1436
|
+
type DetailRenderer = (props: {
|
|
1437
|
+
record: any;
|
|
1438
|
+
formInstanceId?: string;
|
|
1439
|
+
onClose: () => void;
|
|
1440
|
+
}) => React__default.ReactNode;
|
|
1441
|
+
type SubmitRenderer = (props: {
|
|
1442
|
+
onClose: () => void;
|
|
1443
|
+
onSubmitted: () => void;
|
|
1444
|
+
}) => React__default.ReactNode;
|
|
1445
|
+
interface DataManagementRowAction {
|
|
1446
|
+
key: string;
|
|
1447
|
+
label: string;
|
|
1448
|
+
danger?: boolean;
|
|
1449
|
+
onClick: (record: any) => void;
|
|
1450
|
+
}
|
|
1451
|
+
interface DataManagementListProps {
|
|
1452
|
+
appType: string;
|
|
1453
|
+
formUuid: string;
|
|
1454
|
+
menuFormUuid?: string;
|
|
1455
|
+
readonly?: boolean;
|
|
1456
|
+
fullHeight?: boolean;
|
|
1457
|
+
configScope?: DataManagementConfigScope;
|
|
1458
|
+
title?: string;
|
|
1459
|
+
detailRenderer?: DetailRenderer;
|
|
1460
|
+
submitRenderer?: SubmitRenderer;
|
|
1461
|
+
requestOverride?: FormRuntimeApi['request'] | FormRuntimeApiConfig;
|
|
1462
|
+
rowActions?: DataManagementRowAction[];
|
|
1463
|
+
}
|
|
1464
|
+
declare const DataManagementList: React__default.FC<DataManagementListProps>;
|
|
1465
|
+
|
|
1183
1466
|
interface SubmitSuccessInfo {
|
|
1184
1467
|
formInstanceId: string;
|
|
1185
1468
|
message?: string;
|
|
@@ -1191,16 +1474,24 @@ interface FormSubmitTemplateProps {
|
|
|
1191
1474
|
submitSuccessMode?: 'redirect' | 'stay' | 'continue';
|
|
1192
1475
|
enableDraft?: boolean;
|
|
1193
1476
|
enableProcessPreview?: boolean;
|
|
1477
|
+
enableSubmissionDepartmentSelect?: boolean;
|
|
1478
|
+
departmentOptions?: OptionItem[];
|
|
1194
1479
|
header?: React__default.ReactNode;
|
|
1195
1480
|
footer?: React__default.ReactNode;
|
|
1196
1481
|
beforeForm?: React__default.ReactNode;
|
|
1197
1482
|
afterForm?: React__default.ReactNode;
|
|
1483
|
+
renderDepartmentSelector?: (props: {
|
|
1484
|
+
value?: string;
|
|
1485
|
+
onChange: (value?: string) => void;
|
|
1486
|
+
options: OptionItem[];
|
|
1487
|
+
}) => React__default.ReactNode;
|
|
1198
1488
|
renderForm?: (props: {
|
|
1199
1489
|
schema: FormSchema;
|
|
1200
1490
|
config: FormEngineConfig;
|
|
1201
1491
|
}) => React__default.ReactNode;
|
|
1202
1492
|
renderSuccess?: (info: SubmitSuccessInfo) => React__default.ReactNode;
|
|
1203
1493
|
onSubmitSuccess?: (formInstId: string) => void;
|
|
1494
|
+
inDrawer?: boolean;
|
|
1204
1495
|
}
|
|
1205
1496
|
declare const FormSubmitTemplate: React__default.FC<FormSubmitTemplateProps>;
|
|
1206
1497
|
|
|
@@ -1218,6 +1509,7 @@ interface FormDetailTemplateProps {
|
|
|
1218
1509
|
renderActions?: (actions: ActionConfig[]) => React__default.ReactNode;
|
|
1219
1510
|
onDelete?: () => void;
|
|
1220
1511
|
onSave?: (values: Record<string, any>) => void;
|
|
1512
|
+
inDrawer?: boolean;
|
|
1221
1513
|
}
|
|
1222
1514
|
declare const FormDetailTemplate: React__default.FC<FormDetailTemplateProps>;
|
|
1223
1515
|
|
|
@@ -1229,9 +1521,16 @@ interface ProcessDetailTemplateProps {
|
|
|
1229
1521
|
header?: React__default.ReactNode;
|
|
1230
1522
|
renderTimeline?: (tasks: ProcessTask[]) => React__default.ReactNode;
|
|
1231
1523
|
renderActions?: (actions: ProcessAction[]) => React__default.ReactNode;
|
|
1524
|
+
renderTransferSelector?: (props: {
|
|
1525
|
+
value?: string;
|
|
1526
|
+
onChange: (userId: string) => void;
|
|
1527
|
+
}) => React__default.ReactNode;
|
|
1528
|
+
renderReturnNodeLabel?: (node: ReturnableNode) => React__default.ReactNode;
|
|
1529
|
+
renderActionModalExtra?: (action: ProcessAction) => React__default.ReactNode;
|
|
1232
1530
|
beforeForm?: React__default.ReactNode;
|
|
1233
1531
|
afterForm?: React__default.ReactNode;
|
|
1234
1532
|
onActionComplete?: (action: string) => void;
|
|
1533
|
+
inDrawer?: boolean;
|
|
1235
1534
|
}
|
|
1236
1535
|
declare const ProcessDetailTemplate: React__default.FC<ProcessDetailTemplateProps>;
|
|
1237
1536
|
|
|
@@ -1240,4 +1539,4 @@ interface PageSkeletonProps {
|
|
|
1240
1539
|
}
|
|
1241
1540
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1242
1541
|
|
|
1243
|
-
export { type ActionConfig, AddressField, type AddressFieldProps, type AddressValue, 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, 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, type ResubmitParams, type ReturnParams, type ReturnableNode, type RuntimeRequestConfig, type RuntimeResponse, type SaveTaskParams, SelectField, type SelectFieldProps, SerialNumberField, type SerialNumberFieldProps, type SignaturePoint, type StatusMeta, type SubFormColumn, SubFormField, type SubFormFieldProps, type SubmitConfig, type SubmitSuccessInfo, 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, checkUserApproval, createFormRuntimeApi, defaultComponentRegistry, defineFormSchema, deleteFormData, evaluateEffects, extractFormValues, getChangeRecords, getFormData, getProcessBasic, getProcessDefinition, getProcessProgress, getReturnableNodes, getViewPermission, handleApproval, previewProcess, resubmitTask, returnTask, saveTask, transferTask, useApprovalActions, useChangeRecords, useComponent, useDeviceDetect, useDraftStorage, useFieldBehavior, useFieldPermission, useFormContext, useFormData, useFormDetail, useFormEngine, useFormNavigation, useFormSubmit, useProcessDetail, validateAllFields, validateField, withdrawProcess };
|
|
1542
|
+
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 };
|