@steedos-widgets/amis-lib 1.0.28 → 1.0.29
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 +12 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +37 -35
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +12 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +3 -19
- package/dist/types/lib/converter/amis/fields/sections.d.ts +1 -9
- package/dist/types/lib/converter/amis/fields_filter.d.ts +2 -18
- package/dist/types/lib/converter/amis/form.d.ts +1 -9
- package/dist/types/lib/converter/amis/header.d.ts +1 -9
- package/dist/types/lib/converter/amis/index.d.ts +2 -10
- package/dist/types/lib/converter/amis/toolbar.d.ts +1 -9
- package/dist/types/lib/objects.d.ts +5 -20
- package/dist/types/lib/page.d.ts +2 -2
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ export function getBaseFields(readonly: any): {
|
|
|
6
6
|
className: string;
|
|
7
7
|
tpl: string;
|
|
8
8
|
}[];
|
|
9
|
-
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "password" | "text" | "
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "password" | "text" | "picker" | "table" | "email" | "html" | "markdown" | "textarea" | "checkbox";
|
|
10
10
|
export function getObjectFieldSubFields(mainField: any, fields: any): any;
|
|
11
11
|
export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
12
12
|
/**
|
|
@@ -16,23 +16,7 @@ export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
|
16
16
|
*/
|
|
17
17
|
export function getPermissionFields(object: any, userSession: any): any[];
|
|
18
18
|
export function getSelectFieldOptions(field: any): any[];
|
|
19
|
-
export function convertSFieldToAmisField(field: any, readonly: any, ctx: any): Promise<
|
|
20
|
-
|
|
21
|
-
tpl: string;
|
|
22
|
-
multiple: boolean;
|
|
23
|
-
extractValue: boolean;
|
|
24
|
-
className: any;
|
|
25
|
-
quickEdit: boolean;
|
|
26
|
-
visibleOn: string;
|
|
27
|
-
}>;
|
|
28
|
-
export function getFieldSearchable(perField: any, permissionFields: any, ctx: any): Promise<{
|
|
29
|
-
type: any;
|
|
30
|
-
tpl: string;
|
|
31
|
-
multiple: boolean;
|
|
32
|
-
extractValue: boolean;
|
|
33
|
-
className: any;
|
|
34
|
-
quickEdit: boolean;
|
|
35
|
-
visibleOn: string;
|
|
36
|
-
}>;
|
|
19
|
+
export function convertSFieldToAmisField(field: any, readonly: any, ctx: any): Promise<any>;
|
|
20
|
+
export function getFieldSearchable(perField: any, permissionFields: any, ctx: any): Promise<any>;
|
|
37
21
|
export const OMIT_FIELDS: string[];
|
|
38
22
|
export { getAmisStaticFieldType } from "./type";
|
|
@@ -2,13 +2,5 @@ export function getSections(permissionFields: any, mergedSchema: any, ctx: any):
|
|
|
2
2
|
type: string;
|
|
3
3
|
title: any;
|
|
4
4
|
collapsable: boolean;
|
|
5
|
-
body:
|
|
6
|
-
type: any;
|
|
7
|
-
tpl: string;
|
|
8
|
-
multiple: boolean;
|
|
9
|
-
extractValue: boolean;
|
|
10
|
-
className: any;
|
|
11
|
-
quickEdit: boolean;
|
|
12
|
-
visibleOn: string;
|
|
13
|
-
}[];
|
|
5
|
+
body: any[];
|
|
14
6
|
}[]>;
|
|
@@ -14,15 +14,7 @@ export function getObjectFieldsFilterButtonSchema(objectSchema: any): Promise<{
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}>;
|
|
17
|
-
export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
18
|
-
type: any;
|
|
19
|
-
tpl: string;
|
|
20
|
-
multiple: boolean;
|
|
21
|
-
extractValue: boolean;
|
|
22
|
-
className: any;
|
|
23
|
-
quickEdit: boolean;
|
|
24
|
-
visibleOn: string;
|
|
25
|
-
}[] | {
|
|
17
|
+
export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any, ctx: any): Promise<any[] | {
|
|
26
18
|
title: string;
|
|
27
19
|
type: string;
|
|
28
20
|
name: string;
|
|
@@ -47,15 +39,7 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
|
|
|
47
39
|
type: string;
|
|
48
40
|
body: ({
|
|
49
41
|
type: string;
|
|
50
|
-
body: ({
|
|
51
|
-
type: any;
|
|
52
|
-
tpl: string;
|
|
53
|
-
multiple: boolean;
|
|
54
|
-
extractValue: boolean;
|
|
55
|
-
className: any;
|
|
56
|
-
quickEdit: boolean;
|
|
57
|
-
visibleOn: string;
|
|
58
|
-
}[] | {
|
|
42
|
+
body: (any[] | {
|
|
59
43
|
title: string;
|
|
60
44
|
type: string;
|
|
61
45
|
name: string;
|
|
@@ -2,13 +2,5 @@ export function getFormBody(permissionFields: any, objectConfig: any, ctx: any):
|
|
|
2
2
|
type: string;
|
|
3
3
|
title: any;
|
|
4
4
|
collapsable: boolean;
|
|
5
|
-
body:
|
|
6
|
-
type: any;
|
|
7
|
-
tpl: string;
|
|
8
|
-
multiple: boolean;
|
|
9
|
-
extractValue: boolean;
|
|
10
|
-
className: any;
|
|
11
|
-
quickEdit: boolean;
|
|
12
|
-
visibleOn: string;
|
|
13
|
-
}[];
|
|
5
|
+
body: any[];
|
|
14
6
|
}[]>;
|
|
@@ -149,15 +149,7 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
149
149
|
type: string;
|
|
150
150
|
body: ({
|
|
151
151
|
type: string;
|
|
152
|
-
body: ({
|
|
153
|
-
type: any;
|
|
154
|
-
tpl: string;
|
|
155
|
-
multiple: boolean;
|
|
156
|
-
extractValue: boolean;
|
|
157
|
-
className: any;
|
|
158
|
-
quickEdit: boolean;
|
|
159
|
-
visibleOn: string;
|
|
160
|
-
}[] | {
|
|
152
|
+
body: (any[] | {
|
|
161
153
|
title: string;
|
|
162
154
|
type: string;
|
|
163
155
|
name: string;
|
|
@@ -69,6 +69,7 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
69
69
|
body: {
|
|
70
70
|
type: string;
|
|
71
71
|
hiddenOn: string;
|
|
72
|
+
className: string;
|
|
72
73
|
body: {
|
|
73
74
|
type: string;
|
|
74
75
|
mode: any;
|
|
@@ -86,15 +87,7 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
86
87
|
type: string;
|
|
87
88
|
title: any;
|
|
88
89
|
collapsable: boolean;
|
|
89
|
-
body:
|
|
90
|
-
type: any;
|
|
91
|
-
tpl: string;
|
|
92
|
-
multiple: boolean;
|
|
93
|
-
extractValue: boolean;
|
|
94
|
-
className: any;
|
|
95
|
-
quickEdit: boolean;
|
|
96
|
-
visibleOn: string;
|
|
97
|
-
}[];
|
|
90
|
+
body: any[];
|
|
98
91
|
}[];
|
|
99
92
|
className: string;
|
|
100
93
|
actions: any[];
|
|
@@ -117,7 +110,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
117
110
|
};
|
|
118
111
|
};
|
|
119
112
|
};
|
|
120
|
-
className: string;
|
|
121
113
|
}[];
|
|
122
114
|
onEvent: {
|
|
123
115
|
fetchInited: {
|
|
@@ -83,15 +83,7 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
|
|
|
83
83
|
type: string;
|
|
84
84
|
body: ({
|
|
85
85
|
type: string;
|
|
86
|
-
body: ({
|
|
87
|
-
type: any;
|
|
88
|
-
tpl: string;
|
|
89
|
-
multiple: boolean;
|
|
90
|
-
extractValue: boolean;
|
|
91
|
-
className: any;
|
|
92
|
-
quickEdit: boolean;
|
|
93
|
-
visibleOn: string;
|
|
94
|
-
}[] | {
|
|
86
|
+
body: (any[] | {
|
|
95
87
|
title: string;
|
|
96
88
|
type: string;
|
|
97
89
|
name: string;
|
|
@@ -65,6 +65,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
65
65
|
body: {
|
|
66
66
|
type: string;
|
|
67
67
|
hiddenOn: string;
|
|
68
|
+
className: string;
|
|
68
69
|
body: {
|
|
69
70
|
type: string;
|
|
70
71
|
mode: any;
|
|
@@ -82,15 +83,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
82
83
|
type: string;
|
|
83
84
|
title: any;
|
|
84
85
|
collapsable: boolean;
|
|
85
|
-
body:
|
|
86
|
-
type: any;
|
|
87
|
-
tpl: string;
|
|
88
|
-
multiple: boolean;
|
|
89
|
-
extractValue: boolean;
|
|
90
|
-
className: any;
|
|
91
|
-
quickEdit: boolean;
|
|
92
|
-
visibleOn: string;
|
|
93
|
-
}[];
|
|
86
|
+
body: any[];
|
|
94
87
|
}[];
|
|
95
88
|
className: string;
|
|
96
89
|
actions: any[];
|
|
@@ -113,7 +106,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
113
106
|
};
|
|
114
107
|
};
|
|
115
108
|
};
|
|
116
|
-
className: string;
|
|
117
109
|
}[];
|
|
118
110
|
onEvent: {
|
|
119
111
|
fetchInited: {
|
|
@@ -399,7 +391,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
399
391
|
className: string;
|
|
400
392
|
};
|
|
401
393
|
}>;
|
|
402
|
-
export function getRecordDetailSchema(objectName: any, appId: any): Promise<{
|
|
394
|
+
export function getRecordDetailSchema(objectName: any, appId: any, props?: {}): Promise<{
|
|
403
395
|
uiSchema: any;
|
|
404
396
|
amisSchema: {
|
|
405
397
|
type: string;
|
|
@@ -448,6 +440,7 @@ export function getRecordDetailSchema(objectName: any, appId: any): Promise<{
|
|
|
448
440
|
};
|
|
449
441
|
};
|
|
450
442
|
})[];
|
|
443
|
+
onEvent: any;
|
|
451
444
|
};
|
|
452
445
|
}>;
|
|
453
446
|
export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
|
|
@@ -496,15 +489,7 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
496
489
|
record: any;
|
|
497
490
|
masterObjectUISchema: any;
|
|
498
491
|
}>;
|
|
499
|
-
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
500
|
-
type: any;
|
|
501
|
-
tpl: string;
|
|
502
|
-
multiple: boolean;
|
|
503
|
-
extractValue: boolean;
|
|
504
|
-
className: any;
|
|
505
|
-
quickEdit: boolean;
|
|
506
|
-
visibleOn: string;
|
|
507
|
-
}[] | {
|
|
492
|
+
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<any[] | {
|
|
508
493
|
title: string;
|
|
509
494
|
type: string;
|
|
510
495
|
name: string;
|
package/dist/types/lib/page.d.ts
CHANGED
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.29",
|
|
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": "dc0d23189fc89b7a957b98bb44946a51974929b9"
|
|
62
62
|
}
|