sy-form-components 0.2.5 → 0.2.7
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 +345 -7
- package/dist/index.d.ts +345 -7
- package/dist/index.js +5980 -1426
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6120 -1539
- package/dist/index.mjs.map +1 -1
- package/dist/tailwind.preset.js +364 -1
- package/dist/tailwind.preset.js.map +1 -1
- package/dist/tailwind.preset.mjs +364 -1
- package/dist/tailwind.preset.mjs.map +1 -1
- package/package.json +17 -1
package/dist/index.d.ts
CHANGED
|
@@ -222,6 +222,12 @@ interface AttachmentFieldProps extends BaseFieldProps {
|
|
|
222
222
|
bucketName?: string;
|
|
223
223
|
multiple?: boolean;
|
|
224
224
|
allowedTypes?: string[];
|
|
225
|
+
showPreview?: boolean;
|
|
226
|
+
showDownload?: boolean;
|
|
227
|
+
showFileSize?: boolean;
|
|
228
|
+
showFileTypeBadge?: boolean;
|
|
229
|
+
previewPagePath?: string;
|
|
230
|
+
mobileDownloadMode?: 'auto' | 'direct' | 'ticketRelay';
|
|
225
231
|
}
|
|
226
232
|
/** ImageField 专用 Props */
|
|
227
233
|
interface ImageFieldProps extends BaseFieldProps {
|
|
@@ -232,6 +238,10 @@ interface ImageFieldProps extends BaseFieldProps {
|
|
|
232
238
|
bucketName?: string;
|
|
233
239
|
multiple?: boolean;
|
|
234
240
|
maxSize?: number;
|
|
241
|
+
listType?: 'text' | 'picture' | 'picture-card';
|
|
242
|
+
showPreviewIcon?: boolean;
|
|
243
|
+
showRemoveIcon?: boolean;
|
|
244
|
+
showDownloadIcon?: boolean;
|
|
235
245
|
}
|
|
236
246
|
/** 子表单列定义 */
|
|
237
247
|
interface SubFormColumn {
|
|
@@ -267,6 +277,10 @@ interface UserSelectFieldProps extends BaseFieldProps {
|
|
|
267
277
|
multiple?: boolean;
|
|
268
278
|
searchable?: boolean;
|
|
269
279
|
dataSource?: UserItem[];
|
|
280
|
+
treeData?: DepartmentTreeNode[];
|
|
281
|
+
allowClear?: boolean;
|
|
282
|
+
maxCount?: number;
|
|
283
|
+
notFoundContent?: string;
|
|
270
284
|
}
|
|
271
285
|
/** 部门树节点 */
|
|
272
286
|
interface DepartmentTreeNode {
|
|
@@ -288,6 +302,9 @@ interface DepartmentSelectFieldProps extends BaseFieldProps {
|
|
|
288
302
|
}[];
|
|
289
303
|
multiple?: boolean;
|
|
290
304
|
treeData?: DepartmentTreeNode[];
|
|
305
|
+
allowClear?: boolean;
|
|
306
|
+
maxCount?: number;
|
|
307
|
+
notFoundContent?: string;
|
|
291
308
|
}
|
|
292
309
|
interface CascadeSelectFieldProps extends BaseFieldProps {
|
|
293
310
|
defaultValue?: OptionItem[] | OptionItem[][];
|
|
@@ -328,9 +345,27 @@ interface AssociationFormConfig {
|
|
|
328
345
|
title?: string;
|
|
329
346
|
dataIndex: string;
|
|
330
347
|
key?: string;
|
|
348
|
+
width?: number;
|
|
349
|
+
ellipsis?: boolean;
|
|
350
|
+
}>;
|
|
351
|
+
dataFilterRules?: Array<{
|
|
352
|
+
key: string;
|
|
353
|
+
operator?: string;
|
|
354
|
+
componentName?: string;
|
|
355
|
+
value?: string | number;
|
|
356
|
+
valueType?: 'manual' | 'currentField';
|
|
357
|
+
currentFieldKey?: string;
|
|
331
358
|
}>;
|
|
332
|
-
dataFilterRules?: any[];
|
|
333
359
|
dataFilterConditionType?: 'AND' | 'OR';
|
|
360
|
+
dataFillingEnabled?: boolean;
|
|
361
|
+
dataFillingRules?: {
|
|
362
|
+
mainRules?: Array<{
|
|
363
|
+
source: string;
|
|
364
|
+
target: string;
|
|
365
|
+
sourceType?: string;
|
|
366
|
+
targetType?: string;
|
|
367
|
+
}>;
|
|
368
|
+
};
|
|
334
369
|
}
|
|
335
370
|
interface AssociationValue {
|
|
336
371
|
label: string;
|
|
@@ -348,6 +383,11 @@ interface EditorFieldProps extends BaseFieldProps {
|
|
|
348
383
|
defaultValue?: string;
|
|
349
384
|
rows?: number;
|
|
350
385
|
maxLength?: number;
|
|
386
|
+
height?: number | string;
|
|
387
|
+
toolbarConfig?: 'full' | 'basic' | 'minimal' | string[];
|
|
388
|
+
uploadBucketName?: string;
|
|
389
|
+
maxImageSize?: number;
|
|
390
|
+
allowedImageTypes?: string[];
|
|
351
391
|
}
|
|
352
392
|
interface SerialNumberFieldProps extends BaseFieldProps {
|
|
353
393
|
defaultValue?: string;
|
|
@@ -400,7 +440,7 @@ type TaskStatus = 'pending' | 'approved' | 'rejected' | 'returned' | 'suspended'
|
|
|
400
440
|
/** 流程任务节点类型 */
|
|
401
441
|
type ProcessNodeType = 'start' | 'approval' | 'copy' | 'end' | 'system' | 'originator_return' | 'callback_wait';
|
|
402
442
|
/** 审批操作类型 */
|
|
403
|
-
type ApprovalActionType = 'agree' | 'rejected' | 'transfer' | 'return' | 'save' | 'withdraw';
|
|
443
|
+
type ApprovalActionType = 'agree' | 'approved' | 'rejected' | 'reject' | 'transfer' | 'return' | 'save' | 'withdraw' | 'resubmit' | 'callback';
|
|
404
444
|
/** 流程操作动作定义 */
|
|
405
445
|
interface ProcessAction {
|
|
406
446
|
action: ApprovalActionType;
|
|
@@ -408,8 +448,14 @@ interface ProcessAction {
|
|
|
408
448
|
zh_CN: string;
|
|
409
449
|
en_US?: string;
|
|
410
450
|
};
|
|
451
|
+
text?: {
|
|
452
|
+
zh_CN?: string;
|
|
453
|
+
en_US?: string;
|
|
454
|
+
};
|
|
455
|
+
hidden?: boolean;
|
|
411
456
|
remark?: {
|
|
412
457
|
popUp: boolean;
|
|
458
|
+
required?: boolean;
|
|
413
459
|
content?: {
|
|
414
460
|
zh_CN: string;
|
|
415
461
|
en_US?: string;
|
|
@@ -435,6 +481,8 @@ interface ProcessTask {
|
|
|
435
481
|
createdAt?: string;
|
|
436
482
|
actionAt?: string;
|
|
437
483
|
actions?: ProcessAction[];
|
|
484
|
+
isSimulated?: boolean;
|
|
485
|
+
multiApproveMode?: 'and' | 'or' | string;
|
|
438
486
|
}
|
|
439
487
|
/** 流程基本信息 */
|
|
440
488
|
interface ProcessBasicInfo {
|
|
@@ -448,6 +496,7 @@ interface ProcessBasicInfo {
|
|
|
448
496
|
originatorDepartment?: string;
|
|
449
497
|
createdAt: string;
|
|
450
498
|
currentTask?: ProcessTask;
|
|
499
|
+
isExecuting?: boolean;
|
|
451
500
|
}
|
|
452
501
|
/** 审批权限 */
|
|
453
502
|
interface ApprovalPermission {
|
|
@@ -462,6 +511,9 @@ interface ApprovalPermission {
|
|
|
462
511
|
interface ReturnableNode {
|
|
463
512
|
nodeId: string;
|
|
464
513
|
nodeName: string;
|
|
514
|
+
id?: string;
|
|
515
|
+
name?: string;
|
|
516
|
+
type?: string;
|
|
465
517
|
}
|
|
466
518
|
/** 流程预览路由 */
|
|
467
519
|
interface ProcessRoute {
|
|
@@ -510,6 +562,18 @@ interface ChangeRecord {
|
|
|
510
562
|
operatorId: string;
|
|
511
563
|
operatorName: string;
|
|
512
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
|
+
}>;
|
|
513
577
|
}
|
|
514
578
|
/** 变更记录列表响应 */
|
|
515
579
|
interface ChangeRecordListResponse {
|
|
@@ -718,6 +782,11 @@ declare function getReturnableNodes(request: FormRuntimeApi['request'], taskId:
|
|
|
718
782
|
declare function previewProcess(request: FormRuntimeApi['request'], params: PreviewParams): Promise<ProcessRoute[]>;
|
|
719
783
|
/** 获取流程定义 */
|
|
720
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>;
|
|
721
790
|
/** 获取表单实例数据 */
|
|
722
791
|
declare function getFormData(request: FormRuntimeApi['request'], params: FormDataQueryParams): Promise<FormInstanceData>;
|
|
723
792
|
/** 删除表单数据 */
|
|
@@ -727,6 +796,131 @@ declare function getChangeRecords(request: FormRuntimeApi['request'], params: Ch
|
|
|
727
796
|
/** 获取视图权限摘要 */
|
|
728
797
|
declare function getViewPermission(request: FormRuntimeApi['request'], params: ViewPermissionQueryParams): Promise<ViewPermissionSummary>;
|
|
729
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
|
+
|
|
730
924
|
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
731
925
|
|
|
732
926
|
declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
@@ -971,6 +1165,7 @@ interface UseApprovalActionsReturn {
|
|
|
971
1165
|
withdraw: (reason?: string) => Promise<boolean>;
|
|
972
1166
|
save: () => Promise<boolean>;
|
|
973
1167
|
resubmit: (comments?: string) => Promise<boolean>;
|
|
1168
|
+
callbackTask: (payload?: Record<string, any>) => Promise<boolean>;
|
|
974
1169
|
isLoading: boolean;
|
|
975
1170
|
currentAction: string | null;
|
|
976
1171
|
returnableNodes: ReturnableNode[];
|
|
@@ -1048,6 +1243,11 @@ declare function defineFormSchema(schema: FormSchema): FormSchema;
|
|
|
1048
1243
|
|
|
1049
1244
|
declare const extractFormValues: (formInstance: unknown, fieldIds?: readonly string[]) => Record<string, any> | null;
|
|
1050
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
|
+
|
|
1051
1251
|
interface FormSummaryCardProps {
|
|
1052
1252
|
title?: string;
|
|
1053
1253
|
formInstanceId?: string;
|
|
@@ -1078,23 +1278,64 @@ interface ChangeRecordsProps {
|
|
|
1078
1278
|
}
|
|
1079
1279
|
declare const ChangeRecords: React__default.FC<ChangeRecordsProps>;
|
|
1080
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
|
+
|
|
1081
1297
|
interface ApprovalTimelineProps {
|
|
1082
1298
|
tasks: ProcessTask[];
|
|
1083
1299
|
className?: string;
|
|
1084
1300
|
renderNode?: (task: ProcessTask, index: number) => React__default.ReactNode;
|
|
1085
1301
|
showRemarks?: boolean;
|
|
1086
1302
|
compactMode?: boolean;
|
|
1303
|
+
showApproverInfo?: boolean;
|
|
1087
1304
|
}
|
|
1088
1305
|
declare const ApprovalTimeline: React__default.FC<ApprovalTimelineProps>;
|
|
1089
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
|
+
|
|
1090
1331
|
interface ApprovalActionsProps {
|
|
1091
1332
|
actions: ProcessAction[];
|
|
1092
|
-
onApprove?: (comments?: string) => Promise<void
|
|
1093
|
-
onReject?: (comments?: string) => Promise<void
|
|
1333
|
+
onApprove?: (comments?: string) => Promise<void> | void;
|
|
1334
|
+
onReject?: (comments?: string) => Promise<void> | void;
|
|
1094
1335
|
onTransfer?: () => void;
|
|
1095
1336
|
onReturn?: () => void;
|
|
1096
|
-
onWithdraw?: (reason?: string) => Promise<void
|
|
1097
|
-
onSave?: () => Promise<void
|
|
1337
|
+
onWithdraw?: (reason?: string) => Promise<void> | void;
|
|
1338
|
+
onSave?: () => Promise<void> | void;
|
|
1098
1339
|
layout?: 'horizontal' | 'vertical';
|
|
1099
1340
|
maxVisible?: number;
|
|
1100
1341
|
className?: string;
|
|
@@ -1112,8 +1353,12 @@ interface ActionConfig {
|
|
|
1112
1353
|
confirm?: {
|
|
1113
1354
|
title: string;
|
|
1114
1355
|
content: string;
|
|
1356
|
+
okText?: string;
|
|
1357
|
+
cancelText?: string;
|
|
1115
1358
|
};
|
|
1116
1359
|
icon?: React__default.ReactNode;
|
|
1360
|
+
priority?: number;
|
|
1361
|
+
placement?: 'left' | 'right';
|
|
1117
1362
|
}
|
|
1118
1363
|
interface FormActionBarProps {
|
|
1119
1364
|
actions: ActionConfig[];
|
|
@@ -1122,6 +1367,53 @@ interface FormActionBarProps {
|
|
|
1122
1367
|
}
|
|
1123
1368
|
declare const FormActionBar: React__default.FC<FormActionBarProps>;
|
|
1124
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
|
+
}
|
|
1378
|
+
declare const StickyActionBar: React__default.FC<StickyActionBarProps>;
|
|
1379
|
+
|
|
1380
|
+
interface RuntimePageShellProps {
|
|
1381
|
+
children: React__default.ReactNode;
|
|
1382
|
+
actions?: React__default.ReactNode;
|
|
1383
|
+
loading?: boolean;
|
|
1384
|
+
loadingTip?: string;
|
|
1385
|
+
accessDenied?: boolean;
|
|
1386
|
+
error?: React__default.ReactNode;
|
|
1387
|
+
empty?: React__default.ReactNode;
|
|
1388
|
+
className?: string;
|
|
1389
|
+
contentClassName?: string;
|
|
1390
|
+
maxWidth?: number | string;
|
|
1391
|
+
inDrawer?: boolean;
|
|
1392
|
+
}
|
|
1393
|
+
declare const RuntimePageShell: React__default.FC<RuntimePageShellProps>;
|
|
1394
|
+
|
|
1395
|
+
interface SummaryPanelMetaItem {
|
|
1396
|
+
key: string;
|
|
1397
|
+
label: string;
|
|
1398
|
+
value?: React__default.ReactNode;
|
|
1399
|
+
icon?: React__default.ReactNode;
|
|
1400
|
+
}
|
|
1401
|
+
interface SummaryPanelProps {
|
|
1402
|
+
title?: React__default.ReactNode;
|
|
1403
|
+
eyebrow?: React__default.ReactNode;
|
|
1404
|
+
status?: StatusMeta;
|
|
1405
|
+
creator?: {
|
|
1406
|
+
name?: string;
|
|
1407
|
+
avatar?: string;
|
|
1408
|
+
department?: string;
|
|
1409
|
+
};
|
|
1410
|
+
createdAt?: React__default.ReactNode;
|
|
1411
|
+
metaItems?: SummaryPanelMetaItem[];
|
|
1412
|
+
className?: string;
|
|
1413
|
+
children?: React__default.ReactNode;
|
|
1414
|
+
}
|
|
1415
|
+
declare const SummaryPanel: React__default.FC<SummaryPanelProps>;
|
|
1416
|
+
|
|
1125
1417
|
interface DraftManagerProps {
|
|
1126
1418
|
hasDraft: boolean;
|
|
1127
1419
|
draftTimestamp?: number | null;
|
|
@@ -1140,6 +1432,36 @@ interface ProcessPreviewProps {
|
|
|
1140
1432
|
}
|
|
1141
1433
|
declare const ProcessPreview: React__default.FC<ProcessPreviewProps>;
|
|
1142
1434
|
|
|
1435
|
+
type DetailRenderer = (props: {
|
|
1436
|
+
record: any;
|
|
1437
|
+
formInstanceId?: string;
|
|
1438
|
+
onClose: () => void;
|
|
1439
|
+
}) => React__default.ReactNode;
|
|
1440
|
+
type SubmitRenderer = (props: {
|
|
1441
|
+
onClose: () => void;
|
|
1442
|
+
onSubmitted: () => void;
|
|
1443
|
+
}) => React__default.ReactNode;
|
|
1444
|
+
interface DataManagementRowAction {
|
|
1445
|
+
key: string;
|
|
1446
|
+
label: string;
|
|
1447
|
+
danger?: boolean;
|
|
1448
|
+
onClick: (record: any) => void;
|
|
1449
|
+
}
|
|
1450
|
+
interface DataManagementListProps {
|
|
1451
|
+
appType: string;
|
|
1452
|
+
formUuid: string;
|
|
1453
|
+
menuFormUuid?: string;
|
|
1454
|
+
readonly?: boolean;
|
|
1455
|
+
fullHeight?: boolean;
|
|
1456
|
+
configScope?: DataManagementConfigScope;
|
|
1457
|
+
title?: string;
|
|
1458
|
+
detailRenderer?: DetailRenderer;
|
|
1459
|
+
submitRenderer?: SubmitRenderer;
|
|
1460
|
+
requestOverride?: FormRuntimeApi['request'] | FormRuntimeApiConfig;
|
|
1461
|
+
rowActions?: DataManagementRowAction[];
|
|
1462
|
+
}
|
|
1463
|
+
declare const DataManagementList: React__default.FC<DataManagementListProps>;
|
|
1464
|
+
|
|
1143
1465
|
interface SubmitSuccessInfo {
|
|
1144
1466
|
formInstanceId: string;
|
|
1145
1467
|
message?: string;
|
|
@@ -1151,16 +1473,24 @@ interface FormSubmitTemplateProps {
|
|
|
1151
1473
|
submitSuccessMode?: 'redirect' | 'stay' | 'continue';
|
|
1152
1474
|
enableDraft?: boolean;
|
|
1153
1475
|
enableProcessPreview?: boolean;
|
|
1476
|
+
enableSubmissionDepartmentSelect?: boolean;
|
|
1477
|
+
departmentOptions?: OptionItem[];
|
|
1154
1478
|
header?: React__default.ReactNode;
|
|
1155
1479
|
footer?: React__default.ReactNode;
|
|
1156
1480
|
beforeForm?: React__default.ReactNode;
|
|
1157
1481
|
afterForm?: React__default.ReactNode;
|
|
1482
|
+
renderDepartmentSelector?: (props: {
|
|
1483
|
+
value?: string;
|
|
1484
|
+
onChange: (value?: string) => void;
|
|
1485
|
+
options: OptionItem[];
|
|
1486
|
+
}) => React__default.ReactNode;
|
|
1158
1487
|
renderForm?: (props: {
|
|
1159
1488
|
schema: FormSchema;
|
|
1160
1489
|
config: FormEngineConfig;
|
|
1161
1490
|
}) => React__default.ReactNode;
|
|
1162
1491
|
renderSuccess?: (info: SubmitSuccessInfo) => React__default.ReactNode;
|
|
1163
1492
|
onSubmitSuccess?: (formInstId: string) => void;
|
|
1493
|
+
inDrawer?: boolean;
|
|
1164
1494
|
}
|
|
1165
1495
|
declare const FormSubmitTemplate: React__default.FC<FormSubmitTemplateProps>;
|
|
1166
1496
|
|
|
@@ -1178,6 +1508,7 @@ interface FormDetailTemplateProps {
|
|
|
1178
1508
|
renderActions?: (actions: ActionConfig[]) => React__default.ReactNode;
|
|
1179
1509
|
onDelete?: () => void;
|
|
1180
1510
|
onSave?: (values: Record<string, any>) => void;
|
|
1511
|
+
inDrawer?: boolean;
|
|
1181
1512
|
}
|
|
1182
1513
|
declare const FormDetailTemplate: React__default.FC<FormDetailTemplateProps>;
|
|
1183
1514
|
|
|
@@ -1189,9 +1520,16 @@ interface ProcessDetailTemplateProps {
|
|
|
1189
1520
|
header?: React__default.ReactNode;
|
|
1190
1521
|
renderTimeline?: (tasks: ProcessTask[]) => React__default.ReactNode;
|
|
1191
1522
|
renderActions?: (actions: ProcessAction[]) => React__default.ReactNode;
|
|
1523
|
+
renderTransferSelector?: (props: {
|
|
1524
|
+
value?: string;
|
|
1525
|
+
onChange: (userId: string) => void;
|
|
1526
|
+
}) => React__default.ReactNode;
|
|
1527
|
+
renderReturnNodeLabel?: (node: ReturnableNode) => React__default.ReactNode;
|
|
1528
|
+
renderActionModalExtra?: (action: ProcessAction) => React__default.ReactNode;
|
|
1192
1529
|
beforeForm?: React__default.ReactNode;
|
|
1193
1530
|
afterForm?: React__default.ReactNode;
|
|
1194
1531
|
onActionComplete?: (action: string) => void;
|
|
1532
|
+
inDrawer?: boolean;
|
|
1195
1533
|
}
|
|
1196
1534
|
declare const ProcessDetailTemplate: React__default.FC<ProcessDetailTemplateProps>;
|
|
1197
1535
|
|
|
@@ -1200,4 +1538,4 @@ interface PageSkeletonProps {
|
|
|
1200
1538
|
}
|
|
1201
1539
|
declare const PageSkeleton: React__default.FC<PageSkeletonProps>;
|
|
1202
1540
|
|
|
1203
|
-
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 };
|
|
1541
|
+
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 };
|