@steedos-widgets/amis-lib 1.3.22-beta.4 → 3.6.0-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 +267 -92
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +267 -92
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +67 -52
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +6 -4
- package/dist/types/lib/converter/amis/fields/table.d.ts +3 -1
- package/dist/types/lib/converter/amis/header.d.ts +1 -0
- package/dist/types/lib/converter/amis/index.d.ts +8 -0
- package/dist/types/lib/converter/amis/util.d.ts +5 -0
- package/dist/types/lib/objects.d.ts +9 -0
- package/dist/types/workflow/flow.d.ts +0 -1
- package/package.json +2 -2
|
@@ -15,7 +15,6 @@ export function getLookupSapceUserTreeSchema(isMobile: any): ({
|
|
|
15
15
|
Authorization: string;
|
|
16
16
|
};
|
|
17
17
|
adaptor: string;
|
|
18
|
-
requestAdaptor: string;
|
|
19
18
|
data: {
|
|
20
19
|
query: string;
|
|
21
20
|
};
|
|
@@ -66,7 +65,6 @@ export function getLookupSapceUserTreeSchema(isMobile: any): ({
|
|
|
66
65
|
Authorization: string;
|
|
67
66
|
};
|
|
68
67
|
adaptor: string;
|
|
69
|
-
requestAdaptor: string;
|
|
70
68
|
data: {
|
|
71
69
|
query: string;
|
|
72
70
|
};
|
|
@@ -233,8 +231,10 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
233
231
|
labelTpl: string;
|
|
234
232
|
autoFillHeight: boolean;
|
|
235
233
|
columnsTogglable: boolean;
|
|
236
|
-
columns?: undefined;
|
|
237
234
|
} | {
|
|
235
|
+
expandConfig: {
|
|
236
|
+
expand: string;
|
|
237
|
+
};
|
|
238
238
|
mode: string;
|
|
239
239
|
perPageAvailable: number[];
|
|
240
240
|
name: string;
|
|
@@ -324,8 +324,10 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
324
324
|
labelTpl: string;
|
|
325
325
|
autoFillHeight: boolean;
|
|
326
326
|
columnsTogglable: boolean;
|
|
327
|
-
columns?: undefined;
|
|
328
327
|
} | {
|
|
328
|
+
expandConfig: {
|
|
329
|
+
expand: string;
|
|
330
|
+
};
|
|
329
331
|
mode: string;
|
|
330
332
|
perPageAvailable: number[];
|
|
331
333
|
name: string;
|
|
@@ -16,8 +16,10 @@ export function getTableSchema(fields: any, options: any): Promise<{
|
|
|
16
16
|
labelTpl: string;
|
|
17
17
|
autoFillHeight: boolean;
|
|
18
18
|
columnsTogglable: boolean;
|
|
19
|
-
columns?: undefined;
|
|
20
19
|
} | {
|
|
20
|
+
expandConfig: {
|
|
21
|
+
expand: string;
|
|
22
|
+
};
|
|
21
23
|
mode: string;
|
|
22
24
|
perPageAvailable: number[];
|
|
23
25
|
name: string;
|
|
@@ -5,6 +5,14 @@ export function getObjectCRUD(objectSchema: any, fields: any, options: any): Pro
|
|
|
5
5
|
name: string;
|
|
6
6
|
data: any;
|
|
7
7
|
body: any;
|
|
8
|
+
onEvent: {
|
|
9
|
+
[x: string]: {
|
|
10
|
+
actions: {
|
|
11
|
+
actionType: string;
|
|
12
|
+
script: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
8
16
|
}>;
|
|
9
17
|
export function getObjectForm(objectSchema: any, ctx: any): Promise<{
|
|
10
18
|
type: string;
|
|
@@ -2,3 +2,8 @@ export function getSvgUrl(source: any, name: any): string;
|
|
|
2
2
|
export function getImageFieldUrl(url: any): any;
|
|
3
3
|
export function getContrastColor(bgColor: any): "#ffffff" | "#000000";
|
|
4
4
|
export function getLookupListView(refObjectConfig: any): null;
|
|
5
|
+
/**
|
|
6
|
+
* 获取可比较的amis版本号
|
|
7
|
+
* @returns 只返回前两位版本,第三位忽略,比如3.6.3返回3.6
|
|
8
|
+
*/
|
|
9
|
+
export function getComparableAmisVersion(): number;
|
|
@@ -199,6 +199,14 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
|
|
|
199
199
|
name: string;
|
|
200
200
|
data: any;
|
|
201
201
|
body: any;
|
|
202
|
+
onEvent: {
|
|
203
|
+
[x: string]: {
|
|
204
|
+
actions: {
|
|
205
|
+
actionType: string;
|
|
206
|
+
script: string;
|
|
207
|
+
}[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
202
210
|
};
|
|
203
211
|
}>;
|
|
204
212
|
export function getCalendarSchema(appName: any, objectName: any, calendarOptions: any, ctx?: {}): Promise<{
|
|
@@ -233,6 +241,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
233
241
|
"@history_paths.changed": {
|
|
234
242
|
actions: {
|
|
235
243
|
actionType: string;
|
|
244
|
+
data: {};
|
|
236
245
|
}[];
|
|
237
246
|
};
|
|
238
247
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.6.0-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": "e9e5980573c3e5711983e6910d702d41c38bf3c5"
|
|
65
65
|
}
|