@steedos-widgets/amis-lib 1.0.29 → 1.0.32
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 +741 -743
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +741 -743
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +741 -743
- 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/sections.d.ts +1 -1
- package/dist/types/lib/converter/amis/fields/table.d.ts +1 -1
- package/dist/types/lib/converter/amis/form.d.ts +1 -1
- package/dist/types/lib/converter/amis/header.d.ts +5 -0
- package/dist/types/lib/converter/amis/index.d.ts +0 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +46 -0
- package/dist/types/lib/objects.d.ts +4 -12
- package/dist/types/lib/objectsRelated.d.ts +1 -0
- package/dist/types/schema/standard_new.amis.d.ts +3 -0
- package/dist/types/standard/button.d.ts +3 -0
- package/package.json +2 -2
- package/dist/index.d.ts +0 -24
- package/dist/render.d.ts +0 -15
- package/dist/utils/object.d.ts +0 -14
|
@@ -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" | "
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "password" | "select" | "date" | "datetime" | "number" | "image" | "text" | "picker" | "table" | "markdown" | "html" | "email" | "textarea" | "checkbox";
|
|
10
10
|
export function getObjectFieldSubFields(mainField: any, fields: any): any;
|
|
11
11
|
export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
12
12
|
/**
|
|
@@ -39,7 +39,7 @@ export function getTableSchema(fields: any, options: any): Promise<{
|
|
|
39
39
|
*
|
|
40
40
|
* @param {*} mainObject
|
|
41
41
|
* @param {*} fields
|
|
42
|
-
* @param {*} options = {
|
|
42
|
+
* @param {*} options = {filter: listview 过滤条件, ...}
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
45
|
export function getTableApi(mainObject: any, fields: any, options: any): Promise<{
|
|
@@ -203,6 +203,11 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
203
203
|
id: string;
|
|
204
204
|
source: {
|
|
205
205
|
method: string;
|
|
206
|
+
/**
|
|
207
|
+
* 记录详细界面中相关表顶部头amisSchema
|
|
208
|
+
* @param {*} relatedObjectSchema 相关对象UISchema
|
|
209
|
+
* @returns amisSchema
|
|
210
|
+
*/
|
|
206
211
|
url: string;
|
|
207
212
|
dataType: string;
|
|
208
213
|
headers: {
|
|
@@ -19,33 +19,75 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showD
|
|
|
19
19
|
className: string;
|
|
20
20
|
tpl?: undefined;
|
|
21
21
|
align?: undefined;
|
|
22
|
+
tooltipPlacement?: undefined;
|
|
22
23
|
label?: undefined;
|
|
23
24
|
icon?: undefined;
|
|
25
|
+
visibleOn?: undefined;
|
|
26
|
+
tooltip?: undefined;
|
|
24
27
|
onEvent?: undefined;
|
|
25
28
|
} | {
|
|
26
29
|
type?: undefined;
|
|
27
30
|
className?: undefined;
|
|
28
31
|
tpl?: undefined;
|
|
29
32
|
align?: undefined;
|
|
33
|
+
tooltipPlacement?: undefined;
|
|
30
34
|
label?: undefined;
|
|
31
35
|
icon?: undefined;
|
|
36
|
+
visibleOn?: undefined;
|
|
37
|
+
tooltip?: undefined;
|
|
32
38
|
onEvent?: undefined;
|
|
33
39
|
} | {
|
|
34
40
|
type: string;
|
|
35
41
|
tpl: string;
|
|
36
42
|
className?: undefined;
|
|
37
43
|
align?: undefined;
|
|
44
|
+
tooltipPlacement?: undefined;
|
|
38
45
|
label?: undefined;
|
|
39
46
|
icon?: undefined;
|
|
47
|
+
visibleOn?: undefined;
|
|
48
|
+
tooltip?: undefined;
|
|
40
49
|
onEvent?: undefined;
|
|
41
50
|
} | {
|
|
42
51
|
type: string;
|
|
43
52
|
align: string;
|
|
53
|
+
tooltipPlacement: string;
|
|
44
54
|
className: string;
|
|
45
55
|
tpl?: undefined;
|
|
46
56
|
label?: undefined;
|
|
47
57
|
icon?: undefined;
|
|
58
|
+
visibleOn?: undefined;
|
|
59
|
+
tooltip?: undefined;
|
|
48
60
|
onEvent?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
type: string;
|
|
63
|
+
label: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
align: string;
|
|
66
|
+
className: string;
|
|
67
|
+
tooltipPlacement: string;
|
|
68
|
+
visibleOn: string;
|
|
69
|
+
tooltip: string;
|
|
70
|
+
onEvent: {
|
|
71
|
+
click: {
|
|
72
|
+
weight: number;
|
|
73
|
+
actions: {
|
|
74
|
+
args: {
|
|
75
|
+
api: {
|
|
76
|
+
url: string;
|
|
77
|
+
method: string;
|
|
78
|
+
messages: {};
|
|
79
|
+
requestAdaptor: string;
|
|
80
|
+
data: {
|
|
81
|
+
uiSchema: string;
|
|
82
|
+
listName: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
actionType: string;
|
|
87
|
+
}[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
tpl?: undefined;
|
|
49
91
|
} | {
|
|
50
92
|
label: string;
|
|
51
93
|
icon: string;
|
|
@@ -58,9 +100,13 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showD
|
|
|
58
100
|
actionType: string;
|
|
59
101
|
script: string;
|
|
60
102
|
}[];
|
|
103
|
+
weight?: undefined;
|
|
61
104
|
};
|
|
62
105
|
};
|
|
63
106
|
tpl?: undefined;
|
|
107
|
+
tooltipPlacement?: undefined;
|
|
108
|
+
visibleOn?: undefined;
|
|
109
|
+
tooltip?: undefined;
|
|
64
110
|
})[];
|
|
65
111
|
export function getObjectFooterToolbar(mainObject: any, formFactor: any): string[];
|
|
66
112
|
export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
|
|
@@ -175,7 +175,6 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
|
|
|
175
175
|
id: string;
|
|
176
176
|
name: string;
|
|
177
177
|
data: {
|
|
178
|
-
$master: string;
|
|
179
178
|
objectName: any;
|
|
180
179
|
_id: any;
|
|
181
180
|
recordPermissions: any;
|
|
@@ -440,6 +439,10 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
440
439
|
};
|
|
441
440
|
};
|
|
442
441
|
})[];
|
|
442
|
+
data: {
|
|
443
|
+
"_master.objectName": string;
|
|
444
|
+
"_master.recordId": string;
|
|
445
|
+
};
|
|
443
446
|
onEvent: any;
|
|
444
447
|
};
|
|
445
448
|
}>;
|
|
@@ -489,15 +492,4 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
489
492
|
record: any;
|
|
490
493
|
masterObjectUISchema: any;
|
|
491
494
|
}>;
|
|
492
|
-
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<any[] | {
|
|
493
|
-
title: string;
|
|
494
|
-
type: string;
|
|
495
|
-
name: string;
|
|
496
|
-
id: string;
|
|
497
|
-
mode: string;
|
|
498
|
-
wrapWithPanel: boolean;
|
|
499
|
-
className: string;
|
|
500
|
-
data: any;
|
|
501
|
-
body: any[];
|
|
502
|
-
}>;
|
|
503
495
|
export function setUISchemaFunction(fun: any): void;
|
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.32",
|
|
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": "d921dd757818d8b4e8871a7f748ed0d471d001a3"
|
|
62
62
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from './lib/amis';
|
|
2
|
-
export * from './lib/objects';
|
|
3
|
-
export * from './lib/objectsRelated';
|
|
4
|
-
export * from './lib/page_init';
|
|
5
|
-
export * from './lib/apps';
|
|
6
|
-
export * from './lib/buttons';
|
|
7
|
-
export * from './lib/defaultsDeep';
|
|
8
|
-
export * from './lib/expression';
|
|
9
|
-
export * from './lib/notification';
|
|
10
|
-
export * from './lib/page';
|
|
11
|
-
export * from './lib/public.env';
|
|
12
|
-
export * from './lib/record';
|
|
13
|
-
export * from './lib/space_users';
|
|
14
|
-
export * from './lib/steedos.client.js';
|
|
15
|
-
export * as Field from './lib/converter/amis/fields/index';
|
|
16
|
-
export * from './lib/converter/amis/fields/lookup';
|
|
17
|
-
export * from './lib/converter/amis/fields/user';
|
|
18
|
-
export * from './lib/converter/amis/filters';
|
|
19
|
-
export * from './lib/converter/amis/header';
|
|
20
|
-
export * from './lib/converter/amis/fields_filter';
|
|
21
|
-
export * from './lib/workflow/flow';
|
|
22
|
-
export * from './lib/assets';
|
|
23
|
-
export * from './utils/object';
|
|
24
|
-
export * from './render';
|
package/dist/render.d.ts
DELETED
package/dist/utils/object.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function createObject(superProps?: {
|
|
2
|
-
[propName: string]: any;
|
|
3
|
-
}, props?: {
|
|
4
|
-
[propName: string]: any;
|
|
5
|
-
}, properties?: any): object;
|
|
6
|
-
export declare function cloneObject(target: any, persistOwnProps?: boolean): any;
|
|
7
|
-
export declare function extendObject(target: any, src?: any, persistOwnProps?: boolean): any;
|
|
8
|
-
export declare function isObject(obj: any): boolean;
|
|
9
|
-
export declare function setVariable(data: {
|
|
10
|
-
[propName: string]: any;
|
|
11
|
-
}, key: string, value: any, convertKeyToPath?: boolean): void;
|
|
12
|
-
export declare function deleteVariable(data: {
|
|
13
|
-
[propName: string]: any;
|
|
14
|
-
}, key: string): void;
|