@steedos-widgets/amis-lib 1.0.23 → 1.0.25
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 +107 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +126 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +107 -36
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +0 -2
- package/dist/types/lib/converter/amis/fields/sections.d.ts +0 -1
- package/dist/types/lib/converter/amis/fields/tree_select.d.ts +1 -0
- package/dist/types/lib/converter/amis/fields_filter.d.ts +0 -2
- package/dist/types/lib/converter/amis/form.d.ts +0 -1
- package/dist/types/lib/converter/amis/header.d.ts +0 -1
- package/dist/types/lib/converter/amis/index.d.ts +3 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +0 -1
- package/dist/types/lib/objects.d.ts +4 -2
- package/dist/types/lib/page_init.d.ts +3 -0
- package/dist/types/schema/standard_new.amis.d.ts +2 -1
- package/dist/types/standard/button.d.ts +2 -1
- package/dist/types/workflow/approve.d.ts +3 -0
- package/dist/types/workflow/flow.d.ts +4 -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
|
@@ -19,7 +19,6 @@ export function getSelectFieldOptions(field: any): any[];
|
|
|
19
19
|
export function convertSFieldToAmisField(field: any, readonly: any, ctx: any): Promise<{
|
|
20
20
|
type: any;
|
|
21
21
|
tpl: string;
|
|
22
|
-
value: string | number | boolean;
|
|
23
22
|
multiple: boolean;
|
|
24
23
|
extractValue: boolean;
|
|
25
24
|
className: any;
|
|
@@ -29,7 +28,6 @@ export function convertSFieldToAmisField(field: any, readonly: any, ctx: any): P
|
|
|
29
28
|
export function getFieldSearchable(perField: any, permissionFields: any, ctx: any): Promise<{
|
|
30
29
|
type: any;
|
|
31
30
|
tpl: string;
|
|
32
|
-
value: string | number | boolean;
|
|
33
31
|
multiple: boolean;
|
|
34
32
|
extractValue: boolean;
|
|
35
33
|
className: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function lookupToAmisTreeSelect(field: any, readonly: any, ctx: any): Promise<{}>;
|
|
@@ -17,7 +17,6 @@ export function getObjectFieldsFilterButtonSchema(objectSchema: any): Promise<{
|
|
|
17
17
|
export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
18
18
|
type: any;
|
|
19
19
|
tpl: string;
|
|
20
|
-
value: string | number | boolean;
|
|
21
20
|
multiple: boolean;
|
|
22
21
|
extractValue: boolean;
|
|
23
22
|
className: any;
|
|
@@ -51,7 +50,6 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
|
|
|
51
50
|
body: ({
|
|
52
51
|
type: any;
|
|
53
52
|
tpl: string;
|
|
54
|
-
value: string | number | boolean;
|
|
55
53
|
multiple: boolean;
|
|
56
54
|
extractValue: boolean;
|
|
57
55
|
className: any;
|
|
@@ -30,6 +30,9 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
|
|
|
30
30
|
Authorization: string;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
data: {
|
|
34
|
+
editFormInited: boolean;
|
|
35
|
+
};
|
|
33
36
|
initApi: any;
|
|
34
37
|
initFetch: any;
|
|
35
38
|
body: {}[];
|
|
@@ -83,7 +86,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
|
|
|
83
86
|
body: {
|
|
84
87
|
type: any;
|
|
85
88
|
tpl: string;
|
|
86
|
-
value: string | number | boolean;
|
|
87
89
|
multiple: boolean;
|
|
88
90
|
extractValue: boolean;
|
|
89
91
|
className: any;
|
|
@@ -2,6 +2,7 @@ export function getListViewColumns(listView: any, formFactor: any): any;
|
|
|
2
2
|
export function getListViewSort(listView: any): string;
|
|
3
3
|
export function getListViewFilter(listView: any): any;
|
|
4
4
|
export function getUISchema(objectName: any, force: any): Promise<any>;
|
|
5
|
+
export function getUISchemaSync(objectName: any, force: any): any;
|
|
5
6
|
export function getField(objectName: any, fieldName: any): Promise<any>;
|
|
6
7
|
export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
7
8
|
uiSchema: any;
|
|
@@ -22,6 +23,9 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
22
23
|
Authorization: string;
|
|
23
24
|
};
|
|
24
25
|
};
|
|
26
|
+
data: {
|
|
27
|
+
editFormInited: boolean;
|
|
28
|
+
};
|
|
25
29
|
initApi: any;
|
|
26
30
|
initFetch: any;
|
|
27
31
|
body: {}[];
|
|
@@ -78,7 +82,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
78
82
|
body: {
|
|
79
83
|
type: any;
|
|
80
84
|
tpl: string;
|
|
81
|
-
value: string | number | boolean;
|
|
82
85
|
multiple: boolean;
|
|
83
86
|
extractValue: boolean;
|
|
84
87
|
className: any;
|
|
@@ -464,7 +467,6 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
464
467
|
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
465
468
|
type: any;
|
|
466
469
|
tpl: string;
|
|
467
|
-
value: string | number | boolean;
|
|
468
470
|
multiple: boolean;
|
|
469
471
|
extractValue: boolean;
|
|
470
472
|
className: any;
|
|
@@ -13,12 +13,13 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
13
13
|
type: string;
|
|
14
14
|
data: {
|
|
15
15
|
$master: string;
|
|
16
|
-
|
|
16
|
+
defaultData: string;
|
|
17
17
|
appId: string;
|
|
18
18
|
objectName: string;
|
|
19
19
|
context: string;
|
|
20
20
|
global: string;
|
|
21
21
|
listViewId: string;
|
|
22
|
+
uiSchema: string;
|
|
22
23
|
};
|
|
23
24
|
title: string;
|
|
24
25
|
bodyClassName: string;
|
|
@@ -16,12 +16,13 @@ export namespace StandardButtons {
|
|
|
16
16
|
type: string;
|
|
17
17
|
data: {
|
|
18
18
|
$master: string;
|
|
19
|
-
|
|
19
|
+
defaultData: string;
|
|
20
20
|
appId: string;
|
|
21
21
|
objectName: string;
|
|
22
22
|
context: string;
|
|
23
23
|
global: string;
|
|
24
24
|
listViewId: string;
|
|
25
|
+
uiSchema: string;
|
|
25
26
|
};
|
|
26
27
|
title: string;
|
|
27
28
|
bodyClassName: string;
|
|
@@ -2,6 +2,8 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
2
2
|
type: string;
|
|
3
3
|
overlay: boolean;
|
|
4
4
|
resizable: boolean;
|
|
5
|
+
closeOnEsc: boolean;
|
|
6
|
+
closeOnOutside: boolean;
|
|
5
7
|
size: string;
|
|
6
8
|
title: string;
|
|
7
9
|
className: string;
|
|
@@ -9,6 +11,7 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
9
11
|
type: string;
|
|
10
12
|
debug: boolean;
|
|
11
13
|
id: string;
|
|
14
|
+
resetAfterSubmit: boolean;
|
|
12
15
|
body: ({
|
|
13
16
|
type: string;
|
|
14
17
|
label: boolean;
|
|
@@ -198,6 +198,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
198
198
|
type: string;
|
|
199
199
|
overlay: boolean;
|
|
200
200
|
resizable: boolean;
|
|
201
|
+
closeOnEsc: boolean;
|
|
202
|
+
closeOnOutside: boolean;
|
|
201
203
|
size: string;
|
|
202
204
|
title: string;
|
|
203
205
|
className: string;
|
|
@@ -205,6 +207,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
205
207
|
type: string;
|
|
206
208
|
debug: boolean;
|
|
207
209
|
id: string;
|
|
210
|
+
resetAfterSubmit: boolean;
|
|
208
211
|
body: ({
|
|
209
212
|
type: string;
|
|
210
213
|
label: boolean;
|
|
@@ -470,6 +473,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
470
473
|
type: string;
|
|
471
474
|
debug: boolean;
|
|
472
475
|
wrapWithPanel: boolean;
|
|
476
|
+
resetAfterSubmit: boolean;
|
|
473
477
|
body: ({
|
|
474
478
|
type: string;
|
|
475
479
|
className: 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.0.
|
|
4
|
+
"version": "1.0.25",
|
|
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": "20e116d9c98768d247c19c99396636bbdde3b5a4"
|
|
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;
|