@steedos-widgets/amis-lib 3.6.2-beta.5 → 3.6.2-beta.6
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 +121 -147
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +121 -147
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +31 -34
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/api.d.ts +0 -4
- package/dist/types/lib/converter/amis/header.d.ts +0 -7
- package/dist/types/lib/converter/amis/index.d.ts +0 -17
- package/dist/types/lib/objects.d.ts +37 -41
- package/dist/types/lib/page_init.d.ts +1 -38
- package/package.json +2 -2
|
@@ -17,10 +17,6 @@ export function getEditFormInitApi(object: any, recordId: any, fields: any, opti
|
|
|
17
17
|
cache: number;
|
|
18
18
|
requestAdaptor: string;
|
|
19
19
|
adaptor: string;
|
|
20
|
-
responseData: {
|
|
21
|
-
initialValues: string;
|
|
22
|
-
editFormInited: boolean;
|
|
23
|
-
};
|
|
24
20
|
data: {
|
|
25
21
|
query: string;
|
|
26
22
|
};
|
|
@@ -497,13 +497,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
497
497
|
type: string;
|
|
498
498
|
id: string;
|
|
499
499
|
name: string;
|
|
500
|
-
data: {
|
|
501
|
-
objectName: any;
|
|
502
|
-
_id: any;
|
|
503
|
-
recordPermissions: any;
|
|
504
|
-
uiSchema: any;
|
|
505
|
-
record: string;
|
|
506
|
-
};
|
|
507
500
|
body: {
|
|
508
501
|
type: string;
|
|
509
502
|
className: string;
|
|
@@ -19,23 +19,6 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
|
|
|
19
19
|
id: string;
|
|
20
20
|
className: string;
|
|
21
21
|
name: string;
|
|
22
|
-
api: {
|
|
23
|
-
method: string;
|
|
24
|
-
url: string;
|
|
25
|
-
cache: number;
|
|
26
|
-
requestAdaptor: string;
|
|
27
|
-
adaptor: string;
|
|
28
|
-
responseData: {
|
|
29
|
-
initialValues: string;
|
|
30
|
-
editFormInited: boolean;
|
|
31
|
-
};
|
|
32
|
-
data: {
|
|
33
|
-
query: string;
|
|
34
|
-
};
|
|
35
|
-
headers: {
|
|
36
|
-
Authorization: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
22
|
data: any;
|
|
40
23
|
initApi: any;
|
|
41
24
|
initFetch: any;
|
|
@@ -11,23 +11,6 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
11
11
|
id: string;
|
|
12
12
|
className: string;
|
|
13
13
|
name: string;
|
|
14
|
-
api: {
|
|
15
|
-
method: string;
|
|
16
|
-
url: string;
|
|
17
|
-
cache: number;
|
|
18
|
-
requestAdaptor: string;
|
|
19
|
-
adaptor: string;
|
|
20
|
-
responseData: {
|
|
21
|
-
initialValues: string;
|
|
22
|
-
editFormInited: boolean;
|
|
23
|
-
};
|
|
24
|
-
data: {
|
|
25
|
-
query: string;
|
|
26
|
-
};
|
|
27
|
-
headers: {
|
|
28
|
-
Authorization: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
14
|
data: any;
|
|
32
15
|
initApi: any;
|
|
33
16
|
initFetch: any;
|
|
@@ -149,13 +132,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
149
132
|
type: string;
|
|
150
133
|
id: string;
|
|
151
134
|
name: string;
|
|
152
|
-
data: {
|
|
153
|
-
objectName: any;
|
|
154
|
-
_id: any;
|
|
155
|
-
recordPermissions: any;
|
|
156
|
-
uiSchema: any;
|
|
157
|
-
record: string;
|
|
158
|
-
};
|
|
159
135
|
body: {
|
|
160
136
|
type: string;
|
|
161
137
|
className: string;
|
|
@@ -269,33 +245,53 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
269
245
|
onEvent: any;
|
|
270
246
|
};
|
|
271
247
|
}>;
|
|
272
|
-
export function getRecordServiceSchema(objectName: any, appId: any, props
|
|
248
|
+
export function getRecordServiceSchema(objectName: any, appId: any, props: {}, body: any): Promise<{
|
|
273
249
|
uiSchema: any;
|
|
274
250
|
amisSchema: {
|
|
275
251
|
type: string;
|
|
276
252
|
className: string;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
253
|
+
onEvent: {
|
|
254
|
+
[x: string]: {
|
|
255
|
+
actions: ({
|
|
256
|
+
actionType: string;
|
|
257
|
+
componentId: string;
|
|
258
|
+
expression: string;
|
|
259
|
+
script?: undefined;
|
|
260
|
+
} | {
|
|
261
|
+
actionType: string;
|
|
262
|
+
script: string;
|
|
263
|
+
expression: string;
|
|
264
|
+
componentId?: undefined;
|
|
265
|
+
})[];
|
|
288
266
|
};
|
|
289
267
|
};
|
|
290
268
|
body: {
|
|
291
269
|
type: string;
|
|
270
|
+
id: string;
|
|
292
271
|
className: string;
|
|
293
|
-
|
|
294
|
-
|
|
272
|
+
api: {
|
|
273
|
+
method: string;
|
|
274
|
+
url: string;
|
|
275
|
+
cache: number;
|
|
276
|
+
requestAdaptor: string;
|
|
277
|
+
adaptor: string;
|
|
278
|
+
data: {
|
|
279
|
+
query: string;
|
|
280
|
+
};
|
|
281
|
+
headers: {
|
|
282
|
+
Authorization: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
body: {
|
|
286
|
+
type: string;
|
|
287
|
+
className: string;
|
|
288
|
+
body: any;
|
|
289
|
+
hiddenOn: string;
|
|
290
|
+
};
|
|
291
|
+
data: any;
|
|
292
|
+
style: any;
|
|
293
|
+
onEvent: any;
|
|
295
294
|
};
|
|
296
|
-
data: any;
|
|
297
|
-
style: any;
|
|
298
|
-
onEvent: any;
|
|
299
295
|
};
|
|
300
296
|
}>;
|
|
301
297
|
export function getRecordDetailMiniSchema(objectName: any, appId: any, props?: {}): Promise<{
|
|
@@ -8,23 +8,6 @@ export function getFormPageInitSchema(objectApiName: any): Promise<{
|
|
|
8
8
|
id: string;
|
|
9
9
|
className: string;
|
|
10
10
|
name: string;
|
|
11
|
-
api: {
|
|
12
|
-
method: string;
|
|
13
|
-
url: string;
|
|
14
|
-
cache: number;
|
|
15
|
-
requestAdaptor: string;
|
|
16
|
-
adaptor: string;
|
|
17
|
-
responseData: {
|
|
18
|
-
initialValues: string;
|
|
19
|
-
editFormInited: boolean;
|
|
20
|
-
};
|
|
21
|
-
data: {
|
|
22
|
-
query: string;
|
|
23
|
-
};
|
|
24
|
-
headers: {
|
|
25
|
-
Authorization: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
11
|
data: any;
|
|
29
12
|
initApi: any;
|
|
30
13
|
initFetch: any;
|
|
@@ -55,27 +38,7 @@ export function getRecordPageInitSchema(objectApiName: any): Promise<{
|
|
|
55
38
|
label: string;
|
|
56
39
|
objectApiName: string;
|
|
57
40
|
recordId: string;
|
|
58
|
-
onEvent: {
|
|
59
|
-
recordLoaded: {
|
|
60
|
-
actions: ({
|
|
61
|
-
actionType: string;
|
|
62
|
-
args: {
|
|
63
|
-
value: {
|
|
64
|
-
recordLoaded: boolean;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
data?: undefined;
|
|
68
|
-
} | {
|
|
69
|
-
actionType: string;
|
|
70
|
-
data: {
|
|
71
|
-
name: string;
|
|
72
|
-
record: string;
|
|
73
|
-
recordLoaded: boolean;
|
|
74
|
-
};
|
|
75
|
-
args?: undefined;
|
|
76
|
-
})[];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
41
|
+
onEvent: {};
|
|
79
42
|
}[];
|
|
80
43
|
}>;
|
|
81
44
|
export function getListviewInitSchema(objectApiName: any, listViewName: any, ctx: any): Promise<{}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.6.2-beta.
|
|
4
|
+
"version": "3.6.2-beta.6",
|
|
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": "60b0fa72929039637851c75a1c8386723cbd19e2"
|
|
65
65
|
}
|