@steedos-widgets/amis-lib 0.0.12 → 0.0.14
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 +172 -53
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +166 -47
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +181 -62
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +181 -62
- package/dist/types/lib/converter/amis/fields_filter.d.ts +5 -4
- package/dist/types/lib/converter/amis/graphql.d.ts +1 -0
- package/dist/types/lib/converter/amis/header.d.ts +0 -13
- package/dist/types/lib/converter/amis/index.d.ts +7 -5
- package/dist/types/lib/converter/amis/tpl.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +21 -25
- package/dist/types/lib/objectsRelated.d.ts +19 -0
- package/dist/types/lib/page_init.d.ts +10 -0
- package/dist/types/schema/standard_new.amis.d.ts +4 -0
- package/dist/types/standard/button.d.ts +4 -0
- package/package.json +1 -1
|
@@ -25,8 +25,7 @@ export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any,
|
|
|
25
25
|
mode: string;
|
|
26
26
|
wrapWithPanel: boolean;
|
|
27
27
|
className: string;
|
|
28
|
-
|
|
29
|
-
persistDataKeys: any[];
|
|
28
|
+
data: any;
|
|
30
29
|
body: ({
|
|
31
30
|
name: any;
|
|
32
31
|
label: any;
|
|
@@ -49,6 +48,9 @@ export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any,
|
|
|
49
48
|
}>;
|
|
50
49
|
export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
51
50
|
type: string;
|
|
51
|
+
data: {
|
|
52
|
+
listViewId: string;
|
|
53
|
+
};
|
|
52
54
|
id: string;
|
|
53
55
|
dataProvider: {
|
|
54
56
|
inited: string;
|
|
@@ -67,8 +69,7 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
|
|
|
67
69
|
mode: string;
|
|
68
70
|
wrapWithPanel: boolean;
|
|
69
71
|
className: string;
|
|
70
|
-
|
|
71
|
-
persistDataKeys: any[];
|
|
72
|
+
data: any;
|
|
72
73
|
body: ({
|
|
73
74
|
name: any;
|
|
74
75
|
label: any;
|
|
@@ -218,19 +218,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any): P
|
|
|
218
218
|
bodyClassName: string;
|
|
219
219
|
}[];
|
|
220
220
|
messages: {};
|
|
221
|
-
api: {
|
|
222
|
-
method: string;
|
|
223
|
-
url: string;
|
|
224
|
-
headers: {
|
|
225
|
-
Authorization: string;
|
|
226
|
-
};
|
|
227
|
-
data: {
|
|
228
|
-
query: string;
|
|
229
|
-
};
|
|
230
|
-
sendOn: string;
|
|
231
|
-
requestAdaptor: string;
|
|
232
|
-
adaptor: string;
|
|
233
|
-
};
|
|
234
221
|
}[];
|
|
235
222
|
}>;
|
|
236
223
|
/**
|
|
@@ -4,6 +4,7 @@ export function getObjectList(objectSchema: any, fields: any, options: any): Pro
|
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
data: {
|
|
7
|
+
$master: string;
|
|
7
8
|
context: {
|
|
8
9
|
rootUrl: any;
|
|
9
10
|
tenantId: any;
|
|
@@ -13,6 +14,7 @@ export function getObjectList(objectSchema: any, fields: any, options: any): Pro
|
|
|
13
14
|
_id: any;
|
|
14
15
|
recordPermissions: any;
|
|
15
16
|
uiSchema: any;
|
|
17
|
+
loaded: boolean;
|
|
16
18
|
};
|
|
17
19
|
body: {};
|
|
18
20
|
}>;
|
|
@@ -110,13 +112,13 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
110
112
|
fetchInited: {
|
|
111
113
|
weight: number;
|
|
112
114
|
actions: {
|
|
113
|
-
componentId: string;
|
|
114
115
|
actionType: string;
|
|
116
|
+
eventName: string;
|
|
115
117
|
args: {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
eventName: string;
|
|
119
|
+
};
|
|
120
|
+
data: {
|
|
121
|
+
record: string;
|
|
120
122
|
};
|
|
121
123
|
}[];
|
|
122
124
|
};
|
|
@@ -5,6 +5,7 @@ export function getTimeTpl(field: any): string;
|
|
|
5
5
|
export function getDateTpl(field: any): string;
|
|
6
6
|
export function getDateTimeTpl(field: any): string;
|
|
7
7
|
export function getUiFieldTpl(field: any): string;
|
|
8
|
+
export function getUiFileSizeTpl(field: any): string;
|
|
8
9
|
export function getRefObjectNameFieldName(field: any): Promise<any>;
|
|
9
10
|
export function getSelectTpl(field: any): string;
|
|
10
11
|
export function getNameTpl(field: any, ctx: any): string;
|
|
@@ -22,6 +22,16 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
initApi: any;
|
|
25
|
+
/**
|
|
26
|
+
* localListViewProps规范来自crud请求api中api.data.$self参数值的。
|
|
27
|
+
* 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
|
|
28
|
+
* __searchable__...:顶部放大镜搜索条件
|
|
29
|
+
* filter:右侧过滤器
|
|
30
|
+
* perPage:每页条数
|
|
31
|
+
* page:当前页码
|
|
32
|
+
* orderBy:排序字段
|
|
33
|
+
* orderDir:排序方向
|
|
34
|
+
*/
|
|
25
35
|
initFetch: any;
|
|
26
36
|
body: {}[];
|
|
27
37
|
};
|
|
@@ -101,13 +111,13 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
101
111
|
fetchInited: {
|
|
102
112
|
weight: number;
|
|
103
113
|
actions: {
|
|
104
|
-
componentId: string;
|
|
105
114
|
actionType: string;
|
|
115
|
+
eventName: string;
|
|
106
116
|
args: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
eventName: string;
|
|
118
|
+
};
|
|
119
|
+
data: {
|
|
120
|
+
record: string;
|
|
111
121
|
};
|
|
112
122
|
}[];
|
|
113
123
|
};
|
|
@@ -143,6 +153,7 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
|
|
|
143
153
|
id: string;
|
|
144
154
|
name: string;
|
|
145
155
|
data: {
|
|
156
|
+
$master: string;
|
|
146
157
|
context: {
|
|
147
158
|
rootUrl: any;
|
|
148
159
|
tenantId: any;
|
|
@@ -152,6 +163,7 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
|
|
|
152
163
|
_id: any;
|
|
153
164
|
recordPermissions: any;
|
|
154
165
|
uiSchema: any;
|
|
166
|
+
loaded: boolean;
|
|
155
167
|
};
|
|
156
168
|
body: {};
|
|
157
169
|
};
|
|
@@ -246,26 +258,9 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any): Pro
|
|
|
246
258
|
bodyClassName: string;
|
|
247
259
|
}[];
|
|
248
260
|
messages: {};
|
|
249
|
-
api: {
|
|
250
|
-
method: string;
|
|
251
|
-
url: string;
|
|
252
|
-
headers: {
|
|
253
|
-
Authorization: string;
|
|
254
|
-
};
|
|
255
|
-
data: {
|
|
256
|
-
query: string;
|
|
257
|
-
};
|
|
258
|
-
sendOn: string;
|
|
259
|
-
requestAdaptor: string;
|
|
260
|
-
adaptor: string;
|
|
261
|
-
};
|
|
262
261
|
}[];
|
|
263
262
|
};
|
|
264
263
|
}>;
|
|
265
|
-
export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any): Promise<{
|
|
266
|
-
uiSchema: any;
|
|
267
|
-
amisSchema: any;
|
|
268
|
-
}>;
|
|
269
264
|
export function getObjectRelatedList(appName: any, objectName: any, recordId: any, formFactor: any): Promise<({
|
|
270
265
|
masterObjectName: any;
|
|
271
266
|
object_name: any;
|
|
@@ -278,6 +273,7 @@ export function getObjectRelatedList(appName: any, objectName: any, recordId: an
|
|
|
278
273
|
id: string;
|
|
279
274
|
name: string;
|
|
280
275
|
data: {
|
|
276
|
+
$master: string;
|
|
281
277
|
context: {
|
|
282
278
|
rootUrl: any;
|
|
283
279
|
tenantId: any;
|
|
@@ -287,6 +283,7 @@ export function getObjectRelatedList(appName: any, objectName: any, recordId: an
|
|
|
287
283
|
_id: any;
|
|
288
284
|
recordPermissions: any;
|
|
289
285
|
uiSchema: any;
|
|
286
|
+
loaded: boolean;
|
|
290
287
|
};
|
|
291
288
|
body: {};
|
|
292
289
|
};
|
|
@@ -352,7 +349,7 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
352
349
|
record: any;
|
|
353
350
|
masterObjectUISchema: any;
|
|
354
351
|
}>;
|
|
355
|
-
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any,
|
|
352
|
+
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
356
353
|
title: string;
|
|
357
354
|
type: string;
|
|
358
355
|
name: string;
|
|
@@ -360,8 +357,7 @@ export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any,
|
|
|
360
357
|
mode: string;
|
|
361
358
|
wrapWithPanel: boolean;
|
|
362
359
|
className: string;
|
|
363
|
-
|
|
364
|
-
persistDataKeys: any[];
|
|
360
|
+
data: any;
|
|
365
361
|
body: ({
|
|
366
362
|
name: any;
|
|
367
363
|
label: any;
|
|
@@ -10,6 +10,7 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
|
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
12
|
data: {
|
|
13
|
+
$master: string;
|
|
13
14
|
context: {
|
|
14
15
|
rootUrl: any;
|
|
15
16
|
tenantId: any;
|
|
@@ -19,6 +20,7 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
|
|
|
19
20
|
_id: any;
|
|
20
21
|
recordPermissions: any;
|
|
21
22
|
uiSchema: any;
|
|
23
|
+
loaded: boolean;
|
|
22
24
|
};
|
|
23
25
|
body: {};
|
|
24
26
|
};
|
|
@@ -49,3 +51,20 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
|
|
|
49
51
|
isCustom?: undefined;
|
|
50
52
|
};
|
|
51
53
|
})[]>;
|
|
54
|
+
export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any, relatedKey: any, top: any): Promise<{
|
|
55
|
+
uiSchema: any;
|
|
56
|
+
amisSchema: {
|
|
57
|
+
type: string;
|
|
58
|
+
id: string;
|
|
59
|
+
className: string;
|
|
60
|
+
data: {
|
|
61
|
+
masterObjectName: any;
|
|
62
|
+
masterRecordId: string;
|
|
63
|
+
relatedKey: any;
|
|
64
|
+
objectName: any;
|
|
65
|
+
listViewId: string;
|
|
66
|
+
};
|
|
67
|
+
body: any[];
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
export function getRelatedFieldValue(masterObjectName: any, record_id: any, uiSchema: any, foreign_key: any): any;
|
|
@@ -166,6 +166,16 @@ export function getRecordPageInitSchema(objectApiName: any): Promise<{
|
|
|
166
166
|
label: string;
|
|
167
167
|
objectApiName: string;
|
|
168
168
|
recordId: string;
|
|
169
|
+
onEvent: {
|
|
170
|
+
recordLoaded: {
|
|
171
|
+
actions: {
|
|
172
|
+
actionType: string;
|
|
173
|
+
data: {
|
|
174
|
+
name: string;
|
|
175
|
+
};
|
|
176
|
+
}[];
|
|
177
|
+
};
|
|
178
|
+
};
|
|
169
179
|
}[];
|
|
170
180
|
}>;
|
|
171
181
|
export function getListviewInitSchema(objectApiName: any, listViewName: any, ctx: any): Promise<{
|