@steedos-widgets/amis-lib 1.0.19 → 1.0.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 +248 -66
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +248 -66
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +360 -178
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lib/converter/amis/api.d.ts +1 -1
- package/dist/types/lib/converter/amis/header.d.ts +9 -2
- package/dist/types/lib/converter/amis/index.d.ts +2 -2
- package/dist/types/lib/converter/amis/toolbar.d.ts +24 -1
- package/dist/types/lib/objects.d.ts +25 -64
- package/dist/types/lib/objectsRelated.d.ts +48 -51
- package/dist/types/lib/page_init.d.ts +5 -1
- package/dist/types/lib/steedos.client.d.ts +1 -1
- package/dist/types/render.d.ts +2 -2
- package/dist/types/workflow/approve.d.ts +256 -0
- package/dist/types/workflow/attachment.d.ts +182 -0
- package/dist/types/workflow/flow.d.ts +611 -0
- package/dist/types/workflow/history.d.ts +36 -0
- package/dist/types/workflow/index.d.ts +2 -0
- package/dist/types/workflow/instance.d.ts +42 -0
- package/dist/types/workflow/related.d.ts +24 -0
- package/dist/types/workflow/util.d.ts +1 -0
- package/package.json +2 -2
- package/dist/types/lib/workflow/flow.d.ts +0 -31
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export function getAttachments(instance: any): Promise<{
|
|
2
|
+
type: string;
|
|
3
|
+
className: string;
|
|
4
|
+
headerClassName: string;
|
|
5
|
+
bodyClassName: string;
|
|
6
|
+
title: ({
|
|
7
|
+
type: string;
|
|
8
|
+
tpl: string;
|
|
9
|
+
title?: undefined;
|
|
10
|
+
body?: undefined;
|
|
11
|
+
id?: undefined;
|
|
12
|
+
wrapWithPanel?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
type: string;
|
|
15
|
+
title: string;
|
|
16
|
+
body: {
|
|
17
|
+
type: string;
|
|
18
|
+
labelClassName: string;
|
|
19
|
+
className: string;
|
|
20
|
+
label: string;
|
|
21
|
+
mode: string;
|
|
22
|
+
name: string;
|
|
23
|
+
id: string;
|
|
24
|
+
btnLabel: string;
|
|
25
|
+
btnClassName: string;
|
|
26
|
+
multiple: boolean;
|
|
27
|
+
maxLength: number;
|
|
28
|
+
submitType: string;
|
|
29
|
+
uploadType: string;
|
|
30
|
+
proxy: boolean;
|
|
31
|
+
drag: boolean;
|
|
32
|
+
autoUpload: boolean;
|
|
33
|
+
useChunk: boolean;
|
|
34
|
+
joinValues: boolean;
|
|
35
|
+
extractValue: boolean;
|
|
36
|
+
valueField: string;
|
|
37
|
+
receiver: {
|
|
38
|
+
url: string;
|
|
39
|
+
headers: {
|
|
40
|
+
Authorization: string;
|
|
41
|
+
};
|
|
42
|
+
method: string;
|
|
43
|
+
messages: {};
|
|
44
|
+
dataType: string;
|
|
45
|
+
requestAdaptor: string;
|
|
46
|
+
};
|
|
47
|
+
onEvent: {
|
|
48
|
+
success: {
|
|
49
|
+
weight: number;
|
|
50
|
+
actions: ({
|
|
51
|
+
componentId: string;
|
|
52
|
+
args: {
|
|
53
|
+
msgType?: undefined;
|
|
54
|
+
position?: undefined;
|
|
55
|
+
closeButton?: undefined;
|
|
56
|
+
showIcon?: undefined;
|
|
57
|
+
msg?: undefined;
|
|
58
|
+
};
|
|
59
|
+
actionType: string;
|
|
60
|
+
} | {
|
|
61
|
+
componentId: string;
|
|
62
|
+
args: {
|
|
63
|
+
msgType: string;
|
|
64
|
+
position: string;
|
|
65
|
+
closeButton: boolean;
|
|
66
|
+
showIcon: boolean;
|
|
67
|
+
msg: string;
|
|
68
|
+
};
|
|
69
|
+
actionType: string;
|
|
70
|
+
})[];
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}[];
|
|
74
|
+
id: string;
|
|
75
|
+
wrapWithPanel: boolean;
|
|
76
|
+
tpl?: undefined;
|
|
77
|
+
})[];
|
|
78
|
+
body: {
|
|
79
|
+
type: string;
|
|
80
|
+
id: string;
|
|
81
|
+
api: {
|
|
82
|
+
method: string;
|
|
83
|
+
url: string;
|
|
84
|
+
dataType: string;
|
|
85
|
+
headers: {
|
|
86
|
+
Authorization: string;
|
|
87
|
+
};
|
|
88
|
+
requestAdaptor: string;
|
|
89
|
+
};
|
|
90
|
+
body: {
|
|
91
|
+
type: string;
|
|
92
|
+
source: string;
|
|
93
|
+
title: boolean;
|
|
94
|
+
listItem: {
|
|
95
|
+
body: {
|
|
96
|
+
type: string;
|
|
97
|
+
inline: boolean;
|
|
98
|
+
tpl: string;
|
|
99
|
+
}[];
|
|
100
|
+
actions: {
|
|
101
|
+
icon: string;
|
|
102
|
+
type: string;
|
|
103
|
+
id: string;
|
|
104
|
+
}[];
|
|
105
|
+
id: string;
|
|
106
|
+
};
|
|
107
|
+
id: string;
|
|
108
|
+
}[];
|
|
109
|
+
}[];
|
|
110
|
+
}>;
|
|
111
|
+
export function getAttachmentUploadInput(instance: any): Promise<{
|
|
112
|
+
type: string;
|
|
113
|
+
tpl: string;
|
|
114
|
+
title?: undefined;
|
|
115
|
+
body?: undefined;
|
|
116
|
+
id?: undefined;
|
|
117
|
+
wrapWithPanel?: undefined;
|
|
118
|
+
} | {
|
|
119
|
+
type: string;
|
|
120
|
+
title: string;
|
|
121
|
+
body: {
|
|
122
|
+
type: string;
|
|
123
|
+
labelClassName: string;
|
|
124
|
+
className: string;
|
|
125
|
+
label: string;
|
|
126
|
+
mode: string;
|
|
127
|
+
name: string;
|
|
128
|
+
id: string;
|
|
129
|
+
btnLabel: string;
|
|
130
|
+
btnClassName: string;
|
|
131
|
+
multiple: boolean;
|
|
132
|
+
maxLength: number;
|
|
133
|
+
submitType: string;
|
|
134
|
+
uploadType: string;
|
|
135
|
+
proxy: boolean;
|
|
136
|
+
drag: boolean;
|
|
137
|
+
autoUpload: boolean;
|
|
138
|
+
useChunk: boolean;
|
|
139
|
+
joinValues: boolean;
|
|
140
|
+
extractValue: boolean;
|
|
141
|
+
valueField: string;
|
|
142
|
+
receiver: {
|
|
143
|
+
url: string;
|
|
144
|
+
headers: {
|
|
145
|
+
Authorization: string;
|
|
146
|
+
};
|
|
147
|
+
method: string;
|
|
148
|
+
messages: {};
|
|
149
|
+
dataType: string;
|
|
150
|
+
requestAdaptor: string;
|
|
151
|
+
};
|
|
152
|
+
onEvent: {
|
|
153
|
+
success: {
|
|
154
|
+
weight: number;
|
|
155
|
+
actions: ({
|
|
156
|
+
componentId: string;
|
|
157
|
+
args: {
|
|
158
|
+
msgType?: undefined;
|
|
159
|
+
position?: undefined;
|
|
160
|
+
closeButton?: undefined;
|
|
161
|
+
showIcon?: undefined;
|
|
162
|
+
msg?: undefined;
|
|
163
|
+
};
|
|
164
|
+
actionType: string;
|
|
165
|
+
} | {
|
|
166
|
+
componentId: string;
|
|
167
|
+
args: {
|
|
168
|
+
msgType: string;
|
|
169
|
+
position: string;
|
|
170
|
+
closeButton: boolean;
|
|
171
|
+
showIcon: boolean;
|
|
172
|
+
msg: string;
|
|
173
|
+
};
|
|
174
|
+
actionType: string;
|
|
175
|
+
})[];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
}[];
|
|
179
|
+
id: string;
|
|
180
|
+
wrapWithPanel: boolean;
|
|
181
|
+
tpl?: undefined;
|
|
182
|
+
}>;
|