@steedos-widgets/amis-lib 3.6.2-beta.5 → 3.6.2-beta.7
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 +127 -158
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +127 -158
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +33 -36
- 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 -44
- 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;
|
|
@@ -249,12 +225,9 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
249
225
|
label: string;
|
|
250
226
|
objectApiName: string;
|
|
251
227
|
recordId: string;
|
|
252
|
-
id: string;
|
|
253
228
|
appId: any;
|
|
254
229
|
}[];
|
|
255
|
-
id: string;
|
|
256
230
|
}[];
|
|
257
|
-
id: string;
|
|
258
231
|
} | {
|
|
259
232
|
type: string;
|
|
260
233
|
label: string;
|
|
@@ -269,33 +242,53 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
269
242
|
onEvent: any;
|
|
270
243
|
};
|
|
271
244
|
}>;
|
|
272
|
-
export function getRecordServiceSchema(objectName: any, appId: any, props
|
|
245
|
+
export function getRecordServiceSchema(objectName: any, appId: any, props: {}, body: any): Promise<{
|
|
273
246
|
uiSchema: any;
|
|
274
247
|
amisSchema: {
|
|
275
248
|
type: string;
|
|
276
249
|
className: string;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
250
|
+
onEvent: {
|
|
251
|
+
[x: string]: {
|
|
252
|
+
actions: ({
|
|
253
|
+
actionType: string;
|
|
254
|
+
componentId: string;
|
|
255
|
+
expression: string;
|
|
256
|
+
script?: undefined;
|
|
257
|
+
} | {
|
|
258
|
+
actionType: string;
|
|
259
|
+
script: string;
|
|
260
|
+
expression: string;
|
|
261
|
+
componentId?: undefined;
|
|
262
|
+
})[];
|
|
288
263
|
};
|
|
289
264
|
};
|
|
290
265
|
body: {
|
|
291
266
|
type: string;
|
|
267
|
+
id: string;
|
|
292
268
|
className: string;
|
|
293
|
-
|
|
294
|
-
|
|
269
|
+
api: {
|
|
270
|
+
method: string;
|
|
271
|
+
url: string;
|
|
272
|
+
cache: number;
|
|
273
|
+
requestAdaptor: string;
|
|
274
|
+
adaptor: string;
|
|
275
|
+
data: {
|
|
276
|
+
query: string;
|
|
277
|
+
};
|
|
278
|
+
headers: {
|
|
279
|
+
Authorization: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
body: {
|
|
283
|
+
type: string;
|
|
284
|
+
className: string;
|
|
285
|
+
body: any;
|
|
286
|
+
hiddenOn: string;
|
|
287
|
+
};
|
|
288
|
+
data: any;
|
|
289
|
+
style: any;
|
|
290
|
+
onEvent: any;
|
|
295
291
|
};
|
|
296
|
-
data: any;
|
|
297
|
-
style: any;
|
|
298
|
-
onEvent: any;
|
|
299
292
|
};
|
|
300
293
|
}>;
|
|
301
294
|
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.7",
|
|
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": "724dfd7a834539fa951423fceae0fca144429200"
|
|
65
65
|
}
|