@steedos-widgets/amis-lib 6.10.3 → 6.10.5
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 +503 -162
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +504 -163
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +270 -234
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/approval_comments.d.ts +14 -0
- package/dist/types/workflow/approve.d.ts +16 -15
- package/dist/types/workflow/flow.d.ts +20 -31
- package/dist/types/workflow/instance.d.ts +1 -0
- package/dist/types/workflow/util.d.ts +17 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function approvalCommentsToAmis(field: any, readonly: any, ctx: any): {
|
|
2
|
+
type: string;
|
|
3
|
+
label: any;
|
|
4
|
+
body: {
|
|
5
|
+
type: string;
|
|
6
|
+
className: string;
|
|
7
|
+
body: {
|
|
8
|
+
type: string;
|
|
9
|
+
tpl: string;
|
|
10
|
+
className: string;
|
|
11
|
+
}[];
|
|
12
|
+
size: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
@@ -192,6 +192,8 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
192
192
|
maxRows?: undefined;
|
|
193
193
|
placeholder?: undefined;
|
|
194
194
|
requiredOn?: undefined;
|
|
195
|
+
value?: undefined;
|
|
196
|
+
onEvent?: undefined;
|
|
195
197
|
} | {
|
|
196
198
|
type: string;
|
|
197
199
|
label: boolean;
|
|
@@ -201,6 +203,20 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
201
203
|
maxRows: number;
|
|
202
204
|
placeholder: any;
|
|
203
205
|
requiredOn: string;
|
|
206
|
+
value: any;
|
|
207
|
+
onEvent: {
|
|
208
|
+
change: {
|
|
209
|
+
actions: {
|
|
210
|
+
componentId: string;
|
|
211
|
+
actionType: string;
|
|
212
|
+
args: {
|
|
213
|
+
value: {
|
|
214
|
+
instance_my_approve_description: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
}[];
|
|
218
|
+
};
|
|
219
|
+
};
|
|
204
220
|
})[];
|
|
205
221
|
onEvent: {
|
|
206
222
|
approve_judge_change: {
|
|
@@ -210,21 +226,6 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
210
226
|
args: {};
|
|
211
227
|
}[];
|
|
212
228
|
};
|
|
213
|
-
validateError: {
|
|
214
|
-
weight: number;
|
|
215
|
-
actions: {
|
|
216
|
-
componentId: string;
|
|
217
|
-
args: {
|
|
218
|
-
msgType: string;
|
|
219
|
-
position: string;
|
|
220
|
-
closeButton: boolean;
|
|
221
|
-
showIcon: boolean;
|
|
222
|
-
title: any;
|
|
223
|
-
msg: any;
|
|
224
|
-
};
|
|
225
|
-
actionType: string;
|
|
226
|
-
}[];
|
|
227
|
-
};
|
|
228
229
|
};
|
|
229
230
|
}[];
|
|
230
231
|
id: string;
|
|
@@ -404,6 +404,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
404
404
|
maxRows?: undefined;
|
|
405
405
|
placeholder?: undefined;
|
|
406
406
|
requiredOn?: undefined;
|
|
407
|
+
value?: undefined;
|
|
408
|
+
onEvent?: undefined;
|
|
407
409
|
} | {
|
|
408
410
|
type: string;
|
|
409
411
|
label: boolean;
|
|
@@ -413,6 +415,20 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
413
415
|
maxRows: number;
|
|
414
416
|
placeholder: any;
|
|
415
417
|
requiredOn: string;
|
|
418
|
+
value: any;
|
|
419
|
+
onEvent: {
|
|
420
|
+
change: {
|
|
421
|
+
actions: {
|
|
422
|
+
componentId: string;
|
|
423
|
+
actionType: string;
|
|
424
|
+
args: {
|
|
425
|
+
value: {
|
|
426
|
+
instance_my_approve_description: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
}[];
|
|
430
|
+
};
|
|
431
|
+
};
|
|
416
432
|
})[];
|
|
417
433
|
onEvent: {
|
|
418
434
|
approve_judge_change: {
|
|
@@ -422,21 +438,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
422
438
|
args: {};
|
|
423
439
|
}[];
|
|
424
440
|
};
|
|
425
|
-
validateError: {
|
|
426
|
-
weight: number;
|
|
427
|
-
actions: {
|
|
428
|
-
componentId: string;
|
|
429
|
-
args: {
|
|
430
|
-
msgType: string;
|
|
431
|
-
position: string;
|
|
432
|
-
closeButton: boolean;
|
|
433
|
-
showIcon: boolean;
|
|
434
|
-
title: any;
|
|
435
|
-
msg: any;
|
|
436
|
-
};
|
|
437
|
-
actionType: string;
|
|
438
|
-
}[];
|
|
439
|
-
};
|
|
440
441
|
};
|
|
441
442
|
}[];
|
|
442
443
|
id: string;
|
|
@@ -472,7 +473,10 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
472
473
|
};
|
|
473
474
|
id: string;
|
|
474
475
|
level: string;
|
|
475
|
-
className:
|
|
476
|
+
className: {
|
|
477
|
+
"approve-button w-14 h-14 rounded-full fixed bottom-4 right-4 shadow-lg text-white text-base text-center font-semibold bg-blue-500 p-0": boolean;
|
|
478
|
+
hidden: boolean;
|
|
479
|
+
};
|
|
476
480
|
} | {
|
|
477
481
|
type: string;
|
|
478
482
|
debug: boolean;
|
|
@@ -600,21 +604,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
600
604
|
})[];
|
|
601
605
|
id: string;
|
|
602
606
|
onEvent: {
|
|
603
|
-
validateError: {
|
|
604
|
-
weight: number;
|
|
605
|
-
actions: {
|
|
606
|
-
componentId: string;
|
|
607
|
-
args: {
|
|
608
|
-
msgType: string;
|
|
609
|
-
position: string;
|
|
610
|
-
closeButton: boolean;
|
|
611
|
-
showIcon: boolean;
|
|
612
|
-
title: any;
|
|
613
|
-
msg: any;
|
|
614
|
-
};
|
|
615
|
-
actionType: string;
|
|
616
|
-
}[];
|
|
617
|
-
};
|
|
618
607
|
change: {
|
|
619
608
|
weight: number;
|
|
620
609
|
actions: any[];
|
|
@@ -1 +1,18 @@
|
|
|
1
1
|
export function getOpinionFieldStepsName(field: any, top_keywords: any): any[];
|
|
2
|
+
export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any): any[];
|
|
3
|
+
export function isOpinionOfField(approve: any, field: any): boolean;
|
|
4
|
+
export function isMyApprove({ approve, only_cc_opinion, box, currentApprove, field }: {
|
|
5
|
+
approve: any;
|
|
6
|
+
only_cc_opinion: any;
|
|
7
|
+
box: any;
|
|
8
|
+
currentApprove: any;
|
|
9
|
+
field: any;
|
|
10
|
+
}): boolean;
|
|
11
|
+
export function showApprove(approve: any, field: any): boolean;
|
|
12
|
+
export function isReaded(judge: any): boolean;
|
|
13
|
+
export function showApproveDefaultDescription(approve: any): boolean;
|
|
14
|
+
export function showApproveSignImage(judge: any): boolean;
|
|
15
|
+
export function getUserApprove({ instance, userId }: {
|
|
16
|
+
instance: any;
|
|
17
|
+
userId: any;
|
|
18
|
+
}): 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.
|
|
4
|
+
"version": "6.10.5",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"react-i18next": "12.3.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d59dba590c2424f15aed1e95adf1b2a53e3be960"
|
|
65
65
|
}
|