@steedos-widgets/amis-lib 3.6.2-beta.4 → 3.6.2-beta.5
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 +340 -155
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +340 -157
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +159 -145
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +1 -0
- package/dist/types/lib/converter/amis/header.d.ts +1 -49
- package/dist/types/lib/converter/amis/index.d.ts +0 -70
- package/dist/types/lib/input_table.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +55 -127
- package/dist/types/lib/objectsRelated.d.ts +19 -0
- package/package.json +2 -2
|
@@ -543,14 +543,10 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
543
543
|
className: string;
|
|
544
544
|
}[];
|
|
545
545
|
}[];
|
|
546
|
-
className?: undefined;
|
|
547
|
-
tpl?: undefined;
|
|
548
546
|
} | {
|
|
549
547
|
type: string;
|
|
550
548
|
className: string;
|
|
551
549
|
tpl: string;
|
|
552
|
-
onEvent?: undefined;
|
|
553
|
-
body?: undefined;
|
|
554
550
|
})[];
|
|
555
551
|
md: string;
|
|
556
552
|
className: string;
|
|
@@ -574,51 +570,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
574
570
|
} | {
|
|
575
571
|
body: {
|
|
576
572
|
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
|
-
};
|
|
573
|
+
items: any[];
|
|
622
574
|
};
|
|
623
575
|
md: string;
|
|
624
576
|
columnClassName?: undefined;
|
|
@@ -45,32 +45,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
45
45
|
type: string;
|
|
46
46
|
name: string;
|
|
47
47
|
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
48
|
body: {
|
|
75
49
|
type: string;
|
|
76
50
|
hiddenOn: string;
|
|
@@ -105,50 +79,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
105
79
|
}[];
|
|
106
80
|
className: string;
|
|
107
81
|
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
82
|
};
|
|
124
83
|
}[];
|
|
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
84
|
}>;
|
|
@@ -40,32 +40,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
40
40
|
type: string;
|
|
41
41
|
name: string;
|
|
42
42
|
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
43
|
body: {
|
|
70
44
|
type: string;
|
|
71
45
|
hiddenOn: string;
|
|
@@ -100,52 +74,8 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
100
74
|
}[];
|
|
101
75
|
className: string;
|
|
102
76
|
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
77
|
};
|
|
119
78
|
}[];
|
|
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
79
|
};
|
|
150
80
|
}>;
|
|
151
81
|
export function getListSchema(appName: any, objectName: any, listViewName: any, ctx?: {}): Promise<{
|
|
@@ -265,14 +195,10 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
265
195
|
className: string;
|
|
266
196
|
}[];
|
|
267
197
|
}[];
|
|
268
|
-
className?: undefined;
|
|
269
|
-
tpl?: undefined;
|
|
270
198
|
} | {
|
|
271
199
|
type: string;
|
|
272
200
|
className: string;
|
|
273
201
|
tpl: string;
|
|
274
|
-
onEvent?: undefined;
|
|
275
|
-
body?: undefined;
|
|
276
202
|
})[];
|
|
277
203
|
md: string;
|
|
278
204
|
className: string;
|
|
@@ -296,51 +222,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
296
222
|
} | {
|
|
297
223
|
body: {
|
|
298
224
|
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
|
-
};
|
|
225
|
+
items: any[];
|
|
344
226
|
};
|
|
345
227
|
md: string;
|
|
346
228
|
columnClassName?: undefined;
|
|
@@ -379,11 +261,11 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
379
261
|
objectApiName: string;
|
|
380
262
|
recordId: string;
|
|
381
263
|
id: string;
|
|
264
|
+
showButtons: any;
|
|
265
|
+
showBackButton: any;
|
|
382
266
|
})[];
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
"_master.recordId": string;
|
|
386
|
-
};
|
|
267
|
+
objectApiName: string;
|
|
268
|
+
recordId: string;
|
|
387
269
|
onEvent: any;
|
|
388
270
|
};
|
|
389
271
|
}>;
|
|
@@ -391,15 +273,61 @@ export function getRecordServiceSchema(objectName: any, appId: any, props?: {}):
|
|
|
391
273
|
uiSchema: any;
|
|
392
274
|
amisSchema: {
|
|
393
275
|
type: string;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
276
|
+
className: string;
|
|
277
|
+
api: {
|
|
278
|
+
method: string;
|
|
279
|
+
url: string;
|
|
280
|
+
cache: number;
|
|
281
|
+
requestAdaptor: string;
|
|
282
|
+
adaptor: string;
|
|
283
|
+
data: {
|
|
284
|
+
query: string;
|
|
285
|
+
};
|
|
286
|
+
headers: {
|
|
287
|
+
Authorization: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
body: {
|
|
291
|
+
type: string;
|
|
292
|
+
className: string;
|
|
293
|
+
body: any[];
|
|
294
|
+
hiddenOn: string;
|
|
398
295
|
};
|
|
296
|
+
data: any;
|
|
399
297
|
style: any;
|
|
400
298
|
onEvent: any;
|
|
401
299
|
};
|
|
402
300
|
}>;
|
|
301
|
+
export function getRecordDetailMiniSchema(objectName: any, appId: any, props?: {}): Promise<{
|
|
302
|
+
type: string;
|
|
303
|
+
wrapWithPanel: boolean;
|
|
304
|
+
actions: any[];
|
|
305
|
+
initApi: {
|
|
306
|
+
method: string;
|
|
307
|
+
url: string;
|
|
308
|
+
cache: number;
|
|
309
|
+
requestAdaptor: string;
|
|
310
|
+
adaptor: string;
|
|
311
|
+
data: {
|
|
312
|
+
query: string;
|
|
313
|
+
};
|
|
314
|
+
headers: {
|
|
315
|
+
Authorization: string;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
body: {
|
|
319
|
+
type: string;
|
|
320
|
+
className: string;
|
|
321
|
+
body: {
|
|
322
|
+
type: string;
|
|
323
|
+
showButtons: boolean;
|
|
324
|
+
showBackButton: boolean;
|
|
325
|
+
objectApiName: string;
|
|
326
|
+
recordId: string;
|
|
327
|
+
}[];
|
|
328
|
+
hiddenOn: string;
|
|
329
|
+
};
|
|
330
|
+
}>;
|
|
403
331
|
export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
|
|
404
332
|
appName: any;
|
|
405
333
|
masterObjectName: any;
|
|
@@ -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;
|
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.5",
|
|
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": "a90e34c7cebf552d707f7b500a84729093c29ff2"
|
|
65
65
|
}
|