@steedos-widgets/amis-lib 6.10.4 → 6.10.6

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.
@@ -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: {
@@ -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: {
@@ -27,4 +27,5 @@ export function getInstanceInfo(props: any): Promise<{
27
27
  cc_users: any;
28
28
  traces: any;
29
29
  historyApproves: any;
30
+ approvalCommentsFields: {};
30
31
  }>;
@@ -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",
4
+ "version": "6.10.6",
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": "2ff729788cf8cde89acab99189782ce72d8196da"
64
+ "gitHead": "b709f2aeb499eacd01e554c279bc5a994956bbf1"
65
65
  }