@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.
@@ -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
@@ -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
- 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;
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
- actionType: string;
56
- })[];
66
+ };
57
67
  };
58
- click?: undefined;
59
- };
60
- className?: undefined;
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
- label?: undefined;
76
- btnLabel?: undefined;
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
- 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;
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
- actionType: string;
161
- })[];
192
+ };
162
193
  };
163
- click?: undefined;
164
- };
165
- className?: undefined;
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
- label?: undefined;
181
- btnLabel?: undefined;
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.1",
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": "8260e94206098a2bb9a9946152bff96f96d2eafa"
62
+ "gitHead": "88d9dc5b0bb1a0ac7810b56bf6bcbbccabe72ca4"
63
63
  }