@steedos-widgets/amis-lib 1.0.38 → 1.0.40
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 +47 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +53 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +47 -26
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +180 -0
- package/dist/types/workflow/approve.d.ts +36 -1
- package/dist/types/workflow/flow.d.ts +37 -4
- package/package.json +2 -2
|
@@ -138,3 +138,183 @@ export function lookupToAmisSelect(field: any, readonly: any, ctx: any): Promise
|
|
|
138
138
|
}>;
|
|
139
139
|
export function lookupToAmis(field: any, readonly: any, ctx: any): Promise<{}>;
|
|
140
140
|
export function lookupToAmisSelectUser(field: any, readonly: any, ctx: any): Promise<{}>;
|
|
141
|
+
export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Promise<{
|
|
142
|
+
type: any;
|
|
143
|
+
labelField: any;
|
|
144
|
+
valueField: any;
|
|
145
|
+
modalMode: string;
|
|
146
|
+
source: {
|
|
147
|
+
method: string;
|
|
148
|
+
url: string;
|
|
149
|
+
data: {
|
|
150
|
+
orderBy: string;
|
|
151
|
+
orderDir: string;
|
|
152
|
+
pageNo: string;
|
|
153
|
+
pageSize: string;
|
|
154
|
+
query: string;
|
|
155
|
+
};
|
|
156
|
+
headers: {
|
|
157
|
+
Authorization: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
size: string;
|
|
161
|
+
pickerSchema: {
|
|
162
|
+
mode: string;
|
|
163
|
+
name: string;
|
|
164
|
+
draggable: boolean;
|
|
165
|
+
headerToolbar: string[];
|
|
166
|
+
defaultParams: {
|
|
167
|
+
perPage: any;
|
|
168
|
+
};
|
|
169
|
+
syncLocation: boolean;
|
|
170
|
+
keepItemSelectionOnPageChange: boolean;
|
|
171
|
+
checkOnItemClick: boolean;
|
|
172
|
+
labelTpl: string;
|
|
173
|
+
listItem: {
|
|
174
|
+
body: {
|
|
175
|
+
name: any;
|
|
176
|
+
label: any;
|
|
177
|
+
sortable: any;
|
|
178
|
+
width: any;
|
|
179
|
+
type: string;
|
|
180
|
+
tpl: string;
|
|
181
|
+
toggled: any;
|
|
182
|
+
}[];
|
|
183
|
+
actions: {
|
|
184
|
+
icon: string;
|
|
185
|
+
label: string;
|
|
186
|
+
type: string;
|
|
187
|
+
actionType: string;
|
|
188
|
+
link: string;
|
|
189
|
+
}[];
|
|
190
|
+
};
|
|
191
|
+
} | {
|
|
192
|
+
mode: string;
|
|
193
|
+
name: string;
|
|
194
|
+
headerToolbarClassName: string;
|
|
195
|
+
className: string;
|
|
196
|
+
draggable: boolean;
|
|
197
|
+
defaultParams: {
|
|
198
|
+
perPage: any;
|
|
199
|
+
};
|
|
200
|
+
columns: {
|
|
201
|
+
name: any;
|
|
202
|
+
label: any;
|
|
203
|
+
sortable: any;
|
|
204
|
+
type: string;
|
|
205
|
+
level: string;
|
|
206
|
+
actionType: string;
|
|
207
|
+
link: string;
|
|
208
|
+
innerClassName: string;
|
|
209
|
+
body: {
|
|
210
|
+
type: string;
|
|
211
|
+
body: "type";
|
|
212
|
+
size: string;
|
|
213
|
+
className: string;
|
|
214
|
+
};
|
|
215
|
+
}[] | {
|
|
216
|
+
name: string;
|
|
217
|
+
type: string;
|
|
218
|
+
width: number;
|
|
219
|
+
placeholder: string;
|
|
220
|
+
}[];
|
|
221
|
+
syncLocation: boolean;
|
|
222
|
+
keepItemSelectionOnPageChange: boolean;
|
|
223
|
+
checkOnItemClick: boolean;
|
|
224
|
+
labelTpl: string;
|
|
225
|
+
autoFillHeight: boolean;
|
|
226
|
+
columnsTogglable: boolean;
|
|
227
|
+
};
|
|
228
|
+
joinValues: boolean;
|
|
229
|
+
extractValue: boolean;
|
|
230
|
+
}>;
|
|
231
|
+
export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise<{
|
|
232
|
+
type: any;
|
|
233
|
+
labelField: any;
|
|
234
|
+
valueField: any;
|
|
235
|
+
modalMode: string;
|
|
236
|
+
source: {
|
|
237
|
+
method: string;
|
|
238
|
+
url: string;
|
|
239
|
+
data: {
|
|
240
|
+
orderBy: string;
|
|
241
|
+
orderDir: string;
|
|
242
|
+
pageNo: string;
|
|
243
|
+
pageSize: string;
|
|
244
|
+
query: string;
|
|
245
|
+
};
|
|
246
|
+
headers: {
|
|
247
|
+
Authorization: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
size: string;
|
|
251
|
+
pickerSchema: {
|
|
252
|
+
mode: string;
|
|
253
|
+
name: string;
|
|
254
|
+
draggable: boolean;
|
|
255
|
+
headerToolbar: string[];
|
|
256
|
+
defaultParams: {
|
|
257
|
+
perPage: any;
|
|
258
|
+
};
|
|
259
|
+
syncLocation: boolean;
|
|
260
|
+
keepItemSelectionOnPageChange: boolean;
|
|
261
|
+
checkOnItemClick: boolean;
|
|
262
|
+
labelTpl: string;
|
|
263
|
+
listItem: {
|
|
264
|
+
body: {
|
|
265
|
+
name: any;
|
|
266
|
+
label: any;
|
|
267
|
+
sortable: any;
|
|
268
|
+
width: any;
|
|
269
|
+
type: string;
|
|
270
|
+
tpl: string;
|
|
271
|
+
toggled: any;
|
|
272
|
+
}[];
|
|
273
|
+
actions: {
|
|
274
|
+
icon: string;
|
|
275
|
+
label: string;
|
|
276
|
+
type: string;
|
|
277
|
+
actionType: string;
|
|
278
|
+
link: string;
|
|
279
|
+
}[];
|
|
280
|
+
};
|
|
281
|
+
} | {
|
|
282
|
+
mode: string;
|
|
283
|
+
name: string;
|
|
284
|
+
headerToolbarClassName: string;
|
|
285
|
+
className: string;
|
|
286
|
+
draggable: boolean;
|
|
287
|
+
defaultParams: {
|
|
288
|
+
perPage: any;
|
|
289
|
+
};
|
|
290
|
+
columns: {
|
|
291
|
+
name: any;
|
|
292
|
+
label: any;
|
|
293
|
+
sortable: any;
|
|
294
|
+
type: string;
|
|
295
|
+
level: string;
|
|
296
|
+
actionType: string;
|
|
297
|
+
link: string;
|
|
298
|
+
innerClassName: string;
|
|
299
|
+
body: {
|
|
300
|
+
type: string;
|
|
301
|
+
body: "type";
|
|
302
|
+
size: string;
|
|
303
|
+
className: string;
|
|
304
|
+
};
|
|
305
|
+
}[] | {
|
|
306
|
+
name: string;
|
|
307
|
+
type: string;
|
|
308
|
+
width: number;
|
|
309
|
+
placeholder: string;
|
|
310
|
+
}[];
|
|
311
|
+
syncLocation: boolean;
|
|
312
|
+
keepItemSelectionOnPageChange: boolean;
|
|
313
|
+
checkOnItemClick: boolean;
|
|
314
|
+
labelTpl: string;
|
|
315
|
+
autoFillHeight: boolean;
|
|
316
|
+
columnsTogglable: boolean;
|
|
317
|
+
};
|
|
318
|
+
joinValues: boolean;
|
|
319
|
+
extractValue: boolean;
|
|
320
|
+
}>;
|
|
@@ -12,6 +12,8 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
12
12
|
debug: boolean;
|
|
13
13
|
id: string;
|
|
14
14
|
resetAfterSubmit: boolean;
|
|
15
|
+
clearPersistDataAfterSubmit: boolean;
|
|
16
|
+
persistData: string;
|
|
15
17
|
body: ({
|
|
16
18
|
type: string;
|
|
17
19
|
label: boolean;
|
|
@@ -131,7 +133,40 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
131
133
|
md: string;
|
|
132
134
|
valign: string;
|
|
133
135
|
} | {
|
|
134
|
-
body:
|
|
136
|
+
body: (({
|
|
137
|
+
type: string;
|
|
138
|
+
} & {
|
|
139
|
+
name: string;
|
|
140
|
+
hiddenOn: string;
|
|
141
|
+
required: boolean;
|
|
142
|
+
}) | {
|
|
143
|
+
type: string;
|
|
144
|
+
label: string;
|
|
145
|
+
name: string;
|
|
146
|
+
id: string;
|
|
147
|
+
required: boolean;
|
|
148
|
+
multiple: string;
|
|
149
|
+
source: {
|
|
150
|
+
url: string;
|
|
151
|
+
method: string;
|
|
152
|
+
sendOn: string;
|
|
153
|
+
headers: {
|
|
154
|
+
Authorization: string;
|
|
155
|
+
};
|
|
156
|
+
messages: {};
|
|
157
|
+
requestAdaptor: string;
|
|
158
|
+
adaptor: string;
|
|
159
|
+
data: {
|
|
160
|
+
"&": string;
|
|
161
|
+
$scopeId: string;
|
|
162
|
+
context: string;
|
|
163
|
+
next_step: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
labelField: string;
|
|
167
|
+
valueField: string;
|
|
168
|
+
hiddenOn: string;
|
|
169
|
+
})[];
|
|
135
170
|
id: string;
|
|
136
171
|
md?: undefined;
|
|
137
172
|
valign?: undefined;
|
|
@@ -208,6 +208,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
208
208
|
debug: boolean;
|
|
209
209
|
id: string;
|
|
210
210
|
resetAfterSubmit: boolean;
|
|
211
|
+
clearPersistDataAfterSubmit: boolean;
|
|
212
|
+
persistData: string;
|
|
211
213
|
body: ({
|
|
212
214
|
type: string;
|
|
213
215
|
label: boolean;
|
|
@@ -327,7 +329,40 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
327
329
|
md: string;
|
|
328
330
|
valign: string;
|
|
329
331
|
} | {
|
|
330
|
-
body:
|
|
332
|
+
body: (({
|
|
333
|
+
type: string;
|
|
334
|
+
} & {
|
|
335
|
+
name: string;
|
|
336
|
+
hiddenOn: string;
|
|
337
|
+
required: boolean;
|
|
338
|
+
}) | {
|
|
339
|
+
type: string;
|
|
340
|
+
label: string;
|
|
341
|
+
name: string;
|
|
342
|
+
id: string;
|
|
343
|
+
required: boolean;
|
|
344
|
+
multiple: string;
|
|
345
|
+
source: {
|
|
346
|
+
url: string;
|
|
347
|
+
method: string;
|
|
348
|
+
sendOn: string;
|
|
349
|
+
headers: {
|
|
350
|
+
Authorization: string;
|
|
351
|
+
};
|
|
352
|
+
messages: {};
|
|
353
|
+
requestAdaptor: string;
|
|
354
|
+
adaptor: string;
|
|
355
|
+
data: {
|
|
356
|
+
"&": string;
|
|
357
|
+
$scopeId: string;
|
|
358
|
+
context: string;
|
|
359
|
+
next_step: string;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
labelField: string;
|
|
363
|
+
valueField: string;
|
|
364
|
+
hiddenOn: string;
|
|
365
|
+
})[];
|
|
331
366
|
id: string;
|
|
332
367
|
md?: undefined;
|
|
333
368
|
valign?: undefined;
|
|
@@ -598,10 +633,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
598
633
|
pullRefresh: {};
|
|
599
634
|
regions: string[];
|
|
600
635
|
onEvent: {
|
|
601
|
-
|
|
602
|
-
weight: number;
|
|
636
|
+
"@data.@instanceDetail.changed": {
|
|
603
637
|
actions: {
|
|
604
|
-
componentId: string;
|
|
605
638
|
actionType: string;
|
|
606
639
|
}[];
|
|
607
640
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.40",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"lodash": "^4.17.21"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b3f5414582a1df943b6166d4590dc1f7ffd0874f"
|
|
62
62
|
}
|