@steedos-widgets/amis-lib 1.2.6-beta.16 → 1.2.6-beta.18
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 +193 -59
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +192 -60
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +193 -59
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/buttons.d.ts +91 -0
- package/dist/types/lib/converter/amis/header.d.ts +119 -8
- package/dist/types/lib/objects.d.ts +39 -1
- package/package.json +2 -2
|
@@ -12,3 +12,94 @@ export function getObjectRelatedListButtons(uiSchema: any, ctx: any): Promise<an
|
|
|
12
12
|
export function getButton(objectName: any, buttonName: any, ctx: any): Promise<any>;
|
|
13
13
|
export function execute(button: any, props: any): any;
|
|
14
14
|
export function executeButton(button: any, props: any): any;
|
|
15
|
+
export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any, ctx: any): {
|
|
16
|
+
type: string;
|
|
17
|
+
name: any;
|
|
18
|
+
objectName: any;
|
|
19
|
+
visibleOn: any;
|
|
20
|
+
className: string;
|
|
21
|
+
}[] | {
|
|
22
|
+
type: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
onEvent: {
|
|
25
|
+
click: {
|
|
26
|
+
actions: {
|
|
27
|
+
actionType: string;
|
|
28
|
+
drawer: {
|
|
29
|
+
type: string;
|
|
30
|
+
title: string;
|
|
31
|
+
body: {
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
vertical: boolean;
|
|
35
|
+
tiled: boolean;
|
|
36
|
+
buttons: {
|
|
37
|
+
type: string;
|
|
38
|
+
name: any;
|
|
39
|
+
objectName: any;
|
|
40
|
+
visibleOn: any;
|
|
41
|
+
}[];
|
|
42
|
+
btnLevel: string;
|
|
43
|
+
className: string;
|
|
44
|
+
btnClassName: string;
|
|
45
|
+
size: string;
|
|
46
|
+
}[];
|
|
47
|
+
id: string;
|
|
48
|
+
position: string;
|
|
49
|
+
closeOnOutside: boolean;
|
|
50
|
+
resizable: boolean;
|
|
51
|
+
className: string;
|
|
52
|
+
bodyClassName: string;
|
|
53
|
+
actions: any[];
|
|
54
|
+
};
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
id: string;
|
|
59
|
+
};
|
|
60
|
+
export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
|
|
61
|
+
type: string;
|
|
62
|
+
name: any;
|
|
63
|
+
objectName: any;
|
|
64
|
+
visibleOn: any;
|
|
65
|
+
className: string;
|
|
66
|
+
}[] | {
|
|
67
|
+
type: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
onEvent: {
|
|
70
|
+
click: {
|
|
71
|
+
actions: {
|
|
72
|
+
actionType: string;
|
|
73
|
+
drawer: {
|
|
74
|
+
type: string;
|
|
75
|
+
title: string;
|
|
76
|
+
body: {
|
|
77
|
+
type: string;
|
|
78
|
+
id: string;
|
|
79
|
+
vertical: boolean;
|
|
80
|
+
tiled: boolean;
|
|
81
|
+
buttons: {
|
|
82
|
+
type: string;
|
|
83
|
+
name: any;
|
|
84
|
+
objectName: any;
|
|
85
|
+
visibleOn: any;
|
|
86
|
+
className: string;
|
|
87
|
+
}[];
|
|
88
|
+
btnLevel: string;
|
|
89
|
+
className: string;
|
|
90
|
+
btnClassName: string;
|
|
91
|
+
size: string;
|
|
92
|
+
}[];
|
|
93
|
+
id: string;
|
|
94
|
+
position: string;
|
|
95
|
+
closeOnOutside: boolean;
|
|
96
|
+
resizable: boolean;
|
|
97
|
+
className: string;
|
|
98
|
+
bodyClassName: string;
|
|
99
|
+
actions: any[];
|
|
100
|
+
};
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
id: string;
|
|
105
|
+
};
|
|
@@ -62,7 +62,46 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
|
|
|
62
62
|
objectName: any;
|
|
63
63
|
visibleOn: any;
|
|
64
64
|
className: string;
|
|
65
|
-
}[]
|
|
65
|
+
}[] | {
|
|
66
|
+
type: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
onEvent: {
|
|
69
|
+
click: {
|
|
70
|
+
actions: {
|
|
71
|
+
actionType: string;
|
|
72
|
+
drawer: {
|
|
73
|
+
type: string;
|
|
74
|
+
title: string;
|
|
75
|
+
body: {
|
|
76
|
+
type: string;
|
|
77
|
+
id: string;
|
|
78
|
+
vertical: boolean;
|
|
79
|
+
tiled: boolean;
|
|
80
|
+
buttons: {
|
|
81
|
+
type: string;
|
|
82
|
+
name: any;
|
|
83
|
+
objectName: any;
|
|
84
|
+
visibleOn: any;
|
|
85
|
+
className: string;
|
|
86
|
+
}[];
|
|
87
|
+
btnLevel: string;
|
|
88
|
+
className: string;
|
|
89
|
+
btnClassName: string;
|
|
90
|
+
size: string;
|
|
91
|
+
}[];
|
|
92
|
+
id: string;
|
|
93
|
+
position: string;
|
|
94
|
+
closeOnOutside: boolean;
|
|
95
|
+
resizable: boolean;
|
|
96
|
+
className: string;
|
|
97
|
+
bodyClassName: string;
|
|
98
|
+
actions: any[];
|
|
99
|
+
};
|
|
100
|
+
}[];
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
id: string;
|
|
104
|
+
};
|
|
66
105
|
};
|
|
67
106
|
md: string;
|
|
68
107
|
valign: string;
|
|
@@ -99,11 +138,6 @@ export function getObjectListHeaderSecordLine(objectSchema: any, listViewName: a
|
|
|
99
138
|
icon: string;
|
|
100
139
|
className: string;
|
|
101
140
|
onEvent: {
|
|
102
|
-
/**
|
|
103
|
-
* 列表视图顶部第一行amisSchema
|
|
104
|
-
* @param {*} objectSchema 对象UISchema
|
|
105
|
-
* @returns amisSchema
|
|
106
|
-
*/
|
|
107
141
|
click: {
|
|
108
142
|
actions: {
|
|
109
143
|
actionType: string;
|
|
@@ -369,7 +403,46 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
|
|
|
369
403
|
objectName: any;
|
|
370
404
|
visibleOn: any;
|
|
371
405
|
className: string;
|
|
372
|
-
}[]
|
|
406
|
+
}[] | {
|
|
407
|
+
type: string;
|
|
408
|
+
icon: string;
|
|
409
|
+
onEvent: {
|
|
410
|
+
click: {
|
|
411
|
+
actions: {
|
|
412
|
+
actionType: string;
|
|
413
|
+
drawer: {
|
|
414
|
+
type: string;
|
|
415
|
+
title: string;
|
|
416
|
+
body: {
|
|
417
|
+
type: string;
|
|
418
|
+
id: string;
|
|
419
|
+
vertical: boolean;
|
|
420
|
+
tiled: boolean;
|
|
421
|
+
buttons: {
|
|
422
|
+
type: string;
|
|
423
|
+
name: any;
|
|
424
|
+
objectName: any;
|
|
425
|
+
visibleOn: any;
|
|
426
|
+
className: string;
|
|
427
|
+
}[];
|
|
428
|
+
btnLevel: string;
|
|
429
|
+
className: string;
|
|
430
|
+
btnClassName: string;
|
|
431
|
+
size: string;
|
|
432
|
+
}[];
|
|
433
|
+
id: string;
|
|
434
|
+
position: string;
|
|
435
|
+
closeOnOutside: boolean;
|
|
436
|
+
resizable: boolean;
|
|
437
|
+
className: string;
|
|
438
|
+
bodyClassName: string;
|
|
439
|
+
actions: any[];
|
|
440
|
+
};
|
|
441
|
+
}[];
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
id: string;
|
|
445
|
+
};
|
|
373
446
|
};
|
|
374
447
|
md: string;
|
|
375
448
|
valign: string;
|
|
@@ -437,7 +510,45 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
437
510
|
objectName: any;
|
|
438
511
|
visibleOn: any;
|
|
439
512
|
className: string;
|
|
440
|
-
}[]
|
|
513
|
+
}[] | {
|
|
514
|
+
type: string;
|
|
515
|
+
icon: string;
|
|
516
|
+
onEvent: {
|
|
517
|
+
click: {
|
|
518
|
+
actions: {
|
|
519
|
+
actionType: string;
|
|
520
|
+
drawer: {
|
|
521
|
+
type: string;
|
|
522
|
+
title: string;
|
|
523
|
+
body: {
|
|
524
|
+
type: string;
|
|
525
|
+
id: string;
|
|
526
|
+
vertical: boolean;
|
|
527
|
+
tiled: boolean;
|
|
528
|
+
buttons: {
|
|
529
|
+
type: string;
|
|
530
|
+
name: any;
|
|
531
|
+
objectName: any;
|
|
532
|
+
visibleOn: any;
|
|
533
|
+
}[];
|
|
534
|
+
btnLevel: string;
|
|
535
|
+
className: string;
|
|
536
|
+
btnClassName: string;
|
|
537
|
+
size: string;
|
|
538
|
+
}[];
|
|
539
|
+
id: string;
|
|
540
|
+
position: string;
|
|
541
|
+
closeOnOutside: boolean;
|
|
542
|
+
resizable: boolean;
|
|
543
|
+
className: string;
|
|
544
|
+
bodyClassName: string;
|
|
545
|
+
actions: any[];
|
|
546
|
+
};
|
|
547
|
+
}[];
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
id: string;
|
|
551
|
+
};
|
|
441
552
|
};
|
|
442
553
|
md: string;
|
|
443
554
|
})[];
|
|
@@ -253,7 +253,45 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
253
253
|
objectName: any;
|
|
254
254
|
visibleOn: any;
|
|
255
255
|
className: string;
|
|
256
|
-
}[]
|
|
256
|
+
}[] | {
|
|
257
|
+
type: string;
|
|
258
|
+
icon: string;
|
|
259
|
+
onEvent: {
|
|
260
|
+
click: {
|
|
261
|
+
actions: {
|
|
262
|
+
actionType: string;
|
|
263
|
+
drawer: {
|
|
264
|
+
type: string;
|
|
265
|
+
title: string;
|
|
266
|
+
body: {
|
|
267
|
+
type: string;
|
|
268
|
+
id: string;
|
|
269
|
+
vertical: boolean;
|
|
270
|
+
tiled: boolean;
|
|
271
|
+
buttons: {
|
|
272
|
+
type: string;
|
|
273
|
+
name: any;
|
|
274
|
+
objectName: any;
|
|
275
|
+
visibleOn: any;
|
|
276
|
+
}[];
|
|
277
|
+
btnLevel: string;
|
|
278
|
+
className: string;
|
|
279
|
+
btnClassName: string;
|
|
280
|
+
size: string;
|
|
281
|
+
}[];
|
|
282
|
+
id: string;
|
|
283
|
+
position: string;
|
|
284
|
+
closeOnOutside: boolean;
|
|
285
|
+
resizable: boolean;
|
|
286
|
+
className: string;
|
|
287
|
+
bodyClassName: string;
|
|
288
|
+
actions: any[];
|
|
289
|
+
};
|
|
290
|
+
}[];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
id: string;
|
|
294
|
+
};
|
|
257
295
|
};
|
|
258
296
|
md: string;
|
|
259
297
|
})[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.6-beta.
|
|
4
|
+
"version": "1.2.6-beta.18",
|
|
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
|
"dependencies": {
|
|
60
60
|
"lodash": "^4.17.21"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "0ffe54cd3b559ea2831595ec97cdf1592f88ee88"
|
|
63
63
|
}
|