@steedos-widgets/amis-lib 6.10.54-beta.1 → 6.10.54-beta.10
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__/calendarResourcesApi.test.d.ts +1 -0
- package/dist/types/lib/converter/amis/calendar.d.ts +2 -0
- package/dist/types/workflow/__tests__/approve-dingtalk-pc-reflow.test.d.ts +1 -0
- package/dist/types/workflow/__tests__/attachment-template-files.test.d.ts +1 -0
- package/dist/types/workflow/attachment.d.ts +166 -98
- package/dist/types/workflow/util.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -44,6 +44,8 @@ export function getCalendarResourcesApi(objectSchema: any, calendarOptions: any)
|
|
|
44
44
|
url: string;
|
|
45
45
|
adaptor: (payload: any, response: any, api: any, context: any) => any;
|
|
46
46
|
};
|
|
47
|
+
export function getCalendarResourceSortFields(sort: any): any;
|
|
48
|
+
export function getFullCalendarResourceOrder(sort: any): any;
|
|
47
49
|
/**
|
|
48
50
|
* 列表视图Calendar amisSchema
|
|
49
51
|
* @param {*} objectSchema 对象UISchema
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
56
|
-
})[];
|
|
62
|
+
};
|
|
57
63
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
76
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
161
|
-
})[];
|
|
188
|
+
};
|
|
162
189
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
181
|
-
|
|
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.
|
|
4
|
+
"version": "6.10.54-beta.10",
|
|
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": "ce06c0c514a32fa40b51d76b06aa66dfd8becae9"
|
|
63
63
|
}
|