@steedos-widgets/amis-lib 6.10.54-beta.1 → 6.10.54-beta.3

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.
@@ -1,3 +1,29 @@
1
+ export function shouldShowFlowTemplateFiles(instance: any): boolean;
2
+ export function buildFlowTemplateFilesQuery(instance: any): string;
3
+ export function getFlowTemplateFilesService(instance: any): {
4
+ type: string;
5
+ className: string;
6
+ api: {
7
+ method: string;
8
+ url: string;
9
+ dataType: string;
10
+ headers: {
11
+ Authorization: string;
12
+ };
13
+ requestAdaptor: string;
14
+ adaptor: (payload: any) => {
15
+ data: {
16
+ flowTemplateFiles: any;
17
+ hasFlowTemplateFiles: boolean;
18
+ };
19
+ };
20
+ };
21
+ body: {
22
+ type: string;
23
+ visibleOn: string;
24
+ template: string;
25
+ }[];
26
+ };
1
27
  export function getAttachments(instance: any): Promise<{
2
28
  type: string;
3
29
  className: string;
@@ -15,49 +41,76 @@ export function getAttachments(instance: any): Promise<{
15
41
  title: string;
16
42
  body: ({
17
43
  type: string;
18
- label: string;
19
- btnLabel: string;
20
- multiple: boolean;
21
- maxCount: number;
22
- action: string;
23
- headers: {
24
- Authorization: string;
25
- };
26
- extraData: {
27
- space: any;
28
- instance: any;
29
- approve: any;
30
- owner: any;
31
- owner_name: any;
32
- };
33
- onEvent: {
34
- uploadSuccess: {
35
- weight: number;
36
- actions: ({
37
- componentId: string;
38
- args: {
39
- msgType: string;
40
- position: string;
41
- closeButton: boolean;
42
- showIcon: boolean;
43
- msg: string;
44
- };
45
- actionType: string;
46
- } | {
47
- componentId: string;
48
- args: {
49
- msgType?: undefined;
50
- position?: undefined;
51
- closeButton?: undefined;
52
- showIcon?: undefined;
53
- msg?: undefined;
44
+ size: string;
45
+ className: string;
46
+ body: ({
47
+ type: string;
48
+ className: string;
49
+ api: {
50
+ method: string;
51
+ url: string;
52
+ dataType: string;
53
+ headers: {
54
+ Authorization: string;
55
+ };
56
+ requestAdaptor: string;
57
+ adaptor: (payload: any) => {
58
+ data: {
59
+ flowTemplateFiles: any;
60
+ hasFlowTemplateFiles: boolean;
54
61
  };
55
- actionType: string;
56
- })[];
62
+ };
57
63
  };
58
- click?: undefined;
59
- };
60
- className?: undefined;
64
+ body: {
65
+ type: string;
66
+ visibleOn: string;
67
+ template: string;
68
+ }[];
69
+ } | {
70
+ type: string;
71
+ label: string;
72
+ btnLabel: string;
73
+ multiple: boolean;
74
+ maxCount: number;
75
+ action: string;
76
+ headers: {
77
+ Authorization: string;
78
+ };
79
+ extraData: {
80
+ space: any;
81
+ instance: any;
82
+ approve: any;
83
+ owner: any;
84
+ owner_name: any;
85
+ };
86
+ onEvent: {
87
+ uploadSuccess: {
88
+ weight: number;
89
+ actions: ({
90
+ componentId: string;
91
+ args: {
92
+ msgType: string;
93
+ position: string;
94
+ closeButton: boolean;
95
+ showIcon: boolean;
96
+ msg: string;
97
+ };
98
+ actionType: string;
99
+ } | {
100
+ componentId: string;
101
+ args: {
102
+ msgType?: undefined;
103
+ position?: undefined;
104
+ closeButton?: undefined;
105
+ showIcon?: undefined;
106
+ msg?: undefined;
107
+ };
108
+ actionType: string;
109
+ })[];
110
+ };
111
+ };
112
+ })[];
113
+ onEvent?: undefined;
61
114
  } | {
62
115
  type: string;
63
116
  className: string;
@@ -70,15 +123,9 @@ export function getAttachments(instance: any): Promise<{
70
123
  actionType: string;
71
124
  }[];
72
125
  };
73
- uploadSuccess?: undefined;
74
126
  };
75
- label?: undefined;
76
- btnLabel?: undefined;
77
- multiple?: undefined;
78
- maxCount?: undefined;
79
- action?: undefined;
80
- headers?: undefined;
81
- extraData?: undefined;
127
+ size?: undefined;
128
+ body?: undefined;
82
129
  })[];
83
130
  id: string;
84
131
  wrapWithPanel: boolean;
@@ -120,49 +167,76 @@ export function getAttachmentUploadInput(instance: any): Promise<{
120
167
  title: string;
121
168
  body: ({
122
169
  type: string;
123
- label: string;
124
- btnLabel: string;
125
- multiple: boolean;
126
- maxCount: number;
127
- action: string;
128
- headers: {
129
- Authorization: string;
130
- };
131
- extraData: {
132
- space: any;
133
- instance: any;
134
- approve: any;
135
- owner: any;
136
- owner_name: any;
137
- };
138
- onEvent: {
139
- uploadSuccess: {
140
- weight: number;
141
- actions: ({
142
- componentId: string;
143
- args: {
144
- msgType: string;
145
- position: string;
146
- closeButton: boolean;
147
- showIcon: boolean;
148
- msg: string;
149
- };
150
- actionType: string;
151
- } | {
152
- componentId: string;
153
- args: {
154
- msgType?: undefined;
155
- position?: undefined;
156
- closeButton?: undefined;
157
- showIcon?: undefined;
158
- msg?: undefined;
170
+ size: string;
171
+ className: string;
172
+ body: ({
173
+ type: string;
174
+ className: string;
175
+ api: {
176
+ method: string;
177
+ url: string;
178
+ dataType: string;
179
+ headers: {
180
+ Authorization: string;
181
+ };
182
+ requestAdaptor: string;
183
+ adaptor: (payload: any) => {
184
+ data: {
185
+ flowTemplateFiles: any;
186
+ hasFlowTemplateFiles: boolean;
159
187
  };
160
- actionType: string;
161
- })[];
188
+ };
162
189
  };
163
- click?: undefined;
164
- };
165
- className?: undefined;
190
+ body: {
191
+ type: string;
192
+ visibleOn: string;
193
+ template: string;
194
+ }[];
195
+ } | {
196
+ type: string;
197
+ label: string;
198
+ btnLabel: string;
199
+ multiple: boolean;
200
+ maxCount: number;
201
+ action: string;
202
+ headers: {
203
+ Authorization: string;
204
+ };
205
+ extraData: {
206
+ space: any;
207
+ instance: any;
208
+ approve: any;
209
+ owner: any;
210
+ owner_name: any;
211
+ };
212
+ onEvent: {
213
+ uploadSuccess: {
214
+ weight: number;
215
+ actions: ({
216
+ componentId: string;
217
+ args: {
218
+ msgType: string;
219
+ position: string;
220
+ closeButton: boolean;
221
+ showIcon: boolean;
222
+ msg: string;
223
+ };
224
+ actionType: string;
225
+ } | {
226
+ componentId: string;
227
+ args: {
228
+ msgType?: undefined;
229
+ position?: undefined;
230
+ closeButton?: undefined;
231
+ showIcon?: undefined;
232
+ msg?: undefined;
233
+ };
234
+ actionType: string;
235
+ })[];
236
+ };
237
+ };
238
+ })[];
239
+ onEvent?: undefined;
166
240
  } | {
167
241
  type: string;
168
242
  className: string;
@@ -175,15 +249,9 @@ export function getAttachmentUploadInput(instance: any): Promise<{
175
249
  actionType: string;
176
250
  }[];
177
251
  };
178
- uploadSuccess?: undefined;
179
252
  };
180
- label?: undefined;
181
- btnLabel?: undefined;
182
- multiple?: undefined;
183
- maxCount?: undefined;
184
- action?: undefined;
185
- headers?: undefined;
186
- extraData?: undefined;
253
+ size?: undefined;
254
+ body?: undefined;
187
255
  })[];
188
256
  id: string;
189
257
  wrapWithPanel: boolean;
@@ -1,6 +1,6 @@
1
1
  export function shouldUseAllStepSelection(instance: any): boolean;
2
2
  export function getOpinionFieldStepsName(field: any, top_keywords: any): any[];
3
- export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any): any[];
3
+ export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any, options?: {}): any[];
4
4
  export function isOpinionOfField(approve: any, field: any): boolean;
5
5
  export function isMyApprove({ approve, only_cc_opinion, box, currentApprove, field }: {
6
6
  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.1",
4
+ "version": "6.10.54-beta.3",
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": "8260e94206098a2bb9a9946152bff96f96d2eafa"
62
+ "gitHead": "13b65fb2d37e4ceeead2d235cfdfc76ae4732374"
63
63
  }