@steedos-widgets/amis-lib 1.0.17 → 1.0.19
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 +33 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +33 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +56 -41
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +6 -13
- package/dist/types/lib/converter/amis/fields/table.d.ts +6 -13
- package/dist/types/lib/converter/amis/header.d.ts +39 -42
- package/dist/types/lib/converter/amis/toolbar.d.ts +1 -1
- package/dist/types/lib/converter/amis/tpl.d.ts +0 -1
- package/dist/types/lib/objects.d.ts +40 -52
- package/dist/types/lib/objectsRelated.d.ts +1 -1
- package/dist/types/schema/standard_import_data.amis.d.ts +1 -1
- package/dist/types/standard/button.d.ts +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ export function getBaseFields(readonly: any): {
|
|
|
6
6
|
className: string;
|
|
7
7
|
tpl: string;
|
|
8
8
|
}[];
|
|
9
|
-
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "password" | "text" | "textarea" | "picker" | "table" | "email" | "html" | "markdown" | "checkbox";
|
|
10
10
|
export function getObjectFieldSubFields(mainField: any, fields: any): any;
|
|
11
11
|
export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
12
12
|
/**
|
|
@@ -62,21 +62,13 @@ export function lookupToAmisPicker(field: any, readonly: any, ctx: any): Promise
|
|
|
62
62
|
label: any;
|
|
63
63
|
sortable: any;
|
|
64
64
|
type: string;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
level: string;
|
|
66
|
+
actionType: string;
|
|
67
|
+
link: string;
|
|
68
|
+
innerClassName: string;
|
|
68
69
|
body: {
|
|
69
70
|
type: string;
|
|
70
|
-
body:
|
|
71
|
-
type: string;
|
|
72
|
-
body: {
|
|
73
|
-
type: string;
|
|
74
|
-
tpl: any;
|
|
75
|
-
className: string;
|
|
76
|
-
}[];
|
|
77
|
-
size: string;
|
|
78
|
-
className: string;
|
|
79
|
-
}[];
|
|
71
|
+
body: "type";
|
|
80
72
|
size: string;
|
|
81
73
|
className: string;
|
|
82
74
|
};
|
|
@@ -91,6 +83,7 @@ export function lookupToAmisPicker(field: any, readonly: any, ctx: any): Promise
|
|
|
91
83
|
checkOnItemClick: boolean;
|
|
92
84
|
labelTpl: string;
|
|
93
85
|
autoFillHeight: boolean;
|
|
86
|
+
columnsTogglable: boolean;
|
|
94
87
|
};
|
|
95
88
|
joinValues: boolean;
|
|
96
89
|
extractValue: boolean;
|
|
@@ -12,21 +12,13 @@ export function getTableSchema(fields: any, options: any): Promise<{
|
|
|
12
12
|
label: any;
|
|
13
13
|
sortable: any;
|
|
14
14
|
type: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
level: string;
|
|
16
|
+
actionType: string;
|
|
17
|
+
link: string;
|
|
18
|
+
innerClassName: string;
|
|
18
19
|
body: {
|
|
19
20
|
type: string;
|
|
20
|
-
body:
|
|
21
|
-
type: string;
|
|
22
|
-
body: {
|
|
23
|
-
type: string;
|
|
24
|
-
tpl: any;
|
|
25
|
-
className: string;
|
|
26
|
-
}[];
|
|
27
|
-
size: string;
|
|
28
|
-
className: string;
|
|
29
|
-
}[];
|
|
21
|
+
body: "type";
|
|
30
22
|
size: string;
|
|
31
23
|
className: string;
|
|
32
24
|
};
|
|
@@ -41,6 +33,7 @@ export function getTableSchema(fields: any, options: any): Promise<{
|
|
|
41
33
|
checkOnItemClick: boolean;
|
|
42
34
|
labelTpl: string;
|
|
43
35
|
autoFillHeight: boolean;
|
|
36
|
+
columnsTogglable: boolean;
|
|
44
37
|
}>;
|
|
45
38
|
/**
|
|
46
39
|
*
|
|
@@ -410,56 +410,53 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
410
410
|
type: string;
|
|
411
411
|
body: {
|
|
412
412
|
type: string;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
columns: ({
|
|
420
|
-
body: {
|
|
421
|
-
type: string;
|
|
422
|
-
className: string;
|
|
423
|
-
tpl: string;
|
|
424
|
-
};
|
|
425
|
-
md: string;
|
|
413
|
+
columns: ({
|
|
414
|
+
body: {
|
|
415
|
+
type: string;
|
|
416
|
+
columns: ({
|
|
417
|
+
body: {
|
|
418
|
+
type: string;
|
|
426
419
|
className: string;
|
|
427
|
-
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
type: string;
|
|
431
|
-
tpl: string;
|
|
432
|
-
inline: boolean;
|
|
433
|
-
wrapperComponent: string;
|
|
434
|
-
className: string;
|
|
435
|
-
}[];
|
|
436
|
-
columnClassName: string;
|
|
437
|
-
md?: undefined;
|
|
438
|
-
className?: undefined;
|
|
439
|
-
})[];
|
|
420
|
+
tpl: string;
|
|
421
|
+
};
|
|
422
|
+
md: string;
|
|
440
423
|
className: string;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
body: {
|
|
445
|
-
type: string;
|
|
446
|
-
items: {
|
|
424
|
+
columnClassName: string;
|
|
425
|
+
} | {
|
|
426
|
+
body: {
|
|
447
427
|
type: string;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
428
|
+
tpl: string;
|
|
429
|
+
inline: boolean;
|
|
430
|
+
wrapperComponent: string;
|
|
451
431
|
className: string;
|
|
452
432
|
}[];
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
433
|
+
columnClassName: string;
|
|
434
|
+
md?: undefined;
|
|
435
|
+
className?: undefined;
|
|
436
|
+
})[];
|
|
437
|
+
className: string;
|
|
438
|
+
}[];
|
|
439
|
+
md: string;
|
|
440
|
+
hiddenOn?: undefined;
|
|
441
|
+
} | {
|
|
442
|
+
body: {
|
|
443
|
+
type: string;
|
|
444
|
+
items: {
|
|
445
|
+
type: string;
|
|
446
|
+
name: any;
|
|
447
|
+
objectName: any;
|
|
448
|
+
visibleOn: any;
|
|
449
|
+
className: string;
|
|
450
|
+
}[];
|
|
451
|
+
};
|
|
452
|
+
md: string;
|
|
453
|
+
hiddenOn: string;
|
|
454
|
+
})[];
|
|
455
|
+
className: string;
|
|
459
456
|
}[];
|
|
460
457
|
messages: {};
|
|
461
|
-
hiddenOn: string;
|
|
462
458
|
}[];
|
|
459
|
+
className: string;
|
|
463
460
|
}>;
|
|
464
461
|
/**
|
|
465
462
|
* 记录详细界面中相关表顶部头amisSchema
|
|
@@ -38,7 +38,7 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any): (strin
|
|
|
38
38
|
};
|
|
39
39
|
tpl?: undefined;
|
|
40
40
|
})[];
|
|
41
|
-
export function getObjectFooterToolbar(): string[];
|
|
41
|
+
export function getObjectFooterToolbar(mainObject: any, formFactor: any): string[];
|
|
42
42
|
export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
|
|
43
43
|
title: string;
|
|
44
44
|
submitText: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export function getCreatedInfoTpl(formFactor: any): string;
|
|
2
2
|
export function getModifiedInfoTpl(formFactor: any): string;
|
|
3
3
|
export function getNumberTpl(field: any): string;
|
|
4
|
-
export function getTextTpl(field: any): string;
|
|
5
4
|
export function getTimeTpl(field: any): string;
|
|
6
5
|
export function getDateTpl(field: any): string;
|
|
7
6
|
export function getDateTimeTpl(field: any): string;
|
|
@@ -260,16 +260,7 @@ export function getCalendarSchema(appName: any, objectName: any, calendarOptions
|
|
|
260
260
|
objectName: string;
|
|
261
261
|
$: {};
|
|
262
262
|
$self: string;
|
|
263
|
-
};
|
|
264
|
-
* localListViewProps规范来自crud请求api中api.data.$self参数值的。
|
|
265
|
-
* 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
|
|
266
|
-
* __searchable__...:顶部放大镜搜索条件
|
|
267
|
-
* filter:右侧过滤器
|
|
268
|
-
* perPage:每页条数
|
|
269
|
-
* page:当前页码
|
|
270
|
-
* orderBy:排序字段
|
|
271
|
-
* orderDir:排序方向
|
|
272
|
-
*/
|
|
263
|
+
};
|
|
273
264
|
requestAdaptor: string;
|
|
274
265
|
adaptor: string;
|
|
275
266
|
headers: {
|
|
@@ -324,56 +315,53 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
324
315
|
type: string;
|
|
325
316
|
body: {
|
|
326
317
|
type: string;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
columns: ({
|
|
334
|
-
body: {
|
|
335
|
-
type: string;
|
|
336
|
-
className: string;
|
|
337
|
-
tpl: string;
|
|
338
|
-
};
|
|
339
|
-
md: string;
|
|
318
|
+
columns: ({
|
|
319
|
+
body: {
|
|
320
|
+
type: string;
|
|
321
|
+
columns: ({
|
|
322
|
+
body: {
|
|
323
|
+
type: string;
|
|
340
324
|
className: string;
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
type: string;
|
|
345
|
-
tpl: string;
|
|
346
|
-
inline: boolean;
|
|
347
|
-
wrapperComponent: string;
|
|
348
|
-
className: string;
|
|
349
|
-
}[];
|
|
350
|
-
columnClassName: string;
|
|
351
|
-
md?: undefined;
|
|
352
|
-
className?: undefined;
|
|
353
|
-
})[];
|
|
325
|
+
tpl: string;
|
|
326
|
+
};
|
|
327
|
+
md: string;
|
|
354
328
|
className: string;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
body: {
|
|
359
|
-
type: string;
|
|
360
|
-
items: {
|
|
329
|
+
columnClassName: string;
|
|
330
|
+
} | {
|
|
331
|
+
body: {
|
|
361
332
|
type: string;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
333
|
+
tpl: string;
|
|
334
|
+
inline: boolean;
|
|
335
|
+
wrapperComponent: string;
|
|
365
336
|
className: string;
|
|
366
337
|
}[];
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
338
|
+
columnClassName: string;
|
|
339
|
+
md?: undefined;
|
|
340
|
+
className?: undefined;
|
|
341
|
+
})[];
|
|
342
|
+
className: string;
|
|
343
|
+
}[];
|
|
344
|
+
md: string;
|
|
345
|
+
hiddenOn?: undefined;
|
|
346
|
+
} | {
|
|
347
|
+
body: {
|
|
348
|
+
type: string;
|
|
349
|
+
items: {
|
|
350
|
+
type: string;
|
|
351
|
+
name: any;
|
|
352
|
+
objectName: any;
|
|
353
|
+
visibleOn: any;
|
|
354
|
+
className: string;
|
|
355
|
+
}[];
|
|
356
|
+
};
|
|
357
|
+
md: string;
|
|
358
|
+
hiddenOn: string;
|
|
359
|
+
})[];
|
|
360
|
+
className: string;
|
|
373
361
|
}[];
|
|
374
362
|
messages: {};
|
|
375
|
-
hiddenOn: string;
|
|
376
363
|
}[];
|
|
364
|
+
className: string;
|
|
377
365
|
};
|
|
378
366
|
}>;
|
|
379
367
|
export function getRecordDetailSchema(objectName: any, appId: any): Promise<{
|
|
@@ -55,7 +55,7 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
|
|
|
55
55
|
isCalendar?: undefined;
|
|
56
56
|
};
|
|
57
57
|
})[]>;
|
|
58
|
-
export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any, relatedKey: any, top: any, perPage: any, hiddenEmptyTable: any, appId: any, relatedLabel: any): Promise<{
|
|
58
|
+
export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any, relatedKey: any, top: any, perPage: any, hiddenEmptyTable: any, appId: any, relatedLabel: any, className: any): Promise<{
|
|
59
59
|
uiSchema: any;
|
|
60
60
|
amisSchema: {
|
|
61
61
|
type: string;
|
|
@@ -144,10 +144,10 @@ export function getSchema(uiSchema: any): {
|
|
|
144
144
|
label: string;
|
|
145
145
|
type: string;
|
|
146
146
|
className: string;
|
|
147
|
-
html: boolean;
|
|
148
147
|
width?: undefined;
|
|
149
148
|
placeholder?: undefined;
|
|
150
149
|
tpl?: undefined;
|
|
150
|
+
html?: undefined;
|
|
151
151
|
})[];
|
|
152
152
|
syncLocation: boolean;
|
|
153
153
|
keepItemSelectionOnPageChange: boolean;
|
|
@@ -301,10 +301,10 @@ export namespace StandardButtons {
|
|
|
301
301
|
label: string;
|
|
302
302
|
type: string;
|
|
303
303
|
className: string;
|
|
304
|
-
html: boolean;
|
|
305
304
|
width?: undefined;
|
|
306
305
|
placeholder?: undefined;
|
|
307
306
|
tpl?: undefined;
|
|
307
|
+
html?: undefined;
|
|
308
308
|
})[];
|
|
309
309
|
syncLocation: boolean;
|
|
310
310
|
keepItemSelectionOnPageChange: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.19",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"lodash": "^4.17.21"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7ea6c5301d0630b4b68b1da5c4146ea492ad8610"
|
|
62
62
|
}
|