@steedos-widgets/amis-lib 6.10.53-beta.8 → 6.10.53
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__/printInputTable.reuseAmis.test.d.ts +1 -0
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +2 -2
- package/dist/types/lib/converter/amis/fields/table.d.ts +1 -1
- package/dist/types/lib/input_table.d.ts +25 -0
- package/dist/types/lib/objects.d.ts +46 -1
- package/dist/types/lib/printInputTableCell.d.ts +23 -0
- package/dist/types/workflow/approve.d.ts +24 -4
- package/dist/types/workflow/flow.d.ts +3 -1
- package/dist/types/workflow/history.d.ts +53 -1
- package/dist/types/workflow/related.d.ts +7 -2
- package/dist/types/workflow/util.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -247,7 +247,7 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
247
247
|
} | {
|
|
248
248
|
perPage: any;
|
|
249
249
|
expandConfig: {
|
|
250
|
-
expand:
|
|
250
|
+
expand: any;
|
|
251
251
|
};
|
|
252
252
|
mode: string;
|
|
253
253
|
perPageAvailable: number[];
|
|
@@ -334,7 +334,7 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
334
334
|
} | {
|
|
335
335
|
perPage: any;
|
|
336
336
|
expandConfig: {
|
|
337
|
-
expand:
|
|
337
|
+
expand: any;
|
|
338
338
|
};
|
|
339
339
|
mode: string;
|
|
340
340
|
perPageAvailable: number[];
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
export function getAmisInputTableSchema(props: any): Promise<{
|
|
2
|
+
type: string;
|
|
3
|
+
label: any;
|
|
4
|
+
labelClassName: any;
|
|
5
|
+
labelRemark: any;
|
|
6
|
+
labelAlign: any;
|
|
7
|
+
mode: any;
|
|
8
|
+
visibleOn: any;
|
|
9
|
+
visible: any;
|
|
10
|
+
hiddenOn: any;
|
|
11
|
+
hidden: any;
|
|
12
|
+
required: any;
|
|
13
|
+
className: string;
|
|
14
|
+
body: {
|
|
15
|
+
type: string;
|
|
16
|
+
className: string;
|
|
17
|
+
dataProvider: (data: any, setData: any) => void;
|
|
18
|
+
body: {
|
|
19
|
+
type: string;
|
|
20
|
+
className: string;
|
|
21
|
+
border: boolean;
|
|
22
|
+
padding: string;
|
|
23
|
+
trs: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
2
27
|
type: string;
|
|
3
28
|
body: {
|
|
4
29
|
type: string;
|
|
@@ -328,7 +328,52 @@ export function getRecordServiceSchema(objectName: any, appId: any, props: {}, b
|
|
|
328
328
|
hiddenOn?: string;
|
|
329
329
|
type: string;
|
|
330
330
|
className: string;
|
|
331
|
-
body:
|
|
331
|
+
body: ({
|
|
332
|
+
type: string;
|
|
333
|
+
className: string;
|
|
334
|
+
style: {
|
|
335
|
+
minHeight: string;
|
|
336
|
+
};
|
|
337
|
+
visibleOn: string;
|
|
338
|
+
body: ({
|
|
339
|
+
type: string;
|
|
340
|
+
html: string;
|
|
341
|
+
tpl?: undefined;
|
|
342
|
+
className?: undefined;
|
|
343
|
+
label?: undefined;
|
|
344
|
+
level?: undefined;
|
|
345
|
+
onEvent?: undefined;
|
|
346
|
+
} | {
|
|
347
|
+
type: string;
|
|
348
|
+
tpl: string;
|
|
349
|
+
className: string;
|
|
350
|
+
html?: undefined;
|
|
351
|
+
label?: undefined;
|
|
352
|
+
level?: undefined;
|
|
353
|
+
onEvent?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
type: string;
|
|
356
|
+
label: string;
|
|
357
|
+
level: string;
|
|
358
|
+
className: string;
|
|
359
|
+
onEvent: {
|
|
360
|
+
click: {
|
|
361
|
+
actions: {
|
|
362
|
+
actionType: string;
|
|
363
|
+
script: string;
|
|
364
|
+
}[];
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
html?: undefined;
|
|
368
|
+
tpl?: undefined;
|
|
369
|
+
})[];
|
|
370
|
+
} | {
|
|
371
|
+
type: string;
|
|
372
|
+
className: string;
|
|
373
|
+
body: any;
|
|
374
|
+
visibleOn: string;
|
|
375
|
+
style?: undefined;
|
|
376
|
+
})[];
|
|
332
377
|
};
|
|
333
378
|
data: any;
|
|
334
379
|
style: any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function buildPrintCellSchema(fieldSpec: any, value: any, display: any): {
|
|
2
|
+
type: string;
|
|
3
|
+
value: any;
|
|
4
|
+
} | {
|
|
5
|
+
type: string;
|
|
6
|
+
tpl: string;
|
|
7
|
+
};
|
|
8
|
+
export function getPrintCellStyleForType(type: any): {
|
|
9
|
+
whiteSpace: string;
|
|
10
|
+
} | {
|
|
11
|
+
whiteSpace?: undefined;
|
|
12
|
+
};
|
|
13
|
+
export function normalizeFieldSpecForPrint(f: any): {
|
|
14
|
+
name: any;
|
|
15
|
+
type: any;
|
|
16
|
+
label: any;
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
precision: any;
|
|
19
|
+
format: any;
|
|
20
|
+
prefix: any;
|
|
21
|
+
suffix: any;
|
|
22
|
+
options: any;
|
|
23
|
+
};
|
|
@@ -262,13 +262,14 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
262
262
|
valign: string;
|
|
263
263
|
columnClassName: string;
|
|
264
264
|
} | {
|
|
265
|
-
body: {
|
|
265
|
+
body: ({
|
|
266
266
|
type: string;
|
|
267
267
|
id: string;
|
|
268
268
|
api: {
|
|
269
269
|
url: string;
|
|
270
270
|
method: string;
|
|
271
271
|
sendOn: string;
|
|
272
|
+
trackExpression: string;
|
|
272
273
|
messages: {};
|
|
273
274
|
requestAdaptor: string;
|
|
274
275
|
adaptor: string;
|
|
@@ -358,7 +359,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
358
359
|
joinValues?: undefined;
|
|
359
360
|
extractValue?: undefined;
|
|
360
361
|
})[];
|
|
361
|
-
|
|
362
|
+
tpl?: undefined;
|
|
363
|
+
visibleOn?: undefined;
|
|
364
|
+
} | {
|
|
365
|
+
type: string;
|
|
366
|
+
tpl: string;
|
|
367
|
+
visibleOn: string;
|
|
368
|
+
id?: undefined;
|
|
369
|
+
api?: undefined;
|
|
370
|
+
body?: undefined;
|
|
371
|
+
})[];
|
|
362
372
|
id: string;
|
|
363
373
|
valign: string;
|
|
364
374
|
md?: undefined;
|
|
@@ -646,13 +656,14 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
646
656
|
valign: string;
|
|
647
657
|
columnClassName: string;
|
|
648
658
|
} | {
|
|
649
|
-
body: {
|
|
659
|
+
body: ({
|
|
650
660
|
type: string;
|
|
651
661
|
id: string;
|
|
652
662
|
api: {
|
|
653
663
|
url: string;
|
|
654
664
|
method: string;
|
|
655
665
|
sendOn: string;
|
|
666
|
+
trackExpression: string;
|
|
656
667
|
messages: {};
|
|
657
668
|
requestAdaptor: string;
|
|
658
669
|
adaptor: string;
|
|
@@ -742,7 +753,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
|
742
753
|
joinValues?: undefined;
|
|
743
754
|
extractValue?: undefined;
|
|
744
755
|
})[];
|
|
745
|
-
|
|
756
|
+
tpl?: undefined;
|
|
757
|
+
visibleOn?: undefined;
|
|
758
|
+
} | {
|
|
759
|
+
type: string;
|
|
760
|
+
tpl: string;
|
|
761
|
+
visibleOn: string;
|
|
762
|
+
id?: undefined;
|
|
763
|
+
api?: undefined;
|
|
764
|
+
body?: undefined;
|
|
765
|
+
})[];
|
|
746
766
|
id: string;
|
|
747
767
|
valign: string;
|
|
748
768
|
md?: undefined;
|
|
@@ -65,7 +65,9 @@ export function getFlowFormSchema(instance: any, box: any, print: any): Promise<
|
|
|
65
65
|
}[];
|
|
66
66
|
id: string;
|
|
67
67
|
messages: {};
|
|
68
|
-
pullRefresh: {
|
|
68
|
+
pullRefresh: {
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
};
|
|
69
71
|
regions: string[];
|
|
70
72
|
onEvent: {
|
|
71
73
|
"@data.@instanceDetail.changed": {
|
|
@@ -1,7 +1,59 @@
|
|
|
1
1
|
export function getInstanceApprovalHistory(box: any, isMobile: any): Promise<{
|
|
2
2
|
type: string;
|
|
3
|
+
id: string;
|
|
3
4
|
className: string;
|
|
4
|
-
|
|
5
|
+
onEvent: {
|
|
6
|
+
"approval.detail.show": {
|
|
7
|
+
weight: number;
|
|
8
|
+
actions: {
|
|
9
|
+
actionType: string;
|
|
10
|
+
data: {
|
|
11
|
+
stepName: string;
|
|
12
|
+
userName: string;
|
|
13
|
+
organizationName: string;
|
|
14
|
+
signatureUrl: string;
|
|
15
|
+
startDate: string;
|
|
16
|
+
finishDate: string;
|
|
17
|
+
finishDateDisplay: string;
|
|
18
|
+
judge: string;
|
|
19
|
+
judgeValue: string;
|
|
20
|
+
judgeDisplay: string;
|
|
21
|
+
isFinished: string;
|
|
22
|
+
isRead: string;
|
|
23
|
+
opinion: string;
|
|
24
|
+
autoSubmitted: string;
|
|
25
|
+
approveType: string;
|
|
26
|
+
};
|
|
27
|
+
dialog: {
|
|
28
|
+
type: string;
|
|
29
|
+
title: string;
|
|
30
|
+
size: string;
|
|
31
|
+
showCloseButton: boolean;
|
|
32
|
+
closeOnEsc: boolean;
|
|
33
|
+
actions: {
|
|
34
|
+
type: string;
|
|
35
|
+
label: string;
|
|
36
|
+
actionType: string;
|
|
37
|
+
level: string;
|
|
38
|
+
}[];
|
|
39
|
+
body: {
|
|
40
|
+
type: string;
|
|
41
|
+
className: string;
|
|
42
|
+
body: ({
|
|
43
|
+
type: string;
|
|
44
|
+
tpl: string;
|
|
45
|
+
visibleOn?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
type: string;
|
|
48
|
+
visibleOn: string;
|
|
49
|
+
tpl: string;
|
|
50
|
+
})[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
body: any[];
|
|
5
57
|
}>;
|
|
6
58
|
export function getINstanceApproveHistory2(instance: any): Promise<{
|
|
7
59
|
type: string;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export function getRelatedRecords(instance: any): Promise<{
|
|
2
2
|
type: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
size: string;
|
|
4
|
+
className: string;
|
|
5
|
+
body: {
|
|
6
|
+
type: string;
|
|
7
|
+
tpl: string;
|
|
8
|
+
}[];
|
|
9
|
+
}>;
|
|
5
10
|
export function getRelatedInstances(instance: any): Promise<{
|
|
6
11
|
type: string;
|
|
7
12
|
className: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export function shouldUseAllStepSelection(instance: any): boolean;
|
|
1
2
|
export function getOpinionFieldStepsName(field: any, top_keywords: any): any[];
|
|
2
3
|
export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any): any[];
|
|
3
4
|
export function isOpinionOfField(approve: any, field: any): boolean;
|
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.53
|
|
4
|
+
"version": "6.10.53",
|
|
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": "699c0b411723ab7d1686590be545c2b6fcf246c7"
|
|
63
63
|
}
|