@steedos-widgets/amis-lib 1.0.21 → 1.0.22
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 +30 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +15 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +30 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/converter/amis/index.d.ts +1 -1
- package/dist/types/lib/objects.d.ts +18 -33
- package/dist/types/lib/objectsRelated.d.ts +15 -2
- package/dist/types/lib/router.d.ts +4 -0
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -7,16 +7,7 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
7
7
|
uiSchema: any;
|
|
8
8
|
amisSchema: {
|
|
9
9
|
type: string;
|
|
10
|
-
className: string;
|
|
11
|
-
* localListViewProps规范来自crud请求api中api.data.$self参数值的。
|
|
12
|
-
* 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
|
|
13
|
-
* __searchable__...:顶部放大镜搜索条件
|
|
14
|
-
* filter:右侧过滤器
|
|
15
|
-
* perPage:每页条数
|
|
16
|
-
* page:当前页码
|
|
17
|
-
* orderBy:排序字段
|
|
18
|
-
* orderDir:排序方向
|
|
19
|
-
*/
|
|
10
|
+
className: string;
|
|
20
11
|
name: string;
|
|
21
12
|
api: {
|
|
22
13
|
method: string;
|
|
@@ -387,6 +378,23 @@ export function getRecordDetailSchema(objectName: any, appId: any): Promise<{
|
|
|
387
378
|
amisSchema: {
|
|
388
379
|
type: string;
|
|
389
380
|
body: ({
|
|
381
|
+
type: string;
|
|
382
|
+
className: string;
|
|
383
|
+
tabs: {
|
|
384
|
+
title: string;
|
|
385
|
+
className: string;
|
|
386
|
+
body: {
|
|
387
|
+
type: string;
|
|
388
|
+
label: string;
|
|
389
|
+
objectApiName: string;
|
|
390
|
+
recordId: string;
|
|
391
|
+
id: string;
|
|
392
|
+
appId: any;
|
|
393
|
+
}[];
|
|
394
|
+
id: string;
|
|
395
|
+
}[];
|
|
396
|
+
id: string;
|
|
397
|
+
} | {
|
|
390
398
|
type: string;
|
|
391
399
|
label: string;
|
|
392
400
|
objectApiName: string;
|
|
@@ -404,29 +412,6 @@ export function getRecordDetailSchema(objectName: any, appId: any): Promise<{
|
|
|
404
412
|
}[];
|
|
405
413
|
};
|
|
406
414
|
};
|
|
407
|
-
className?: undefined;
|
|
408
|
-
tabs?: undefined;
|
|
409
|
-
} | {
|
|
410
|
-
type: string;
|
|
411
|
-
className: string;
|
|
412
|
-
tabs: {
|
|
413
|
-
title: string;
|
|
414
|
-
className: string;
|
|
415
|
-
body: {
|
|
416
|
-
type: string;
|
|
417
|
-
label: string;
|
|
418
|
-
objectApiName: string;
|
|
419
|
-
recordId: string;
|
|
420
|
-
id: string;
|
|
421
|
-
appId: any;
|
|
422
|
-
}[];
|
|
423
|
-
id: string;
|
|
424
|
-
}[];
|
|
425
|
-
id: string;
|
|
426
|
-
label?: undefined;
|
|
427
|
-
objectApiName?: undefined;
|
|
428
|
-
recordId?: undefined;
|
|
429
|
-
onEvent?: undefined;
|
|
430
415
|
})[];
|
|
431
416
|
};
|
|
432
417
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function getObjectRelatedList(
|
|
1
|
+
export function getObjectRelatedList(objectName: any, recordId: any, formFactor: any): Promise<({
|
|
2
2
|
masterObjectName: any;
|
|
3
3
|
object_name: any;
|
|
4
4
|
foreign_key: any;
|
|
@@ -20,6 +20,17 @@ export function getObjectRelatedList(appName: any, objectName: any, recordId: an
|
|
|
20
20
|
page_size?: undefined;
|
|
21
21
|
})[]>;
|
|
22
22
|
export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any, relatedKey: any, ctx: any): Promise<{
|
|
23
|
+
uiSchema: any;
|
|
24
|
+
amisSchema: {
|
|
25
|
+
type: string;
|
|
26
|
+
body: string;
|
|
27
|
+
level: string;
|
|
28
|
+
showIcon: boolean;
|
|
29
|
+
className: string;
|
|
30
|
+
id?: undefined;
|
|
31
|
+
data?: undefined;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
23
34
|
uiSchema: any;
|
|
24
35
|
amisSchema: {
|
|
25
36
|
type: string;
|
|
@@ -56,9 +67,11 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
|
|
|
56
67
|
sort: string;
|
|
57
68
|
ctx: any;
|
|
58
69
|
}[];
|
|
70
|
+
level?: undefined;
|
|
71
|
+
showIcon?: undefined;
|
|
59
72
|
};
|
|
60
73
|
}>;
|
|
61
|
-
export function getRelatedListSchema(
|
|
74
|
+
export function getRelatedListSchema(objectName: any, listViewName: any, ctx: any): Promise<{
|
|
62
75
|
uiSchema: any;
|
|
63
76
|
amisSchema: {
|
|
64
77
|
type: string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export namespace Router {
|
|
2
|
+
function getTabDisplayAs(tab_id: any): string;
|
|
3
|
+
function getTabDisplayAs(tab_id: any): string;
|
|
4
|
+
function setTabDisplayAs(tab_id: any, displayAs: any): void;
|
|
5
|
+
function setTabDisplayAs(tab_id: any, displayAs: any): void;
|
|
2
6
|
function getAppPath({ formFactor, appId }: {
|
|
3
7
|
formFactor: any;
|
|
4
8
|
appId: any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.22",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"lodash": "^4.17.21"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "d5c4066fc2f7e2705fa1c81360f3160512cbeea5"
|
|
62
62
|
}
|