@steedos-widgets/amis-lib 1.2.27 → 1.2.30
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 +887 -794
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +887 -794
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +886 -793
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/buttons.d.ts +3 -4
- package/dist/types/lib/converter/amis/fields/editor.d.ts +10 -8
- package/dist/types/lib/converter/amis/header.d.ts +8 -8
- package/dist/types/lib/converter/amis/index.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +2 -2
- package/dist/types/lib/page_init.d.ts +1 -0
- package/dist/types/schema/standard_edit.amis.d.ts +9 -0
- package/dist/types/schema/standard_import_data.amis.d.ts +3 -0
- package/dist/types/schema/standard_new.amis.d.ts +9 -0
- package/dist/types/standard/button.d.ts +21 -0
- package/package.json +2 -2
|
@@ -28,6 +28,7 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
|
|
|
28
28
|
drawer: {
|
|
29
29
|
type: string;
|
|
30
30
|
title: string;
|
|
31
|
+
id: string;
|
|
31
32
|
body: {
|
|
32
33
|
type: string;
|
|
33
34
|
id: string;
|
|
@@ -44,7 +45,6 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
|
|
|
44
45
|
btnClassName: string;
|
|
45
46
|
size: string;
|
|
46
47
|
}[];
|
|
47
|
-
id: string;
|
|
48
48
|
position: string;
|
|
49
49
|
closeOnOutside: boolean;
|
|
50
50
|
resizable: boolean;
|
|
@@ -55,7 +55,6 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
|
|
|
55
55
|
}[];
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
id: string;
|
|
59
58
|
};
|
|
60
59
|
export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
|
|
61
60
|
type: string;
|
|
@@ -73,6 +72,7 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
|
|
|
73
72
|
drawer: {
|
|
74
73
|
type: string;
|
|
75
74
|
title: string;
|
|
75
|
+
id: string;
|
|
76
76
|
body: {
|
|
77
77
|
type: string;
|
|
78
78
|
id: string;
|
|
@@ -90,7 +90,6 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
|
|
|
90
90
|
btnClassName: string;
|
|
91
91
|
size: string;
|
|
92
92
|
}[];
|
|
93
|
-
id: string;
|
|
94
93
|
position: string;
|
|
95
94
|
closeOnOutside: boolean;
|
|
96
95
|
resizable: boolean;
|
|
@@ -101,7 +100,6 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
|
|
|
101
100
|
}[];
|
|
102
101
|
};
|
|
103
102
|
};
|
|
104
|
-
id: string;
|
|
105
103
|
};
|
|
106
104
|
export function getObjectRecordDetailRelatedListButtonsSchemas(objectSchema: any, ctx: any): {
|
|
107
105
|
type: string;
|
|
@@ -119,6 +117,7 @@ export function getObjectRecordDetailRelatedListButtonsSchemas(objectSchema: any
|
|
|
119
117
|
drawer: {
|
|
120
118
|
type: string;
|
|
121
119
|
title: string;
|
|
120
|
+
id: string;
|
|
122
121
|
body: {
|
|
123
122
|
type: string;
|
|
124
123
|
vertical: boolean;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
|
|
2
2
|
type: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
label: any;
|
|
4
|
+
body: {
|
|
5
|
+
type: string;
|
|
6
|
+
name: any;
|
|
7
|
+
options: {
|
|
8
|
+
linkify: boolean;
|
|
9
|
+
html: boolean;
|
|
10
|
+
breaks: boolean;
|
|
11
|
+
};
|
|
8
12
|
};
|
|
9
|
-
body?: undefined;
|
|
10
13
|
} | {
|
|
11
14
|
type: string;
|
|
12
15
|
body: ({
|
|
@@ -24,8 +27,7 @@ export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
|
|
|
24
27
|
};
|
|
25
28
|
language?: undefined;
|
|
26
29
|
})[];
|
|
27
|
-
|
|
28
|
-
options?: undefined;
|
|
30
|
+
label?: undefined;
|
|
29
31
|
};
|
|
30
32
|
export function getHtmlFieldSchema(field: any, readonly: any, ctx: any): {
|
|
31
33
|
type: string;
|
|
@@ -74,6 +74,7 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
|
|
|
74
74
|
drawer: {
|
|
75
75
|
type: string;
|
|
76
76
|
title: string;
|
|
77
|
+
id: string;
|
|
77
78
|
body: {
|
|
78
79
|
type: string;
|
|
79
80
|
id: string;
|
|
@@ -91,7 +92,6 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
|
|
|
91
92
|
btnClassName: string;
|
|
92
93
|
size: string;
|
|
93
94
|
}[];
|
|
94
|
-
id: string;
|
|
95
95
|
position: string;
|
|
96
96
|
closeOnOutside: boolean;
|
|
97
97
|
resizable: boolean;
|
|
@@ -102,9 +102,9 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
|
|
|
102
102
|
}[];
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
id: string;
|
|
106
105
|
};
|
|
107
|
-
|
|
106
|
+
visibleOn: string;
|
|
107
|
+
}[];
|
|
108
108
|
md: string;
|
|
109
109
|
valign: string;
|
|
110
110
|
})[];
|
|
@@ -446,6 +446,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
|
|
|
446
446
|
drawer: {
|
|
447
447
|
type: string;
|
|
448
448
|
title: string;
|
|
449
|
+
id: string;
|
|
449
450
|
body: {
|
|
450
451
|
type: string;
|
|
451
452
|
id: string;
|
|
@@ -463,7 +464,6 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
|
|
|
463
464
|
btnClassName: string;
|
|
464
465
|
size: string;
|
|
465
466
|
}[];
|
|
466
|
-
id: string;
|
|
467
467
|
position: string;
|
|
468
468
|
closeOnOutside: boolean;
|
|
469
469
|
resizable: boolean;
|
|
@@ -474,9 +474,9 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
|
|
|
474
474
|
}[];
|
|
475
475
|
};
|
|
476
476
|
};
|
|
477
|
-
id: string;
|
|
478
477
|
};
|
|
479
|
-
|
|
478
|
+
visibleOn: string;
|
|
479
|
+
}[];
|
|
480
480
|
md: string;
|
|
481
481
|
valign: string;
|
|
482
482
|
})[];
|
|
@@ -587,6 +587,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
587
587
|
drawer: {
|
|
588
588
|
type: string;
|
|
589
589
|
title: string;
|
|
590
|
+
id: string;
|
|
590
591
|
body: {
|
|
591
592
|
type: string;
|
|
592
593
|
id: string;
|
|
@@ -603,7 +604,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
603
604
|
btnClassName: string;
|
|
604
605
|
size: string;
|
|
605
606
|
}[];
|
|
606
|
-
id: string;
|
|
607
607
|
position: string;
|
|
608
608
|
closeOnOutside: boolean;
|
|
609
609
|
resizable: boolean;
|
|
@@ -614,7 +614,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
614
614
|
}[];
|
|
615
615
|
};
|
|
616
616
|
};
|
|
617
|
-
id: string;
|
|
618
617
|
};
|
|
619
618
|
};
|
|
620
619
|
md: string;
|
|
@@ -685,6 +684,7 @@ export function getObjectRecordDetailRelatedListHeader(relatedObjectSchema: any,
|
|
|
685
684
|
drawer: {
|
|
686
685
|
type: string;
|
|
687
686
|
title: string;
|
|
687
|
+
id: string;
|
|
688
688
|
body: {
|
|
689
689
|
type: string;
|
|
690
690
|
vertical: boolean;
|
|
@@ -8,6 +8,7 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
8
8
|
uiSchema: any;
|
|
9
9
|
amisSchema: {
|
|
10
10
|
type: string;
|
|
11
|
+
id: string;
|
|
11
12
|
className: string;
|
|
12
13
|
name: string;
|
|
13
14
|
api: {
|
|
@@ -305,6 +306,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
305
306
|
drawer: {
|
|
306
307
|
type: string;
|
|
307
308
|
title: string;
|
|
309
|
+
id: string;
|
|
308
310
|
body: {
|
|
309
311
|
type: string;
|
|
310
312
|
id: string;
|
|
@@ -321,7 +323,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
321
323
|
btnClassName: string;
|
|
322
324
|
size: string;
|
|
323
325
|
}[];
|
|
324
|
-
id: string;
|
|
325
326
|
position: string;
|
|
326
327
|
closeOnOutside: boolean;
|
|
327
328
|
resizable: boolean;
|
|
@@ -332,7 +333,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
332
333
|
}[];
|
|
333
334
|
};
|
|
334
335
|
};
|
|
335
|
-
id: string;
|
|
336
336
|
};
|
|
337
337
|
};
|
|
338
338
|
md: string;
|
|
@@ -25,6 +25,15 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
25
25
|
closeOnOutside: boolean;
|
|
26
26
|
showCloseButton: boolean;
|
|
27
27
|
size: string;
|
|
28
|
+
onEvent: {
|
|
29
|
+
cancel: {
|
|
30
|
+
actions: {
|
|
31
|
+
actionType: string;
|
|
32
|
+
script: string;
|
|
33
|
+
expression: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
28
37
|
};
|
|
29
38
|
}[];
|
|
30
39
|
weight: number;
|
|
@@ -84,6 +84,7 @@ export function getSchema(uiSchema: any): {
|
|
|
84
84
|
source?: undefined;
|
|
85
85
|
size?: undefined;
|
|
86
86
|
pickerSchema?: undefined;
|
|
87
|
+
accept?: undefined;
|
|
87
88
|
useChunk?: undefined;
|
|
88
89
|
receiver?: undefined;
|
|
89
90
|
} | {
|
|
@@ -184,6 +185,7 @@ export function getSchema(uiSchema: any): {
|
|
|
184
185
|
autoComplete?: undefined;
|
|
185
186
|
multiple?: undefined;
|
|
186
187
|
hidden?: undefined;
|
|
188
|
+
accept?: undefined;
|
|
187
189
|
useChunk?: undefined;
|
|
188
190
|
receiver?: undefined;
|
|
189
191
|
} | {
|
|
@@ -191,6 +193,7 @@ export function getSchema(uiSchema: any): {
|
|
|
191
193
|
label: string;
|
|
192
194
|
required: boolean;
|
|
193
195
|
type: string;
|
|
196
|
+
accept: string;
|
|
194
197
|
className: string;
|
|
195
198
|
labelClassName: string;
|
|
196
199
|
clearValueOnHidden: boolean;
|
|
@@ -53,6 +53,15 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
53
53
|
closeOnEsc: boolean;
|
|
54
54
|
closeOnOutside: boolean;
|
|
55
55
|
size: string;
|
|
56
|
+
onEvent: {
|
|
57
|
+
cancel: {
|
|
58
|
+
actions: {
|
|
59
|
+
actionType: string;
|
|
60
|
+
script: string;
|
|
61
|
+
expression: string;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
56
65
|
actions: ({
|
|
57
66
|
type: string;
|
|
58
67
|
actionType: string;
|
|
@@ -56,6 +56,15 @@ export namespace StandardButtons {
|
|
|
56
56
|
closeOnEsc: boolean;
|
|
57
57
|
closeOnOutside: boolean;
|
|
58
58
|
size: string;
|
|
59
|
+
onEvent: {
|
|
60
|
+
cancel: {
|
|
61
|
+
actions: {
|
|
62
|
+
actionType: string;
|
|
63
|
+
script: string;
|
|
64
|
+
expression: string;
|
|
65
|
+
}[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
59
68
|
actions: ({
|
|
60
69
|
type: string;
|
|
61
70
|
actionType: string;
|
|
@@ -117,6 +126,15 @@ export namespace StandardButtons {
|
|
|
117
126
|
closeOnOutside: boolean;
|
|
118
127
|
showCloseButton: boolean;
|
|
119
128
|
size: string;
|
|
129
|
+
onEvent: {
|
|
130
|
+
cancel: {
|
|
131
|
+
actions: {
|
|
132
|
+
actionType: string;
|
|
133
|
+
script: string;
|
|
134
|
+
expression: string;
|
|
135
|
+
}[];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
120
138
|
};
|
|
121
139
|
}[];
|
|
122
140
|
weight: number;
|
|
@@ -283,6 +301,7 @@ export namespace StandardButtons {
|
|
|
283
301
|
source?: undefined;
|
|
284
302
|
size?: undefined;
|
|
285
303
|
pickerSchema?: undefined;
|
|
304
|
+
accept?: undefined;
|
|
286
305
|
useChunk?: undefined;
|
|
287
306
|
receiver?: undefined;
|
|
288
307
|
} | {
|
|
@@ -383,6 +402,7 @@ export namespace StandardButtons {
|
|
|
383
402
|
autoComplete?: undefined;
|
|
384
403
|
multiple?: undefined;
|
|
385
404
|
hidden?: undefined;
|
|
405
|
+
accept?: undefined;
|
|
386
406
|
useChunk?: undefined;
|
|
387
407
|
receiver?: undefined;
|
|
388
408
|
} | {
|
|
@@ -390,6 +410,7 @@ export namespace StandardButtons {
|
|
|
390
410
|
label: string;
|
|
391
411
|
required: boolean;
|
|
392
412
|
type: string;
|
|
413
|
+
accept: string;
|
|
393
414
|
className: string;
|
|
394
415
|
labelClassName: string;
|
|
395
416
|
clearValueOnHidden: boolean;
|
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.
|
|
4
|
+
"version": "1.2.30",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"react-i18next": "12.3.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "982542f992b5a73d84961fa24762fde3ce32ebbf"
|
|
65
65
|
}
|