@steedos-widgets/amis-lib 1.3.3 → 1.3.4-beta.10
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 +359 -228
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +359 -228
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +117 -117
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/buttons.d.ts +1 -0
- package/dist/types/lib/converter/amis/header.d.ts +2 -7
- package/dist/types/lib/converter/amis/index.d.ts +2 -6
- package/dist/types/lib/objects.d.ts +7 -6
- package/dist/types/schema/standard_new.amis.d.ts +27 -2
- package/dist/types/standard/button.d.ts +27 -2
- package/package.json +2 -2
|
@@ -234,13 +234,7 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
234
234
|
icon?: undefined;
|
|
235
235
|
level?: undefined;
|
|
236
236
|
} | {
|
|
237
|
-
type: string;
|
|
238
|
-
* 点击记录详细界面相关表顶部标题进入的相关表页面的顶部amisSchema
|
|
239
|
-
* @param {*} objectSchema
|
|
240
|
-
* @param {*} recordId
|
|
241
|
-
* @param {*} relatedObjectName
|
|
242
|
-
* @returns amisSchema
|
|
243
|
-
*/
|
|
237
|
+
type: string;
|
|
244
238
|
label: string;
|
|
245
239
|
onEvent: {
|
|
246
240
|
click: {
|
|
@@ -588,6 +582,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
588
582
|
}[] | {
|
|
589
583
|
type: string;
|
|
590
584
|
icon: string;
|
|
585
|
+
visibleOn: string;
|
|
591
586
|
onEvent: {
|
|
592
587
|
click: {
|
|
593
588
|
actions: {
|
|
@@ -3,12 +3,8 @@ export function getObjectCRUD(objectSchema: any, fields: any, options: any): Pro
|
|
|
3
3
|
className: string;
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
data:
|
|
7
|
-
|
|
8
|
-
recordPermissions: any;
|
|
9
|
-
uiSchema: any;
|
|
10
|
-
};
|
|
11
|
-
body: {};
|
|
6
|
+
data: any;
|
|
7
|
+
body: any;
|
|
12
8
|
}>;
|
|
13
9
|
export function getObjectForm(objectSchema: any, ctx: any): Promise<{
|
|
14
10
|
type: string;
|
|
@@ -185,6 +185,8 @@ export function getListSchema(appName: any, objectName: any, listViewName: any,
|
|
|
185
185
|
headerToolbarItems: any;
|
|
186
186
|
filterVisible: any;
|
|
187
187
|
rowClassNameExpr: any;
|
|
188
|
+
crudDataFilter: any;
|
|
189
|
+
onCrudDataFilter: any;
|
|
188
190
|
};
|
|
189
191
|
isCustomAmisSchema?: undefined;
|
|
190
192
|
isCalendar?: undefined;
|
|
@@ -196,12 +198,8 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
|
|
|
196
198
|
className: string;
|
|
197
199
|
id: string;
|
|
198
200
|
name: string;
|
|
199
|
-
data:
|
|
200
|
-
|
|
201
|
-
recordPermissions: any;
|
|
202
|
-
uiSchema: any;
|
|
203
|
-
};
|
|
204
|
-
body: {};
|
|
201
|
+
data: any;
|
|
202
|
+
body: any;
|
|
205
203
|
};
|
|
206
204
|
}>;
|
|
207
205
|
export function getCalendarSchema(appName: any, objectName: any, calendarOptions: any, ctx?: {}): Promise<{
|
|
@@ -299,6 +297,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
299
297
|
}[] | {
|
|
300
298
|
type: string;
|
|
301
299
|
icon: string;
|
|
300
|
+
visibleOn: string;
|
|
302
301
|
onEvent: {
|
|
303
302
|
click: {
|
|
304
303
|
actions: {
|
|
@@ -440,6 +439,8 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
440
439
|
headerToolbarItems: any;
|
|
441
440
|
filterVisible: any;
|
|
442
441
|
rowClassNameExpr: any;
|
|
442
|
+
crudDataFilter: any;
|
|
443
|
+
onCrudDataFilter: any;
|
|
443
444
|
};
|
|
444
445
|
isCustomAmisSchema?: undefined;
|
|
445
446
|
isCalendar?: undefined;
|
|
@@ -8,7 +8,26 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
8
8
|
onEvent: {
|
|
9
9
|
click: {
|
|
10
10
|
weight: number;
|
|
11
|
-
actions: {
|
|
11
|
+
actions: ({
|
|
12
|
+
actionType: string;
|
|
13
|
+
script: string;
|
|
14
|
+
outputVar?: undefined;
|
|
15
|
+
args?: undefined;
|
|
16
|
+
expression?: undefined;
|
|
17
|
+
dialog?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
actionType: string;
|
|
20
|
+
outputVar: string;
|
|
21
|
+
args: {
|
|
22
|
+
api: {
|
|
23
|
+
url: string;
|
|
24
|
+
method: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
expression: string;
|
|
28
|
+
script?: undefined;
|
|
29
|
+
dialog?: undefined;
|
|
30
|
+
} | {
|
|
12
31
|
actionType: string;
|
|
13
32
|
dialog: {
|
|
14
33
|
type: string;
|
|
@@ -26,6 +45,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
26
45
|
uiSchema: string;
|
|
27
46
|
isLookup: string;
|
|
28
47
|
listName: string;
|
|
48
|
+
selectedRowResponseResult: string;
|
|
29
49
|
};
|
|
30
50
|
title: string;
|
|
31
51
|
body: {
|
|
@@ -37,6 +57,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
37
57
|
isLookup: string;
|
|
38
58
|
_master: string;
|
|
39
59
|
url: string;
|
|
60
|
+
selectedRowResponseResult: string;
|
|
40
61
|
};
|
|
41
62
|
url: string;
|
|
42
63
|
method: string;
|
|
@@ -85,7 +106,11 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
85
106
|
id?: undefined;
|
|
86
107
|
})[];
|
|
87
108
|
};
|
|
88
|
-
|
|
109
|
+
script?: undefined;
|
|
110
|
+
outputVar?: undefined;
|
|
111
|
+
args?: undefined;
|
|
112
|
+
expression?: undefined;
|
|
113
|
+
})[];
|
|
89
114
|
};
|
|
90
115
|
};
|
|
91
116
|
}[];
|
|
@@ -11,7 +11,26 @@ export namespace StandardButtons {
|
|
|
11
11
|
onEvent: {
|
|
12
12
|
click: {
|
|
13
13
|
weight: number;
|
|
14
|
-
actions: {
|
|
14
|
+
actions: ({
|
|
15
|
+
actionType: string;
|
|
16
|
+
script: string;
|
|
17
|
+
outputVar?: undefined;
|
|
18
|
+
args?: undefined;
|
|
19
|
+
expression?: undefined;
|
|
20
|
+
dialog?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
actionType: string;
|
|
23
|
+
outputVar: string;
|
|
24
|
+
args: {
|
|
25
|
+
api: {
|
|
26
|
+
url: string;
|
|
27
|
+
method: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
expression: string;
|
|
31
|
+
script?: undefined;
|
|
32
|
+
dialog?: undefined;
|
|
33
|
+
} | {
|
|
15
34
|
actionType: string;
|
|
16
35
|
dialog: {
|
|
17
36
|
type: string;
|
|
@@ -29,6 +48,7 @@ export namespace StandardButtons {
|
|
|
29
48
|
uiSchema: string;
|
|
30
49
|
isLookup: string;
|
|
31
50
|
listName: string;
|
|
51
|
+
selectedRowResponseResult: string;
|
|
32
52
|
};
|
|
33
53
|
title: string;
|
|
34
54
|
body: {
|
|
@@ -40,6 +60,7 @@ export namespace StandardButtons {
|
|
|
40
60
|
isLookup: string;
|
|
41
61
|
_master: string;
|
|
42
62
|
url: string;
|
|
63
|
+
selectedRowResponseResult: string;
|
|
43
64
|
};
|
|
44
65
|
url: string;
|
|
45
66
|
method: string;
|
|
@@ -88,7 +109,11 @@ export namespace StandardButtons {
|
|
|
88
109
|
id?: undefined;
|
|
89
110
|
})[];
|
|
90
111
|
};
|
|
91
|
-
|
|
112
|
+
script?: undefined;
|
|
113
|
+
outputVar?: undefined;
|
|
114
|
+
args?: undefined;
|
|
115
|
+
expression?: undefined;
|
|
116
|
+
})[];
|
|
92
117
|
};
|
|
93
118
|
};
|
|
94
119
|
}[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4-beta.10",
|
|
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": "a3588f996b1c8ee42deafdcf4eeb7fdb316d50c9"
|
|
65
65
|
}
|