@steedos-widgets/amis-lib 6.10.54-beta.2 → 6.10.54-beta.21
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/__tests__/calendarResourcesApi.test.d.ts +1 -0
- package/dist/types/lib/converter/amis/calendar.d.ts +2 -0
- package/dist/types/lib/converter/amis/fields_filter.d.ts +0 -1
- package/dist/types/lib/converter/amis/header.d.ts +0 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +0 -1
- package/dist/types/workflow/__tests__/approve-dingtalk-pc-reflow.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/approve-opinion-persist.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/attachment-delete-permission.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/attachment-office-presigned.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/attachment-office-viewer.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/history-approves-sign-image.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/instance-values.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/related-records-link.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/workflow-multi-lookup-values.test.d.ts +1 -0
- package/dist/types/workflow/approve.d.ts +32 -0
- package/dist/types/workflow/attachment.d.ts +27 -0
- package/dist/types/workflow/index.d.ts +1 -0
- package/dist/types/workflow/instance.d.ts +1 -0
- package/dist/types/workflow/related.d.ts +2 -1
- package/dist/types/workflow/util.d.ts +5 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -44,6 +44,8 @@ export function getCalendarResourcesApi(objectSchema: any, calendarOptions: any)
|
|
|
44
44
|
url: string;
|
|
45
45
|
adaptor: (payload: any, response: any, api: any, context: any) => any;
|
|
46
46
|
};
|
|
47
|
+
export function getCalendarResourceSortFields(sort: any): any;
|
|
48
|
+
export function getFullCalendarResourceOrder(sort: any): any;
|
|
47
49
|
/**
|
|
48
50
|
* 列表视图Calendar amisSchema
|
|
49
51
|
* @param {*} objectSchema 对象UISchema
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export function getApprovalSuggestionStorageKey(instance: any, approve: any): string;
|
|
2
|
+
export function getSaveApprovalSuggestionScript(storageKey: any): string;
|
|
3
|
+
export function getRestoreApprovalSuggestionScript(storageKey: any, formIds: any): string;
|
|
4
|
+
export function getClearApprovalSuggestionScript(storageKey: any): string;
|
|
1
5
|
export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
2
6
|
type: string;
|
|
3
7
|
overlay: boolean;
|
|
@@ -134,8 +138,19 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
134
138
|
};
|
|
135
139
|
level?: undefined;
|
|
136
140
|
})[];
|
|
141
|
+
id?: undefined;
|
|
142
|
+
onEvent?: undefined;
|
|
137
143
|
} | {
|
|
138
144
|
title: string;
|
|
145
|
+
id: string;
|
|
146
|
+
onEvent: {
|
|
147
|
+
inited: {
|
|
148
|
+
actions: {
|
|
149
|
+
actionType: string;
|
|
150
|
+
script: string;
|
|
151
|
+
}[];
|
|
152
|
+
};
|
|
153
|
+
};
|
|
139
154
|
body: ({
|
|
140
155
|
type: string;
|
|
141
156
|
label: boolean;
|
|
@@ -386,6 +401,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
386
401
|
name?: undefined;
|
|
387
402
|
label?: undefined;
|
|
388
403
|
id?: undefined;
|
|
404
|
+
changeImmediately?: undefined;
|
|
389
405
|
minRows?: undefined;
|
|
390
406
|
maxRows?: undefined;
|
|
391
407
|
placeholder?: undefined;
|
|
@@ -399,6 +415,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
399
415
|
className?: undefined;
|
|
400
416
|
label?: undefined;
|
|
401
417
|
id?: undefined;
|
|
418
|
+
changeImmediately?: undefined;
|
|
402
419
|
minRows?: undefined;
|
|
403
420
|
maxRows?: undefined;
|
|
404
421
|
placeholder?: undefined;
|
|
@@ -410,6 +427,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
410
427
|
label: boolean;
|
|
411
428
|
name: string;
|
|
412
429
|
id: string;
|
|
430
|
+
changeImmediately: boolean;
|
|
413
431
|
className: string;
|
|
414
432
|
minRows: number;
|
|
415
433
|
maxRows: number;
|
|
@@ -417,6 +435,12 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
417
435
|
requiredOn: string;
|
|
418
436
|
value: any;
|
|
419
437
|
onEvent: {
|
|
438
|
+
change: {
|
|
439
|
+
actions: {
|
|
440
|
+
actionType: string;
|
|
441
|
+
script: string;
|
|
442
|
+
}[];
|
|
443
|
+
};
|
|
420
444
|
blur: {
|
|
421
445
|
actions: {
|
|
422
446
|
componentId: string;
|
|
@@ -778,6 +802,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
778
802
|
name: string;
|
|
779
803
|
label?: undefined;
|
|
780
804
|
id?: undefined;
|
|
805
|
+
changeImmediately?: undefined;
|
|
781
806
|
className?: undefined;
|
|
782
807
|
minRows?: undefined;
|
|
783
808
|
maxRows?: undefined;
|
|
@@ -790,6 +815,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
790
815
|
label: boolean;
|
|
791
816
|
name: string;
|
|
792
817
|
id: string;
|
|
818
|
+
changeImmediately: boolean;
|
|
793
819
|
className: string;
|
|
794
820
|
minRows: number;
|
|
795
821
|
maxRows: number;
|
|
@@ -797,6 +823,12 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
797
823
|
requiredOn: string;
|
|
798
824
|
value: any;
|
|
799
825
|
onEvent: {
|
|
826
|
+
change: {
|
|
827
|
+
actions: {
|
|
828
|
+
actionType: string;
|
|
829
|
+
script: string;
|
|
830
|
+
}[];
|
|
831
|
+
};
|
|
800
832
|
blur: {
|
|
801
833
|
actions: {
|
|
802
834
|
componentId: string;
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
export function allowAddAttachmentVersion({ instance, current, currentStep, isCC, ccStep, box }: {
|
|
2
|
+
instance: any;
|
|
3
|
+
current: any;
|
|
4
|
+
currentStep: any;
|
|
5
|
+
isCC: any;
|
|
6
|
+
ccStep: any;
|
|
7
|
+
box: any;
|
|
8
|
+
}): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 反查附件上传时所在的步骤。
|
|
11
|
+
* 上传时会把当时的审批(approve)记到 metadata.approve 上,approve 所属 trace 的 step 即「原步骤」。
|
|
12
|
+
* @returns {String|null} 步骤 id,查不到返回 null
|
|
13
|
+
*/
|
|
14
|
+
export function getAttachmentUploadStepId(instance: any, attachment: any): string | null;
|
|
15
|
+
export function checkDeletePermission({ instance, attachment, currentStep, userId, box }: {
|
|
16
|
+
instance: any;
|
|
17
|
+
attachment: any;
|
|
18
|
+
currentStep: any;
|
|
19
|
+
userId: any;
|
|
20
|
+
box: any;
|
|
21
|
+
}): boolean;
|
|
22
|
+
export function allowRemoveAttachment(params: any): boolean;
|
|
1
23
|
export function shouldShowFlowTemplateFiles(instance: any): boolean;
|
|
2
24
|
export function buildFlowTemplateFilesQuery(instance: any): string;
|
|
3
25
|
export function getFlowTemplateFilesService(instance: any): {
|
|
@@ -24,6 +46,11 @@ export function getFlowTemplateFilesService(instance: any): {
|
|
|
24
46
|
template: string;
|
|
25
47
|
}[];
|
|
26
48
|
};
|
|
49
|
+
export function getAmisOfficeViewerWordContainerClass(windowLike: any): string;
|
|
50
|
+
export function getAttachmentPdfViewerBaseUrl(windowLike: any): any;
|
|
51
|
+
export function getAttachmentPdfPreviewUrl(fileUrl: any, windowLike: any, viewerBaseUrl: any): any;
|
|
52
|
+
export function ensureAmisOfficeViewerPackageUrls(windowLike: any): boolean;
|
|
53
|
+
export function getAttachmentOfficePreviewUrl(file: any, officeViewerUrl: any, fetcher?: any): Promise<string>;
|
|
27
54
|
export function getAttachments(instance: any): Promise<{
|
|
28
55
|
type: string;
|
|
29
56
|
className: string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { getFlowFormSchema } from './flow';
|
|
2
2
|
export { getInstanceInfo, getApplicant, autoUpgradeInstance, fetchAutoNumber } from './instance';
|
|
3
|
+
export { getWorkflowMultiLookupFieldPaths, normalizeWorkflowMultiLookupValues, wrapWorkflowMultiLookupFormGetValues, } from './util';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function openWorkflowRelatedRecord(objectName: any, recordId: any, instanceId: any, windowLike: any): boolean;
|
|
2
|
+
export function getRelatedRecords(instance: any, windowLike: any): Promise<{
|
|
2
3
|
type: string;
|
|
3
4
|
size: string;
|
|
4
5
|
className: string;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
export function getWorkflowMultiLookupFieldPaths(fields: any): any[];
|
|
2
|
+
export function normalizeWorkflowMultiLookupValues(values: any, lookupFieldPaths: any): any;
|
|
3
|
+
export function wrapWorkflowMultiLookupFormGetValues(form: any, lookupFieldPaths: any): any;
|
|
4
|
+
export function getWorkflowMultiLookupNormalizationScript(fields: any): string;
|
|
1
5
|
export function shouldUseAllStepSelection(instance: any): boolean;
|
|
2
6
|
export function getOpinionFieldStepsName(field: any, top_keywords: any): any[];
|
|
3
|
-
export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any): any[];
|
|
7
|
+
export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any, options?: {}): any[];
|
|
4
8
|
export function isOpinionOfField(approve: any, field: any): boolean;
|
|
5
9
|
export function isMyApprove({ approve, only_cc_opinion, box, currentApprove, field }: {
|
|
6
10
|
approve: any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "6.10.54-beta.
|
|
4
|
+
"version": "6.10.54-beta.21",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"i18next": "24.2.2",
|
|
60
60
|
"lodash": "^4.17.21"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ee6d161b00a4f17fa5c9cf1203698d64597251ff"
|
|
63
63
|
}
|