@steedos-widgets/amis-lib 1.3.4-beta.9 → 1.3.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 +629 -172
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +629 -173
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +274 -146
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/buttons.d.ts +1 -0
- package/dist/types/lib/converter/amis/api.d.ts +1 -0
- package/dist/types/lib/converter/amis/fields/file.d.ts +4 -8
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +40 -24
- package/dist/types/lib/converter/amis/fields/table.d.ts +20 -0
- package/dist/types/lib/converter/amis/header.d.ts +1 -0
- package/dist/types/lib/converter/amis/index.d.ts +2 -3
- package/dist/types/lib/converter/amis/toolbar.d.ts +1 -0
- package/dist/types/lib/converter/amis/toolbars/setting_listview/copy.d.ts +1 -0
- package/dist/types/lib/converter/amis/toolbars/setting_listview.d.ts +1 -0
- package/dist/types/lib/expression.d.ts +5 -0
- package/dist/types/lib/objects.d.ts +3 -3
- package/dist/types/lib/objectsRelated.d.ts +3 -0
- package/dist/types/lib/page_init.d.ts +1 -3
- package/package.json +2 -2
|
@@ -16,11 +16,9 @@ export function getAmisFileEditSchema(steedosField: any): {
|
|
|
16
16
|
useChunk: boolean;
|
|
17
17
|
receiver: {
|
|
18
18
|
method: string;
|
|
19
|
+
dataType: string;
|
|
19
20
|
url: string;
|
|
20
|
-
|
|
21
|
-
$: string;
|
|
22
|
-
context: string;
|
|
23
|
-
};
|
|
21
|
+
requestAdaptor: string;
|
|
24
22
|
adaptor: string;
|
|
25
23
|
headers: {
|
|
26
24
|
Authorization: string;
|
|
@@ -44,11 +42,9 @@ export function getAmisFileSchema(steedosField: any, readonly: any): {
|
|
|
44
42
|
useChunk: boolean;
|
|
45
43
|
receiver: {
|
|
46
44
|
method: string;
|
|
45
|
+
dataType: string;
|
|
47
46
|
url: string;
|
|
48
|
-
|
|
49
|
-
$: string;
|
|
50
|
-
context: string;
|
|
51
|
-
};
|
|
47
|
+
requestAdaptor: string;
|
|
52
48
|
adaptor: string;
|
|
53
49
|
headers: {
|
|
54
50
|
Authorization: string;
|
|
@@ -161,30 +161,6 @@ export function lookupToAmisSelect(field: any, readonly: any, ctx: any): Promise
|
|
|
161
161
|
extractValue: boolean;
|
|
162
162
|
clearable: boolean;
|
|
163
163
|
disabledOn: string;
|
|
164
|
-
source: {
|
|
165
|
-
method: string;
|
|
166
|
-
url: string;
|
|
167
|
-
data: {
|
|
168
|
-
orderBy: string;
|
|
169
|
-
orderDir: string;
|
|
170
|
-
pageNo: string;
|
|
171
|
-
pageSize: string;
|
|
172
|
-
query: string;
|
|
173
|
-
};
|
|
174
|
-
headers: {
|
|
175
|
-
Authorization: string;
|
|
176
|
-
};
|
|
177
|
-
} | {
|
|
178
|
-
method: string;
|
|
179
|
-
url: string;
|
|
180
|
-
data: {
|
|
181
|
-
query: string;
|
|
182
|
-
$: string;
|
|
183
|
-
};
|
|
184
|
-
headers: {
|
|
185
|
-
Authorization: string;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
164
|
autoComplete: {
|
|
189
165
|
method: string;
|
|
190
166
|
url: string;
|
|
@@ -266,6 +242,25 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
266
242
|
};
|
|
267
243
|
} | {
|
|
268
244
|
mode: string;
|
|
245
|
+
perPageAvailable: number[];
|
|
246
|
+
name: string;
|
|
247
|
+
headerToolbarClassName: string;
|
|
248
|
+
className: string;
|
|
249
|
+
draggable: boolean;
|
|
250
|
+
defaultParams: {
|
|
251
|
+
perPage: any;
|
|
252
|
+
};
|
|
253
|
+
card: any;
|
|
254
|
+
syncLocation: boolean;
|
|
255
|
+
keepItemSelectionOnPageChange: boolean;
|
|
256
|
+
checkOnItemClick: boolean;
|
|
257
|
+
labelTpl: string;
|
|
258
|
+
autoFillHeight: boolean;
|
|
259
|
+
columnsTogglable: boolean;
|
|
260
|
+
columns?: undefined;
|
|
261
|
+
} | {
|
|
262
|
+
mode: string;
|
|
263
|
+
perPageAvailable: number[];
|
|
269
264
|
name: string;
|
|
270
265
|
headerToolbarClassName: string;
|
|
271
266
|
className: string;
|
|
@@ -280,6 +275,7 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
280
275
|
labelTpl: string;
|
|
281
276
|
autoFillHeight: boolean;
|
|
282
277
|
columnsTogglable: boolean;
|
|
278
|
+
card?: undefined;
|
|
283
279
|
};
|
|
284
280
|
joinValues: boolean;
|
|
285
281
|
extractValue: boolean;
|
|
@@ -337,6 +333,25 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
337
333
|
};
|
|
338
334
|
} | {
|
|
339
335
|
mode: string;
|
|
336
|
+
perPageAvailable: number[];
|
|
337
|
+
name: string;
|
|
338
|
+
headerToolbarClassName: string;
|
|
339
|
+
className: string;
|
|
340
|
+
draggable: boolean;
|
|
341
|
+
defaultParams: {
|
|
342
|
+
perPage: any;
|
|
343
|
+
};
|
|
344
|
+
card: any;
|
|
345
|
+
syncLocation: boolean;
|
|
346
|
+
keepItemSelectionOnPageChange: boolean;
|
|
347
|
+
checkOnItemClick: boolean;
|
|
348
|
+
labelTpl: string;
|
|
349
|
+
autoFillHeight: boolean;
|
|
350
|
+
columnsTogglable: boolean;
|
|
351
|
+
columns?: undefined;
|
|
352
|
+
} | {
|
|
353
|
+
mode: string;
|
|
354
|
+
perPageAvailable: number[];
|
|
340
355
|
name: string;
|
|
341
356
|
headerToolbarClassName: string;
|
|
342
357
|
className: string;
|
|
@@ -351,6 +366,7 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
351
366
|
labelTpl: string;
|
|
352
367
|
autoFillHeight: boolean;
|
|
353
368
|
columnsTogglable: boolean;
|
|
369
|
+
card?: undefined;
|
|
354
370
|
};
|
|
355
371
|
joinValues: boolean;
|
|
356
372
|
extractValue: boolean;
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
export function getTableSchema(fields: any, options: any): Promise<{
|
|
2
2
|
mode: string;
|
|
3
|
+
perPageAvailable: number[];
|
|
4
|
+
name: string;
|
|
5
|
+
headerToolbarClassName: string;
|
|
6
|
+
className: string;
|
|
7
|
+
draggable: boolean;
|
|
8
|
+
defaultParams: {
|
|
9
|
+
perPage: any;
|
|
10
|
+
};
|
|
11
|
+
card: any;
|
|
12
|
+
syncLocation: boolean;
|
|
13
|
+
keepItemSelectionOnPageChange: boolean;
|
|
14
|
+
checkOnItemClick: boolean;
|
|
15
|
+
labelTpl: string;
|
|
16
|
+
autoFillHeight: boolean;
|
|
17
|
+
columnsTogglable: boolean;
|
|
18
|
+
columns?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
mode: string;
|
|
21
|
+
perPageAvailable: number[];
|
|
3
22
|
name: string;
|
|
4
23
|
headerToolbarClassName: string;
|
|
5
24
|
className: string;
|
|
@@ -14,6 +33,7 @@ export function getTableSchema(fields: any, options: any): Promise<{
|
|
|
14
33
|
labelTpl: string;
|
|
15
34
|
autoFillHeight: boolean;
|
|
16
35
|
columnsTogglable: boolean;
|
|
36
|
+
card?: undefined;
|
|
17
37
|
}>;
|
|
18
38
|
/**
|
|
19
39
|
*
|
|
@@ -28,9 +28,7 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
|
|
|
28
28
|
Authorization: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
data:
|
|
32
|
-
editFormInited: boolean;
|
|
33
|
-
};
|
|
31
|
+
data: any;
|
|
34
32
|
initApi: any;
|
|
35
33
|
initFetch: any;
|
|
36
34
|
body: {}[];
|
|
@@ -56,6 +54,7 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
56
54
|
method: string;
|
|
57
55
|
url: string;
|
|
58
56
|
cache: number;
|
|
57
|
+
requestAdaptor: string;
|
|
59
58
|
adaptor: string;
|
|
60
59
|
data: {
|
|
61
60
|
query: string;
|
|
@@ -9,6 +9,7 @@ export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor:
|
|
|
9
9
|
export function getObjectFooterToolbar(mainObject: any, formFactor: any, options: any): (string | {
|
|
10
10
|
type: string;
|
|
11
11
|
maxButtons: number;
|
|
12
|
+
showPageInput: boolean;
|
|
12
13
|
})[];
|
|
13
14
|
export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
|
|
14
15
|
title: string;
|
|
@@ -28,9 +28,7 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
28
28
|
Authorization: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
data:
|
|
32
|
-
editFormInited: boolean;
|
|
33
|
-
};
|
|
31
|
+
data: any;
|
|
34
32
|
initApi: any;
|
|
35
33
|
initFetch: any;
|
|
36
34
|
body: {}[];
|
|
@@ -59,6 +57,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
59
57
|
method: string;
|
|
60
58
|
url: string;
|
|
61
59
|
cache: number;
|
|
60
|
+
requestAdaptor: string;
|
|
62
61
|
adaptor: string;
|
|
63
62
|
data: {
|
|
64
63
|
query: string;
|
|
@@ -297,6 +296,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
297
296
|
}[] | {
|
|
298
297
|
type: string;
|
|
299
298
|
icon: string;
|
|
299
|
+
visibleOn: string;
|
|
300
300
|
onEvent: {
|
|
301
301
|
click: {
|
|
302
302
|
actions: {
|
|
@@ -70,6 +70,9 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
|
|
|
70
70
|
};
|
|
71
71
|
}>;
|
|
72
72
|
export function getRelatedListSchema(objectName: any, listViewName: any, ctx: any): Promise<{
|
|
73
|
+
uiSchema?: undefined;
|
|
74
|
+
amisSchema?: undefined;
|
|
75
|
+
} | {
|
|
73
76
|
uiSchema: any;
|
|
74
77
|
amisSchema: {
|
|
75
78
|
type: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.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": "696396061c57decfde1f9d8f14c36fff7f4316b9"
|
|
65
65
|
}
|