@steedos-widgets/amis-lib 6.10.54-beta.1 → 6.10.54-beta.11
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-office-viewer.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 +170 -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,33 @@
|
|
|
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
|
+
};
|
|
27
|
+
export function getAmisOfficeViewerWordContainerClass(windowLike: any): string;
|
|
28
|
+
export function getAttachmentPdfViewerBaseUrl(windowLike: any): any;
|
|
29
|
+
export function getAttachmentPdfPreviewUrl(fileUrl: any, windowLike: any, viewerBaseUrl: any): any;
|
|
30
|
+
export function ensureAmisOfficeViewerPackageUrls(windowLike: any): boolean;
|
|
1
31
|
export function getAttachments(instance: any): Promise<{
|
|
2
32
|
type: string;
|
|
3
33
|
className: string;
|
|
@@ -15,49 +45,76 @@ export function getAttachments(instance: any): Promise<{
|
|
|
15
45
|
title: string;
|
|
16
46
|
body: ({
|
|
17
47
|
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;
|
|
48
|
+
size: string;
|
|
49
|
+
className: string;
|
|
50
|
+
body: ({
|
|
51
|
+
type: string;
|
|
52
|
+
className: string;
|
|
53
|
+
api: {
|
|
54
|
+
method: string;
|
|
55
|
+
url: string;
|
|
56
|
+
dataType: string;
|
|
57
|
+
headers: {
|
|
58
|
+
Authorization: string;
|
|
59
|
+
};
|
|
60
|
+
requestAdaptor: string;
|
|
61
|
+
adaptor: (payload: any) => {
|
|
62
|
+
data: {
|
|
63
|
+
flowTemplateFiles: any;
|
|
64
|
+
hasFlowTemplateFiles: boolean;
|
|
54
65
|
};
|
|
55
|
-
|
|
56
|
-
})[];
|
|
66
|
+
};
|
|
57
67
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
68
|
+
body: {
|
|
69
|
+
type: string;
|
|
70
|
+
visibleOn: string;
|
|
71
|
+
template: string;
|
|
72
|
+
}[];
|
|
73
|
+
} | {
|
|
74
|
+
type: string;
|
|
75
|
+
label: string;
|
|
76
|
+
btnLabel: string;
|
|
77
|
+
multiple: boolean;
|
|
78
|
+
maxCount: number;
|
|
79
|
+
action: string;
|
|
80
|
+
headers: {
|
|
81
|
+
Authorization: string;
|
|
82
|
+
};
|
|
83
|
+
extraData: {
|
|
84
|
+
space: any;
|
|
85
|
+
instance: any;
|
|
86
|
+
approve: any;
|
|
87
|
+
owner: any;
|
|
88
|
+
owner_name: any;
|
|
89
|
+
};
|
|
90
|
+
onEvent: {
|
|
91
|
+
uploadSuccess: {
|
|
92
|
+
weight: number;
|
|
93
|
+
actions: ({
|
|
94
|
+
componentId: string;
|
|
95
|
+
args: {
|
|
96
|
+
msgType: string;
|
|
97
|
+
position: string;
|
|
98
|
+
closeButton: boolean;
|
|
99
|
+
showIcon: boolean;
|
|
100
|
+
msg: string;
|
|
101
|
+
};
|
|
102
|
+
actionType: string;
|
|
103
|
+
} | {
|
|
104
|
+
componentId: string;
|
|
105
|
+
args: {
|
|
106
|
+
msgType?: undefined;
|
|
107
|
+
position?: undefined;
|
|
108
|
+
closeButton?: undefined;
|
|
109
|
+
showIcon?: undefined;
|
|
110
|
+
msg?: undefined;
|
|
111
|
+
};
|
|
112
|
+
actionType: string;
|
|
113
|
+
})[];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
})[];
|
|
117
|
+
onEvent?: undefined;
|
|
61
118
|
} | {
|
|
62
119
|
type: string;
|
|
63
120
|
className: string;
|
|
@@ -70,15 +127,9 @@ export function getAttachments(instance: any): Promise<{
|
|
|
70
127
|
actionType: string;
|
|
71
128
|
}[];
|
|
72
129
|
};
|
|
73
|
-
uploadSuccess?: undefined;
|
|
74
130
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
multiple?: undefined;
|
|
78
|
-
maxCount?: undefined;
|
|
79
|
-
action?: undefined;
|
|
80
|
-
headers?: undefined;
|
|
81
|
-
extraData?: undefined;
|
|
131
|
+
size?: undefined;
|
|
132
|
+
body?: undefined;
|
|
82
133
|
})[];
|
|
83
134
|
id: string;
|
|
84
135
|
wrapWithPanel: boolean;
|
|
@@ -120,49 +171,76 @@ export function getAttachmentUploadInput(instance: any): Promise<{
|
|
|
120
171
|
title: string;
|
|
121
172
|
body: ({
|
|
122
173
|
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;
|
|
174
|
+
size: string;
|
|
175
|
+
className: string;
|
|
176
|
+
body: ({
|
|
177
|
+
type: string;
|
|
178
|
+
className: string;
|
|
179
|
+
api: {
|
|
180
|
+
method: string;
|
|
181
|
+
url: string;
|
|
182
|
+
dataType: string;
|
|
183
|
+
headers: {
|
|
184
|
+
Authorization: string;
|
|
185
|
+
};
|
|
186
|
+
requestAdaptor: string;
|
|
187
|
+
adaptor: (payload: any) => {
|
|
188
|
+
data: {
|
|
189
|
+
flowTemplateFiles: any;
|
|
190
|
+
hasFlowTemplateFiles: boolean;
|
|
159
191
|
};
|
|
160
|
-
|
|
161
|
-
})[];
|
|
192
|
+
};
|
|
162
193
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
194
|
+
body: {
|
|
195
|
+
type: string;
|
|
196
|
+
visibleOn: string;
|
|
197
|
+
template: string;
|
|
198
|
+
}[];
|
|
199
|
+
} | {
|
|
200
|
+
type: string;
|
|
201
|
+
label: string;
|
|
202
|
+
btnLabel: string;
|
|
203
|
+
multiple: boolean;
|
|
204
|
+
maxCount: number;
|
|
205
|
+
action: string;
|
|
206
|
+
headers: {
|
|
207
|
+
Authorization: string;
|
|
208
|
+
};
|
|
209
|
+
extraData: {
|
|
210
|
+
space: any;
|
|
211
|
+
instance: any;
|
|
212
|
+
approve: any;
|
|
213
|
+
owner: any;
|
|
214
|
+
owner_name: any;
|
|
215
|
+
};
|
|
216
|
+
onEvent: {
|
|
217
|
+
uploadSuccess: {
|
|
218
|
+
weight: number;
|
|
219
|
+
actions: ({
|
|
220
|
+
componentId: string;
|
|
221
|
+
args: {
|
|
222
|
+
msgType: string;
|
|
223
|
+
position: string;
|
|
224
|
+
closeButton: boolean;
|
|
225
|
+
showIcon: boolean;
|
|
226
|
+
msg: string;
|
|
227
|
+
};
|
|
228
|
+
actionType: string;
|
|
229
|
+
} | {
|
|
230
|
+
componentId: string;
|
|
231
|
+
args: {
|
|
232
|
+
msgType?: undefined;
|
|
233
|
+
position?: undefined;
|
|
234
|
+
closeButton?: undefined;
|
|
235
|
+
showIcon?: undefined;
|
|
236
|
+
msg?: undefined;
|
|
237
|
+
};
|
|
238
|
+
actionType: string;
|
|
239
|
+
})[];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
})[];
|
|
243
|
+
onEvent?: undefined;
|
|
166
244
|
} | {
|
|
167
245
|
type: string;
|
|
168
246
|
className: string;
|
|
@@ -175,15 +253,9 @@ export function getAttachmentUploadInput(instance: any): Promise<{
|
|
|
175
253
|
actionType: string;
|
|
176
254
|
}[];
|
|
177
255
|
};
|
|
178
|
-
uploadSuccess?: undefined;
|
|
179
256
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
multiple?: undefined;
|
|
183
|
-
maxCount?: undefined;
|
|
184
|
-
action?: undefined;
|
|
185
|
-
headers?: undefined;
|
|
186
|
-
extraData?: undefined;
|
|
257
|
+
size?: undefined;
|
|
258
|
+
body?: undefined;
|
|
187
259
|
})[];
|
|
188
260
|
id: string;
|
|
189
261
|
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.11",
|
|
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": "88d9dc5b0bb1a0ac7810b56bf6bcbbccabe72ca4"
|
|
63
63
|
}
|