@steedos-widgets/amis-lib 3.6.1 → 3.6.2-beta.10
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 +765 -319
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +764 -320
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +267 -176
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/api.d.ts +2 -1
- package/dist/types/lib/converter/amis/header.d.ts +1 -56
- package/dist/types/lib/converter/amis/index.d.ts +0 -87
- package/dist/types/lib/converter/amis/toolbar.d.ts +7 -1
- package/dist/types/lib/input_table.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +78 -156
- package/dist/types/lib/objectsRelated.d.ts +19 -0
- package/dist/types/lib/page_init.d.ts +1 -38
- package/package.json +2 -2
|
@@ -18,7 +18,7 @@ export function getEditFormInitApi(object: any, recordId: any, fields: any, opti
|
|
|
18
18
|
requestAdaptor: string;
|
|
19
19
|
adaptor: string;
|
|
20
20
|
responseData: {
|
|
21
|
-
|
|
21
|
+
"&": string;
|
|
22
22
|
editFormInited: boolean;
|
|
23
23
|
};
|
|
24
24
|
data: {
|
|
@@ -49,6 +49,7 @@ export function getSaveApi(object: any, recordId: any, fields: any, options: any
|
|
|
49
49
|
export function getBatchDelete(objectName: any): {
|
|
50
50
|
method: string;
|
|
51
51
|
url: string;
|
|
52
|
+
adaptor: string;
|
|
52
53
|
requestAdaptor: string;
|
|
53
54
|
data: {
|
|
54
55
|
ids: string;
|
|
@@ -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;
|
|
@@ -543,14 +536,10 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
543
536
|
className: string;
|
|
544
537
|
}[];
|
|
545
538
|
}[];
|
|
546
|
-
className?: undefined;
|
|
547
|
-
tpl?: undefined;
|
|
548
539
|
} | {
|
|
549
540
|
type: string;
|
|
550
541
|
className: string;
|
|
551
542
|
tpl: string;
|
|
552
|
-
onEvent?: undefined;
|
|
553
|
-
body?: undefined;
|
|
554
543
|
})[];
|
|
555
544
|
md: string;
|
|
556
545
|
className: string;
|
|
@@ -574,51 +563,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
574
563
|
} | {
|
|
575
564
|
body: {
|
|
576
565
|
type: string;
|
|
577
|
-
items:
|
|
578
|
-
type: string;
|
|
579
|
-
name: any;
|
|
580
|
-
objectName: any;
|
|
581
|
-
visibleOn: any;
|
|
582
|
-
className: string;
|
|
583
|
-
}[] | {
|
|
584
|
-
type: string;
|
|
585
|
-
icon: string;
|
|
586
|
-
visibleOn: string;
|
|
587
|
-
onEvent: {
|
|
588
|
-
click: {
|
|
589
|
-
actions: {
|
|
590
|
-
actionType: string;
|
|
591
|
-
drawer: {
|
|
592
|
-
type: string;
|
|
593
|
-
title: string;
|
|
594
|
-
id: string;
|
|
595
|
-
body: {
|
|
596
|
-
type: string;
|
|
597
|
-
id: string;
|
|
598
|
-
vertical: boolean;
|
|
599
|
-
tiled: boolean;
|
|
600
|
-
buttons: {
|
|
601
|
-
type: string;
|
|
602
|
-
name: any;
|
|
603
|
-
objectName: any;
|
|
604
|
-
visibleOn: any;
|
|
605
|
-
}[];
|
|
606
|
-
btnLevel: string;
|
|
607
|
-
className: string;
|
|
608
|
-
btnClassName: string;
|
|
609
|
-
size: string;
|
|
610
|
-
}[];
|
|
611
|
-
position: string;
|
|
612
|
-
closeOnOutside: boolean;
|
|
613
|
-
resizable: boolean;
|
|
614
|
-
className: string;
|
|
615
|
-
bodyClassName: string;
|
|
616
|
-
actions: any[];
|
|
617
|
-
};
|
|
618
|
-
}[];
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
};
|
|
566
|
+
items: any[];
|
|
622
567
|
};
|
|
623
568
|
md: string;
|
|
624
569
|
columnClassName?: undefined;
|
|
@@ -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;
|
|
@@ -45,32 +28,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
45
28
|
type: string;
|
|
46
29
|
name: string;
|
|
47
30
|
id: string;
|
|
48
|
-
data: {
|
|
49
|
-
global: {
|
|
50
|
-
mode: any;
|
|
51
|
-
user: any;
|
|
52
|
-
spaceId: any;
|
|
53
|
-
userId: any;
|
|
54
|
-
};
|
|
55
|
-
context: {
|
|
56
|
-
rootUrl: any;
|
|
57
|
-
tenantId: any;
|
|
58
|
-
authToken: any;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
api: {
|
|
62
|
-
method: string;
|
|
63
|
-
url: string;
|
|
64
|
-
cache: number;
|
|
65
|
-
requestAdaptor: string;
|
|
66
|
-
adaptor: string;
|
|
67
|
-
data: {
|
|
68
|
-
query: string;
|
|
69
|
-
};
|
|
70
|
-
headers: {
|
|
71
|
-
Authorization: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
31
|
body: {
|
|
75
32
|
type: string;
|
|
76
33
|
hiddenOn: string;
|
|
@@ -105,50 +62,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
105
62
|
}[];
|
|
106
63
|
className: string;
|
|
107
64
|
actions: any[];
|
|
108
|
-
onEvent: {
|
|
109
|
-
[x: string]: {
|
|
110
|
-
actions: ({
|
|
111
|
-
actionType: string;
|
|
112
|
-
componentId: string;
|
|
113
|
-
expression: string;
|
|
114
|
-
script?: undefined;
|
|
115
|
-
} | {
|
|
116
|
-
actionType: string;
|
|
117
|
-
script: string;
|
|
118
|
-
expression: string;
|
|
119
|
-
componentId?: undefined;
|
|
120
|
-
})[];
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
65
|
};
|
|
124
66
|
}[];
|
|
125
|
-
onEvent: {
|
|
126
|
-
fetchInited: {
|
|
127
|
-
weight: number;
|
|
128
|
-
actions: ({
|
|
129
|
-
actionType: string;
|
|
130
|
-
eventName: string;
|
|
131
|
-
args: {
|
|
132
|
-
eventName: string;
|
|
133
|
-
value?: undefined;
|
|
134
|
-
};
|
|
135
|
-
data: {
|
|
136
|
-
objectName: string;
|
|
137
|
-
record: string;
|
|
138
|
-
};
|
|
139
|
-
expression: string;
|
|
140
|
-
} | {
|
|
141
|
-
actionType: string;
|
|
142
|
-
args: {
|
|
143
|
-
value: {
|
|
144
|
-
recordLoaded: boolean;
|
|
145
|
-
};
|
|
146
|
-
eventName?: undefined;
|
|
147
|
-
};
|
|
148
|
-
expression: string;
|
|
149
|
-
eventName?: undefined;
|
|
150
|
-
data?: undefined;
|
|
151
|
-
})[];
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
67
|
}>;
|
|
@@ -6,10 +6,16 @@ export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor:
|
|
|
6
6
|
isLookup?: boolean;
|
|
7
7
|
keywordsSearchBoxName: any;
|
|
8
8
|
}): any[];
|
|
9
|
-
export function getObjectFooterToolbar(mainObject: any, formFactor: any, options: any): (
|
|
9
|
+
export function getObjectFooterToolbar(mainObject: any, formFactor: any, options: any): ({
|
|
10
|
+
type: string;
|
|
11
|
+
visibleOn: string;
|
|
12
|
+
maxButtons?: undefined;
|
|
13
|
+
showPageInput?: undefined;
|
|
14
|
+
} | {
|
|
10
15
|
type: string;
|
|
11
16
|
maxButtons: number;
|
|
12
17
|
showPageInput: boolean;
|
|
18
|
+
visibleOn?: undefined;
|
|
13
19
|
})[] | {
|
|
14
20
|
type: string;
|
|
15
21
|
maxButtons: number;
|
|
@@ -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;
|
|
@@ -40,32 +23,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
40
23
|
type: string;
|
|
41
24
|
name: string;
|
|
42
25
|
id: string;
|
|
43
|
-
data: {
|
|
44
|
-
global: {
|
|
45
|
-
mode: any;
|
|
46
|
-
user: any;
|
|
47
|
-
spaceId: any;
|
|
48
|
-
userId: any;
|
|
49
|
-
};
|
|
50
|
-
context: {
|
|
51
|
-
rootUrl: any;
|
|
52
|
-
tenantId: any;
|
|
53
|
-
authToken: any;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
api: {
|
|
57
|
-
method: string;
|
|
58
|
-
url: string;
|
|
59
|
-
cache: number;
|
|
60
|
-
requestAdaptor: string;
|
|
61
|
-
adaptor: string;
|
|
62
|
-
data: {
|
|
63
|
-
query: string;
|
|
64
|
-
};
|
|
65
|
-
headers: {
|
|
66
|
-
Authorization: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
26
|
body: {
|
|
70
27
|
type: string;
|
|
71
28
|
hiddenOn: string;
|
|
@@ -100,52 +57,8 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
100
57
|
}[];
|
|
101
58
|
className: string;
|
|
102
59
|
actions: any[];
|
|
103
|
-
onEvent: {
|
|
104
|
-
[x: string]: {
|
|
105
|
-
actions: ({
|
|
106
|
-
actionType: string;
|
|
107
|
-
componentId: string;
|
|
108
|
-
expression: string;
|
|
109
|
-
script?: undefined;
|
|
110
|
-
} | {
|
|
111
|
-
actionType: string;
|
|
112
|
-
script: string;
|
|
113
|
-
expression: string;
|
|
114
|
-
componentId?: undefined;
|
|
115
|
-
})[];
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
60
|
};
|
|
119
61
|
}[];
|
|
120
|
-
onEvent: {
|
|
121
|
-
fetchInited: {
|
|
122
|
-
weight: number;
|
|
123
|
-
actions: ({
|
|
124
|
-
actionType: string;
|
|
125
|
-
eventName: string;
|
|
126
|
-
args: {
|
|
127
|
-
eventName: string;
|
|
128
|
-
value?: undefined;
|
|
129
|
-
};
|
|
130
|
-
data: {
|
|
131
|
-
objectName: string;
|
|
132
|
-
record: string;
|
|
133
|
-
};
|
|
134
|
-
expression: string;
|
|
135
|
-
} | {
|
|
136
|
-
actionType: string;
|
|
137
|
-
args: {
|
|
138
|
-
value: {
|
|
139
|
-
recordLoaded: boolean;
|
|
140
|
-
};
|
|
141
|
-
eventName?: undefined;
|
|
142
|
-
};
|
|
143
|
-
expression: string;
|
|
144
|
-
eventName?: undefined;
|
|
145
|
-
data?: undefined;
|
|
146
|
-
})[];
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
62
|
};
|
|
150
63
|
}>;
|
|
151
64
|
export function getListSchema(appName: any, objectName: any, listViewName: any, ctx?: {}): Promise<{
|
|
@@ -219,13 +132,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
219
132
|
type: string;
|
|
220
133
|
id: string;
|
|
221
134
|
name: string;
|
|
222
|
-
data: {
|
|
223
|
-
objectName: any;
|
|
224
|
-
_id: any;
|
|
225
|
-
recordPermissions: any;
|
|
226
|
-
uiSchema: any;
|
|
227
|
-
record: string;
|
|
228
|
-
};
|
|
229
135
|
body: {
|
|
230
136
|
type: string;
|
|
231
137
|
className: string;
|
|
@@ -265,14 +171,10 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
265
171
|
className: string;
|
|
266
172
|
}[];
|
|
267
173
|
}[];
|
|
268
|
-
className?: undefined;
|
|
269
|
-
tpl?: undefined;
|
|
270
174
|
} | {
|
|
271
175
|
type: string;
|
|
272
176
|
className: string;
|
|
273
177
|
tpl: string;
|
|
274
|
-
onEvent?: undefined;
|
|
275
|
-
body?: undefined;
|
|
276
178
|
})[];
|
|
277
179
|
md: string;
|
|
278
180
|
className: string;
|
|
@@ -296,51 +198,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
296
198
|
} | {
|
|
297
199
|
body: {
|
|
298
200
|
type: string;
|
|
299
|
-
items:
|
|
300
|
-
type: string;
|
|
301
|
-
name: any;
|
|
302
|
-
objectName: any;
|
|
303
|
-
visibleOn: any;
|
|
304
|
-
className: string;
|
|
305
|
-
}[] | {
|
|
306
|
-
type: string;
|
|
307
|
-
icon: string;
|
|
308
|
-
visibleOn: string;
|
|
309
|
-
onEvent: {
|
|
310
|
-
click: {
|
|
311
|
-
actions: {
|
|
312
|
-
actionType: string;
|
|
313
|
-
drawer: {
|
|
314
|
-
type: string;
|
|
315
|
-
title: string;
|
|
316
|
-
id: string;
|
|
317
|
-
body: {
|
|
318
|
-
type: string;
|
|
319
|
-
id: string;
|
|
320
|
-
vertical: boolean;
|
|
321
|
-
tiled: boolean;
|
|
322
|
-
buttons: {
|
|
323
|
-
type: string;
|
|
324
|
-
name: any;
|
|
325
|
-
objectName: any;
|
|
326
|
-
visibleOn: any;
|
|
327
|
-
}[];
|
|
328
|
-
btnLevel: string;
|
|
329
|
-
className: string;
|
|
330
|
-
btnClassName: string;
|
|
331
|
-
size: string;
|
|
332
|
-
}[];
|
|
333
|
-
position: string;
|
|
334
|
-
closeOnOutside: boolean;
|
|
335
|
-
resizable: boolean;
|
|
336
|
-
className: string;
|
|
337
|
-
bodyClassName: string;
|
|
338
|
-
actions: any[];
|
|
339
|
-
};
|
|
340
|
-
}[];
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
};
|
|
201
|
+
items: any[];
|
|
344
202
|
};
|
|
345
203
|
md: string;
|
|
346
204
|
columnClassName?: undefined;
|
|
@@ -359,6 +217,7 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
359
217
|
body: ({
|
|
360
218
|
type: string;
|
|
361
219
|
className: string;
|
|
220
|
+
contentClassName: string;
|
|
362
221
|
tabs: {
|
|
363
222
|
title: string;
|
|
364
223
|
className: string;
|
|
@@ -367,37 +226,100 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
367
226
|
label: string;
|
|
368
227
|
objectApiName: string;
|
|
369
228
|
recordId: string;
|
|
370
|
-
id: string;
|
|
371
229
|
appId: any;
|
|
372
230
|
}[];
|
|
373
|
-
id: string;
|
|
374
231
|
}[];
|
|
375
|
-
id: string;
|
|
376
232
|
} | {
|
|
377
233
|
type: string;
|
|
378
234
|
label: string;
|
|
379
235
|
objectApiName: string;
|
|
380
236
|
recordId: string;
|
|
381
237
|
id: string;
|
|
238
|
+
showButtons: any;
|
|
239
|
+
showBackButton: any;
|
|
382
240
|
})[];
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
"_master.recordId": string;
|
|
386
|
-
};
|
|
241
|
+
objectApiName: string;
|
|
242
|
+
recordId: string;
|
|
387
243
|
onEvent: any;
|
|
388
244
|
};
|
|
389
245
|
}>;
|
|
390
|
-
export function getRecordServiceSchema(objectName: any, appId: any, props
|
|
246
|
+
export function getRecordServiceSchema(objectName: any, appId: any, props: {}, body: any): Promise<{
|
|
391
247
|
uiSchema: any;
|
|
392
248
|
amisSchema: {
|
|
393
249
|
type: string;
|
|
394
|
-
|
|
250
|
+
className: string;
|
|
251
|
+
onEvent: {
|
|
252
|
+
[x: string]: {
|
|
253
|
+
actions: ({
|
|
254
|
+
actionType: string;
|
|
255
|
+
componentId: string;
|
|
256
|
+
expression: string;
|
|
257
|
+
script?: undefined;
|
|
258
|
+
} | {
|
|
259
|
+
actionType: string;
|
|
260
|
+
script: string;
|
|
261
|
+
expression: string;
|
|
262
|
+
componentId?: undefined;
|
|
263
|
+
})[];
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
body: {
|
|
267
|
+
type: string;
|
|
268
|
+
id: string;
|
|
269
|
+
className: string;
|
|
270
|
+
api: {
|
|
271
|
+
method: string;
|
|
272
|
+
url: string;
|
|
273
|
+
cache: number;
|
|
274
|
+
requestAdaptor: string;
|
|
275
|
+
adaptor: string;
|
|
276
|
+
data: {
|
|
277
|
+
query: string;
|
|
278
|
+
};
|
|
279
|
+
headers: {
|
|
280
|
+
Authorization: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
body: {
|
|
284
|
+
type: string;
|
|
285
|
+
className: string;
|
|
286
|
+
body: any;
|
|
287
|
+
hiddenOn: string;
|
|
288
|
+
};
|
|
289
|
+
data: any;
|
|
290
|
+
style: any;
|
|
291
|
+
onEvent: any;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
}>;
|
|
295
|
+
export function getRecordDetailMiniSchema(objectName: any, appId: any, props?: {}): Promise<{
|
|
296
|
+
type: string;
|
|
297
|
+
wrapWithPanel: boolean;
|
|
298
|
+
actions: any[];
|
|
299
|
+
initApi: {
|
|
300
|
+
method: string;
|
|
301
|
+
url: string;
|
|
302
|
+
cache: number;
|
|
303
|
+
requestAdaptor: string;
|
|
304
|
+
adaptor: string;
|
|
395
305
|
data: {
|
|
396
|
-
|
|
397
|
-
"_master.recordId": string;
|
|
306
|
+
query: string;
|
|
398
307
|
};
|
|
399
|
-
|
|
400
|
-
|
|
308
|
+
headers: {
|
|
309
|
+
Authorization: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
body: {
|
|
313
|
+
type: string;
|
|
314
|
+
className: string;
|
|
315
|
+
body: {
|
|
316
|
+
type: string;
|
|
317
|
+
showButtons: boolean;
|
|
318
|
+
showBackButton: boolean;
|
|
319
|
+
objectApiName: string;
|
|
320
|
+
recordId: string;
|
|
321
|
+
}[];
|
|
322
|
+
hiddenOn: string;
|
|
401
323
|
};
|
|
402
324
|
}>;
|
|
403
325
|
export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
|
|
@@ -88,4 +88,23 @@ export function getRelatedListSchema(objectName: any, listViewName: any, ctx: an
|
|
|
88
88
|
ctx: any;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
|
+
export function getObjectRelatedListsMiniSchema(objectApiName: any): Promise<{
|
|
92
|
+
type: string;
|
|
93
|
+
className: string;
|
|
94
|
+
body: {
|
|
95
|
+
type: string;
|
|
96
|
+
objectApiName: any;
|
|
97
|
+
formFactor: any;
|
|
98
|
+
relatedObjectApiName: any;
|
|
99
|
+
foreign_key: any;
|
|
100
|
+
relatedKey: any;
|
|
101
|
+
columns: any;
|
|
102
|
+
sort: any;
|
|
103
|
+
filters: any;
|
|
104
|
+
visible_on: any;
|
|
105
|
+
perPage: any;
|
|
106
|
+
hiddenEmptyTable: boolean;
|
|
107
|
+
relatedLabel: any;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
91
110
|
export function getRelatedFieldValue(masterObjectName: any, record_id: any, uiSchema: any, foreign_key: any): any;
|
|
@@ -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.
|
|
4
|
+
"version": "3.6.2-beta.10",
|
|
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": "9074b66d1cfd4cdc7a5ebce711a3ac0d295269c1"
|
|
65
65
|
}
|