@steedos-widgets/amis-lib 1.0.19 → 1.0.21

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.
@@ -0,0 +1,611 @@
1
+ export function getFlowFormSchema(instance: any, box: any): Promise<{
2
+ type: string;
3
+ name: string;
4
+ className: string;
5
+ title: {
6
+ type: string;
7
+ label: string;
8
+ objectApiName: string;
9
+ recordId: any;
10
+ id: string;
11
+ showRecordTitle: boolean;
12
+ recordLoaded: boolean;
13
+ className: string;
14
+ };
15
+ css: {
16
+ ".instance-approve-history .antd-Table-table thead": {
17
+ display: string;
18
+ };
19
+ ".instance-approve-history .antd-Table-heading": {
20
+ "font-size": string;
21
+ "font-weight": string;
22
+ "padding-left": string;
23
+ };
24
+ ".antd-List-heading": {
25
+ "font-size": string;
26
+ "font-weight": string;
27
+ };
28
+ };
29
+ body: ({
30
+ type: string;
31
+ className: string;
32
+ headerClassName: string;
33
+ bodyClassName: string;
34
+ title: ({
35
+ type: string;
36
+ tpl: string;
37
+ title?: undefined;
38
+ body?: undefined;
39
+ id?: undefined;
40
+ wrapWithPanel?: undefined;
41
+ } | {
42
+ type: string;
43
+ title: string;
44
+ body: {
45
+ type: string;
46
+ labelClassName: string;
47
+ className: string;
48
+ label: string;
49
+ mode: string;
50
+ name: string;
51
+ id: string;
52
+ btnLabel: string;
53
+ btnClassName: string;
54
+ multiple: boolean;
55
+ maxLength: number;
56
+ submitType: string;
57
+ uploadType: string;
58
+ proxy: boolean;
59
+ drag: boolean;
60
+ autoUpload: boolean;
61
+ useChunk: boolean;
62
+ joinValues: boolean;
63
+ extractValue: boolean;
64
+ valueField: string;
65
+ receiver: {
66
+ url: string;
67
+ headers: {
68
+ Authorization: string;
69
+ };
70
+ method: string;
71
+ messages: {};
72
+ dataType: string;
73
+ requestAdaptor: string;
74
+ };
75
+ onEvent: {
76
+ success: {
77
+ weight: number;
78
+ actions: ({
79
+ componentId: string;
80
+ args: {
81
+ msgType?: undefined;
82
+ position?: undefined;
83
+ closeButton?: undefined;
84
+ showIcon?: undefined;
85
+ msg?: undefined;
86
+ };
87
+ actionType: string;
88
+ } | {
89
+ componentId: string;
90
+ args: {
91
+ msgType: string;
92
+ position: string;
93
+ closeButton: boolean;
94
+ showIcon: boolean;
95
+ msg: string;
96
+ };
97
+ actionType: string;
98
+ })[];
99
+ };
100
+ };
101
+ }[];
102
+ id: string;
103
+ wrapWithPanel: boolean;
104
+ tpl?: undefined;
105
+ })[];
106
+ body: {
107
+ type: string;
108
+ id: string;
109
+ api: {
110
+ method: string;
111
+ url: string;
112
+ dataType: string;
113
+ headers: {
114
+ Authorization: string;
115
+ };
116
+ requestAdaptor: string;
117
+ };
118
+ body: {
119
+ type: string;
120
+ source: string;
121
+ title: boolean;
122
+ listItem: {
123
+ body: {
124
+ type: string;
125
+ inline: boolean;
126
+ tpl: string;
127
+ }[];
128
+ actions: {
129
+ icon: string;
130
+ type: string;
131
+ id: string;
132
+ }[];
133
+ id: string;
134
+ };
135
+ id: string;
136
+ }[];
137
+ }[];
138
+ } | {
139
+ type: string;
140
+ tpl: string;
141
+ }[] | {
142
+ type: string;
143
+ name: string;
144
+ source: string;
145
+ title: string;
146
+ listItem: {
147
+ body: {
148
+ type: string;
149
+ inline: boolean;
150
+ tpl: string;
151
+ }[];
152
+ actions: {
153
+ icon: string;
154
+ type: string;
155
+ id: string;
156
+ }[];
157
+ id: string;
158
+ };
159
+ id: string;
160
+ } | {
161
+ type: string;
162
+ headerClassName: string;
163
+ title: string;
164
+ source: string;
165
+ className: string;
166
+ columnsTogglable: boolean;
167
+ footable: {
168
+ expand: string;
169
+ };
170
+ columns: ({
171
+ name: string;
172
+ label: string;
173
+ type?: undefined;
174
+ tpl?: undefined;
175
+ classNameExpr?: undefined;
176
+ } | {
177
+ name: string;
178
+ label: string;
179
+ type: string;
180
+ tpl: string;
181
+ classNameExpr?: undefined;
182
+ } | {
183
+ name: string;
184
+ label: string;
185
+ classNameExpr: string;
186
+ type?: undefined;
187
+ tpl?: undefined;
188
+ })[];
189
+ } | {
190
+ type: string;
191
+ label: string;
192
+ onEvent: {
193
+ click: {
194
+ actions: {
195
+ componentId: string;
196
+ args: {};
197
+ actionType: string;
198
+ drawer: {
199
+ type: string;
200
+ overlay: boolean;
201
+ resizable: boolean;
202
+ size: string;
203
+ title: string;
204
+ className: string;
205
+ body: {
206
+ type: string;
207
+ debug: boolean;
208
+ id: string;
209
+ body: ({
210
+ type: string;
211
+ label: boolean;
212
+ name: string;
213
+ value: string;
214
+ options: {
215
+ label: string;
216
+ value: string;
217
+ }[];
218
+ id: string;
219
+ required: boolean;
220
+ onEvent: {
221
+ change: {
222
+ weight: number;
223
+ actions: ({
224
+ componentId: string;
225
+ args: {
226
+ value: {
227
+ new_judge: string;
228
+ new_next_step: any;
229
+ next_step: any;
230
+ };
231
+ judge?: undefined;
232
+ };
233
+ actionType: string;
234
+ eventName?: undefined;
235
+ } | {
236
+ args: {
237
+ judge: string;
238
+ value?: undefined;
239
+ };
240
+ actionType: string;
241
+ eventName: string;
242
+ componentId?: undefined;
243
+ })[];
244
+ };
245
+ };
246
+ } | {
247
+ type: string;
248
+ columns: ({
249
+ body: {
250
+ type: string;
251
+ tpl: string;
252
+ inline: boolean;
253
+ wrapperComponent: string;
254
+ id: string;
255
+ }[];
256
+ id: string;
257
+ md: string;
258
+ valign: string;
259
+ } | {
260
+ body: {
261
+ type: string;
262
+ label: string;
263
+ name: string;
264
+ id: string;
265
+ multiple: boolean;
266
+ required: boolean;
267
+ source: {
268
+ url: string;
269
+ headers: {
270
+ Authorization: string;
271
+ };
272
+ method: string;
273
+ messages: {};
274
+ requestAdaptor: string;
275
+ adaptor: string;
276
+ data: {
277
+ context: string;
278
+ $scopeId: string;
279
+ judge: string;
280
+ };
281
+ };
282
+ onEvent: {
283
+ change: {
284
+ weight: number;
285
+ actions: ({
286
+ componentId: string;
287
+ args: {
288
+ value: {
289
+ new_next_step: string;
290
+ };
291
+ next_step?: undefined;
292
+ };
293
+ actionType: string;
294
+ eventName?: undefined;
295
+ } | {
296
+ args: {
297
+ next_step: string;
298
+ value?: undefined;
299
+ };
300
+ actionType: string;
301
+ eventName: string;
302
+ componentId?: undefined;
303
+ })[];
304
+ };
305
+ };
306
+ }[];
307
+ id: string;
308
+ md?: undefined;
309
+ valign?: undefined;
310
+ })[];
311
+ id: string;
312
+ className: string;
313
+ subFormMode: string;
314
+ } | {
315
+ type: string;
316
+ columns: ({
317
+ body: {
318
+ type: string;
319
+ tpl: string;
320
+ inline: boolean;
321
+ wrapperComponent: string;
322
+ id: string;
323
+ }[];
324
+ id: string;
325
+ md: string;
326
+ valign: string;
327
+ } | {
328
+ body: any[];
329
+ id: string;
330
+ md?: undefined;
331
+ valign?: undefined;
332
+ })[];
333
+ id: string;
334
+ className: string;
335
+ subFormMode: string;
336
+ hiddenOn: string;
337
+ } | {
338
+ type: string;
339
+ label: boolean;
340
+ name: string;
341
+ id: string;
342
+ minRows: number;
343
+ maxRows: number;
344
+ placeholder: string;
345
+ required: string;
346
+ })[];
347
+ onEvent: {
348
+ approve_judge_change: {
349
+ actions: {
350
+ actionType: string;
351
+ componentId: string;
352
+ args: {};
353
+ }[];
354
+ };
355
+ validateError: {
356
+ weight: number;
357
+ actions: {
358
+ componentId: string;
359
+ args: {
360
+ msgType: string;
361
+ position: string;
362
+ closeButton: boolean;
363
+ showIcon: boolean;
364
+ title: string;
365
+ msg: string;
366
+ };
367
+ actionType: string;
368
+ }[];
369
+ };
370
+ };
371
+ }[];
372
+ id: string;
373
+ position: string;
374
+ actions: ({
375
+ type: string;
376
+ label: string;
377
+ onEvent: {
378
+ click: {
379
+ actions: ({
380
+ componentId: string;
381
+ args: {
382
+ api?: undefined;
383
+ messages?: undefined;
384
+ blank?: undefined;
385
+ url?: undefined;
386
+ };
387
+ actionType: string;
388
+ script: string;
389
+ expression?: undefined;
390
+ } | {
391
+ componentId: string;
392
+ args: {
393
+ api?: undefined;
394
+ messages?: undefined;
395
+ blank?: undefined;
396
+ url?: undefined;
397
+ };
398
+ actionType: string;
399
+ script: string;
400
+ expression: string;
401
+ } | {
402
+ componentId: string;
403
+ args: {
404
+ api: {
405
+ url: string;
406
+ method: string;
407
+ dataType: string;
408
+ headers: {
409
+ Authorization: string;
410
+ };
411
+ requestAdaptor: string;
412
+ };
413
+ messages: {
414
+ success: string;
415
+ };
416
+ blank?: undefined;
417
+ url?: undefined;
418
+ };
419
+ actionType: string;
420
+ expression: string;
421
+ script?: undefined;
422
+ } | {
423
+ componentId: string;
424
+ args: {
425
+ blank: boolean;
426
+ url: string;
427
+ api?: undefined;
428
+ messages?: undefined;
429
+ };
430
+ actionType: string;
431
+ expression: string;
432
+ script?: undefined;
433
+ })[];
434
+ };
435
+ };
436
+ id: string;
437
+ level: string;
438
+ } | {
439
+ type: string;
440
+ label: string;
441
+ onEvent: {
442
+ click: {
443
+ actions: {
444
+ componentId: string;
445
+ args: {};
446
+ actionType: string;
447
+ }[];
448
+ };
449
+ };
450
+ id: string;
451
+ level?: undefined;
452
+ })[];
453
+ };
454
+ }[];
455
+ };
456
+ };
457
+ id: string;
458
+ level: string;
459
+ className: string;
460
+ } | {
461
+ type: string;
462
+ debug: boolean;
463
+ wrapWithPanel: boolean;
464
+ body: ({
465
+ type: string;
466
+ className: string;
467
+ trs: {
468
+ background: string;
469
+ tds: ({
470
+ background: string;
471
+ colspan: number;
472
+ align: string;
473
+ className: string;
474
+ width: string;
475
+ body: {
476
+ label: any;
477
+ name: any;
478
+ mode: string;
479
+ className: string;
480
+ }[];
481
+ style: {
482
+ marginTop: string;
483
+ paddingTop: string;
484
+ paddingRight: string;
485
+ paddingBottom: string;
486
+ paddingLeft: string;
487
+ marginRight: string;
488
+ marginBottom: string;
489
+ marginLeft: string;
490
+ borderLeftColor: string;
491
+ borderTopColor: string;
492
+ borderRightColor: string;
493
+ borderBottomColor: string;
494
+ };
495
+ } | {
496
+ className: string;
497
+ align: string;
498
+ width: string;
499
+ colspan: string | number;
500
+ background: string;
501
+ body: {
502
+ type: string;
503
+ tpl: string;
504
+ }[];
505
+ style: {
506
+ borderLeftColor: string;
507
+ borderTopColor: string;
508
+ borderRightColor: string;
509
+ borderBottomColor: string;
510
+ };
511
+ })[];
512
+ }[];
513
+ id: string;
514
+ } | {
515
+ type: string;
516
+ className: string;
517
+ trs: {
518
+ background: string;
519
+ tds: ({
520
+ className: string;
521
+ background: string;
522
+ align: string;
523
+ width: string;
524
+ colspan: string;
525
+ body: {
526
+ type: string;
527
+ tpl: string;
528
+ id: string;
529
+ }[];
530
+ id: string;
531
+ style: {
532
+ padding: string;
533
+ };
534
+ } | {
535
+ background: string;
536
+ colspan: number;
537
+ align: string;
538
+ className: string;
539
+ width: string;
540
+ body: any[];
541
+ id: string;
542
+ style?: undefined;
543
+ })[];
544
+ }[];
545
+ id: string;
546
+ style: {
547
+ borderLeftStyle: string;
548
+ borderTopStyle: string;
549
+ borderRightStyle: string;
550
+ borderBottomStyle: string;
551
+ };
552
+ } | {
553
+ type: string;
554
+ id: string;
555
+ tpl: string;
556
+ inline: boolean;
557
+ wrapperComponent: string;
558
+ style: {
559
+ fontFamily: string;
560
+ fontSize: number;
561
+ textAlign: string;
562
+ };
563
+ })[];
564
+ id: string;
565
+ onEvent: {
566
+ validateError: {
567
+ weight: number;
568
+ actions: {
569
+ componentId: string;
570
+ args: {
571
+ msgType: string;
572
+ position: string;
573
+ closeButton: boolean;
574
+ showIcon: boolean;
575
+ title: string;
576
+ msg: string;
577
+ };
578
+ actionType: string;
579
+ }[];
580
+ };
581
+ };
582
+ })[];
583
+ id: string;
584
+ messages: {};
585
+ pullRefresh: {};
586
+ regions: string[];
587
+ onEvent: {
588
+ inited: {
589
+ weight: number;
590
+ actions: {
591
+ componentId: string;
592
+ actionType: string;
593
+ }[];
594
+ };
595
+ };
596
+ initApi: {
597
+ url: string;
598
+ method: string;
599
+ headers: {
600
+ Authorization: string;
601
+ };
602
+ messages: {};
603
+ requestAdaptor: string;
604
+ adaptor: string;
605
+ data: {
606
+ context: string;
607
+ judge: string;
608
+ };
609
+ };
610
+ initFetch: boolean;
611
+ }>;
@@ -0,0 +1,36 @@
1
+ export function getInstanceApprovalHistory(): Promise<{
2
+ type: string;
3
+ headerClassName: string;
4
+ title: string;
5
+ source: string;
6
+ className: string;
7
+ columnsTogglable: boolean;
8
+ footable: {
9
+ expand: string;
10
+ };
11
+ columns: ({
12
+ name: string;
13
+ label: string;
14
+ type?: undefined;
15
+ tpl?: undefined;
16
+ classNameExpr?: undefined;
17
+ } | {
18
+ name: string;
19
+ label: string;
20
+ type: string;
21
+ tpl: string;
22
+ classNameExpr?: undefined;
23
+ } | {
24
+ name: string;
25
+ label: string;
26
+ classNameExpr: string;
27
+ type?: undefined;
28
+ tpl?: undefined;
29
+ })[];
30
+ }>;
31
+ export function getINstanceApproveHistory2(instance: any): Promise<{
32
+ type: string;
33
+ className: string;
34
+ trs: void;
35
+ id: string;
36
+ }>;
@@ -0,0 +1,2 @@
1
+ export { getFlowFormSchema } from './flow';
2
+ export { getInstanceInfo } from './instance';
@@ -0,0 +1,42 @@
1
+ export function getInstanceInfo({ instanceId, box }: {
2
+ instanceId: any;
3
+ box: any;
4
+ }): Promise<{
5
+ box: any;
6
+ _id: any;
7
+ space: any;
8
+ flow: any;
9
+ form: any;
10
+ applicant: any;
11
+ applicant_name: any;
12
+ submitter: any;
13
+ submit_date: any;
14
+ state: any;
15
+ approveValues: any;
16
+ title: any;
17
+ name: any;
18
+ fields: any[];
19
+ flowVersion: any;
20
+ formVersion: any;
21
+ step: any;
22
+ lastCCStep: any;
23
+ trace: any;
24
+ approve: any;
25
+ record_ids: any;
26
+ related_instances: any;
27
+ forward_from_instance: any;
28
+ cc_users: any;
29
+ traces: any;
30
+ historyApproves: ({
31
+ children: {
32
+ name: string;
33
+ user_name: any;
34
+ finish_date: any;
35
+ judge: any;
36
+ opinion: any;
37
+ }[];
38
+ } & {
39
+ name: any;
40
+ judge: string;
41
+ })[];
42
+ }>;