@steedos-widgets/amis-lib 1.0.22 → 1.0.24
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 +125 -50
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +125 -50
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +125 -50
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- 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 +20 -22
- package/dist/types/lib/converter/amis/form.d.ts +0 -1
- package/dist/types/lib/converter/amis/header.d.ts +11 -12
- package/dist/types/lib/converter/amis/index.d.ts +3 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +11 -12
- package/dist/types/lib/objects.d.ts +12 -11
- package/dist/types/lib/page_init.d.ts +3 -0
- package/dist/types/schema/standard_new.amis.d.ts +1 -0
- package/dist/types/standard/button.d.ts +1 -0
- package/dist/types/workflow/approve.d.ts +15 -2
- package/dist/types/workflow/flow.d.ts +16 -3
- 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
package/dist/types/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './lib/converter/amis/fields/user';
|
|
|
18
18
|
export * from './lib/converter/amis/filters';
|
|
19
19
|
export * from './lib/converter/amis/header';
|
|
20
20
|
export * from './lib/converter/amis/fields_filter';
|
|
21
|
+
export * from './lib/router';
|
|
21
22
|
export * from './lib/assets';
|
|
22
23
|
export * from './utils/object';
|
|
23
24
|
export * from './render';
|
|
@@ -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<{}>;
|
|
@@ -15,6 +15,14 @@ export function getObjectFieldsFilterButtonSchema(objectSchema: any): Promise<{
|
|
|
15
15
|
};
|
|
16
16
|
}>;
|
|
17
17
|
export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
18
|
+
type: any;
|
|
19
|
+
tpl: string;
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
extractValue: boolean;
|
|
22
|
+
className: any;
|
|
23
|
+
quickEdit: boolean;
|
|
24
|
+
visibleOn: string;
|
|
25
|
+
}[] | {
|
|
18
26
|
title: string;
|
|
19
27
|
type: string;
|
|
20
28
|
name: string;
|
|
@@ -23,16 +31,7 @@ export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any,
|
|
|
23
31
|
wrapWithPanel: boolean;
|
|
24
32
|
className: string;
|
|
25
33
|
data: any;
|
|
26
|
-
body:
|
|
27
|
-
type: any;
|
|
28
|
-
tpl: string;
|
|
29
|
-
value: string | number | boolean;
|
|
30
|
-
multiple: boolean;
|
|
31
|
-
extractValue: boolean;
|
|
32
|
-
className: any;
|
|
33
|
-
quickEdit: boolean;
|
|
34
|
-
visibleOn: string;
|
|
35
|
-
}[];
|
|
34
|
+
body: any[];
|
|
36
35
|
}>;
|
|
37
36
|
export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
38
37
|
type: string;
|
|
@@ -48,7 +47,15 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
|
|
|
48
47
|
type: string;
|
|
49
48
|
body: ({
|
|
50
49
|
type: string;
|
|
51
|
-
body: {
|
|
50
|
+
body: ({
|
|
51
|
+
type: any;
|
|
52
|
+
tpl: string;
|
|
53
|
+
multiple: boolean;
|
|
54
|
+
extractValue: boolean;
|
|
55
|
+
className: any;
|
|
56
|
+
quickEdit: boolean;
|
|
57
|
+
visibleOn: string;
|
|
58
|
+
}[] | {
|
|
52
59
|
title: string;
|
|
53
60
|
type: string;
|
|
54
61
|
name: string;
|
|
@@ -57,17 +64,8 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
|
|
|
57
64
|
wrapWithPanel: boolean;
|
|
58
65
|
className: string;
|
|
59
66
|
data: any;
|
|
60
|
-
body:
|
|
61
|
-
|
|
62
|
-
tpl: string;
|
|
63
|
-
value: string | number | boolean;
|
|
64
|
-
multiple: boolean;
|
|
65
|
-
extractValue: boolean;
|
|
66
|
-
className: any;
|
|
67
|
-
quickEdit: boolean;
|
|
68
|
-
visibleOn: string;
|
|
69
|
-
}[];
|
|
70
|
-
}[];
|
|
67
|
+
body: any[];
|
|
68
|
+
})[];
|
|
71
69
|
size: string;
|
|
72
70
|
visibleOn: string;
|
|
73
71
|
className: string;
|
|
@@ -145,7 +145,15 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
145
145
|
type: string;
|
|
146
146
|
body: ({
|
|
147
147
|
type: string;
|
|
148
|
-
body: {
|
|
148
|
+
body: ({
|
|
149
|
+
type: any;
|
|
150
|
+
tpl: string;
|
|
151
|
+
multiple: boolean;
|
|
152
|
+
extractValue: boolean;
|
|
153
|
+
className: any;
|
|
154
|
+
quickEdit: boolean;
|
|
155
|
+
visibleOn: string;
|
|
156
|
+
}[] | {
|
|
149
157
|
title: string;
|
|
150
158
|
type: string;
|
|
151
159
|
name: string;
|
|
@@ -154,17 +162,8 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
154
162
|
wrapWithPanel: boolean;
|
|
155
163
|
className: string;
|
|
156
164
|
data: any;
|
|
157
|
-
body:
|
|
158
|
-
|
|
159
|
-
tpl: string;
|
|
160
|
-
value: string | number | boolean;
|
|
161
|
-
multiple: boolean;
|
|
162
|
-
extractValue: boolean;
|
|
163
|
-
className: any;
|
|
164
|
-
quickEdit: boolean;
|
|
165
|
-
visibleOn: string;
|
|
166
|
-
}[];
|
|
167
|
-
}[];
|
|
165
|
+
body: any[];
|
|
166
|
+
})[];
|
|
168
167
|
size: string;
|
|
169
168
|
visibleOn: string;
|
|
170
169
|
className: string;
|
|
@@ -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;
|
|
@@ -82,7 +82,15 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
|
|
|
82
82
|
type: string;
|
|
83
83
|
body: ({
|
|
84
84
|
type: string;
|
|
85
|
-
body: {
|
|
85
|
+
body: ({
|
|
86
|
+
type: any;
|
|
87
|
+
tpl: string;
|
|
88
|
+
multiple: boolean;
|
|
89
|
+
extractValue: boolean;
|
|
90
|
+
className: any;
|
|
91
|
+
quickEdit: boolean;
|
|
92
|
+
visibleOn: string;
|
|
93
|
+
}[] | {
|
|
86
94
|
title: string;
|
|
87
95
|
type: string;
|
|
88
96
|
name: string;
|
|
@@ -91,17 +99,8 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
|
|
|
91
99
|
wrapWithPanel: boolean;
|
|
92
100
|
className: string;
|
|
93
101
|
data: any;
|
|
94
|
-
body:
|
|
95
|
-
|
|
96
|
-
tpl: string;
|
|
97
|
-
value: string | number | boolean;
|
|
98
|
-
multiple: boolean;
|
|
99
|
-
extractValue: boolean;
|
|
100
|
-
className: any;
|
|
101
|
-
quickEdit: boolean;
|
|
102
|
-
visibleOn: string;
|
|
103
|
-
}[];
|
|
104
|
-
}[];
|
|
102
|
+
body: any[];
|
|
103
|
+
})[];
|
|
105
104
|
size: string;
|
|
106
105
|
visibleOn: string;
|
|
107
106
|
className: string;
|
|
@@ -22,6 +22,9 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
|
22
22
|
Authorization: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
+
data: {
|
|
26
|
+
editFormInited: boolean;
|
|
27
|
+
};
|
|
25
28
|
initApi: any;
|
|
26
29
|
initFetch: any;
|
|
27
30
|
body: {}[];
|
|
@@ -78,7 +81,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
78
81
|
body: {
|
|
79
82
|
type: any;
|
|
80
83
|
tpl: string;
|
|
81
|
-
value: string | number | boolean;
|
|
82
84
|
multiple: boolean;
|
|
83
85
|
extractValue: boolean;
|
|
84
86
|
className: any;
|
|
@@ -462,6 +464,14 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
462
464
|
masterObjectUISchema: any;
|
|
463
465
|
}>;
|
|
464
466
|
export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<{
|
|
467
|
+
type: any;
|
|
468
|
+
tpl: string;
|
|
469
|
+
multiple: boolean;
|
|
470
|
+
extractValue: boolean;
|
|
471
|
+
className: any;
|
|
472
|
+
quickEdit: boolean;
|
|
473
|
+
visibleOn: string;
|
|
474
|
+
}[] | {
|
|
465
475
|
title: string;
|
|
466
476
|
type: string;
|
|
467
477
|
name: string;
|
|
@@ -470,15 +480,6 @@ export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any,
|
|
|
470
480
|
wrapWithPanel: boolean;
|
|
471
481
|
className: string;
|
|
472
482
|
data: any;
|
|
473
|
-
body:
|
|
474
|
-
type: any;
|
|
475
|
-
tpl: string;
|
|
476
|
-
value: string | number | boolean;
|
|
477
|
-
multiple: boolean;
|
|
478
|
-
extractValue: boolean;
|
|
479
|
-
className: any;
|
|
480
|
-
quickEdit: boolean;
|
|
481
|
-
visibleOn: string;
|
|
482
|
-
}[];
|
|
483
|
+
body: any[];
|
|
483
484
|
}>;
|
|
484
485
|
export function setUISchemaFunction(fun: any): void;
|
|
@@ -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;
|
|
@@ -145,7 +148,7 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
145
148
|
minRows: number;
|
|
146
149
|
maxRows: number;
|
|
147
150
|
placeholder: string;
|
|
148
|
-
|
|
151
|
+
requiredOn: string;
|
|
149
152
|
})[];
|
|
150
153
|
onEvent: {
|
|
151
154
|
approve_judge_change: {
|
|
@@ -208,6 +211,10 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
208
211
|
url: string;
|
|
209
212
|
method: string;
|
|
210
213
|
dataType: string;
|
|
214
|
+
data: {
|
|
215
|
+
"&": string;
|
|
216
|
+
$scopeId: string;
|
|
217
|
+
};
|
|
211
218
|
headers: {
|
|
212
219
|
Authorization: string;
|
|
213
220
|
};
|
|
@@ -226,13 +233,19 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
226
233
|
componentId: string;
|
|
227
234
|
args: {
|
|
228
235
|
blank: boolean;
|
|
229
|
-
url:
|
|
236
|
+
url: any;
|
|
230
237
|
api?: undefined;
|
|
231
238
|
messages?: undefined;
|
|
232
239
|
};
|
|
233
240
|
actionType: string;
|
|
234
241
|
expression: string;
|
|
235
242
|
script?: undefined;
|
|
243
|
+
} | {
|
|
244
|
+
actionType: string;
|
|
245
|
+
expression: string;
|
|
246
|
+
componentId?: undefined;
|
|
247
|
+
args?: undefined;
|
|
248
|
+
script?: undefined;
|
|
236
249
|
})[];
|
|
237
250
|
};
|
|
238
251
|
};
|
|
@@ -9,7 +9,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
9
9
|
recordId: any;
|
|
10
10
|
id: string;
|
|
11
11
|
showRecordTitle: boolean;
|
|
12
|
-
recordLoaded: boolean;
|
|
13
12
|
className: string;
|
|
14
13
|
};
|
|
15
14
|
css: {
|
|
@@ -199,6 +198,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
199
198
|
type: string;
|
|
200
199
|
overlay: boolean;
|
|
201
200
|
resizable: boolean;
|
|
201
|
+
closeOnEsc: boolean;
|
|
202
|
+
closeOnOutside: boolean;
|
|
202
203
|
size: string;
|
|
203
204
|
title: string;
|
|
204
205
|
className: string;
|
|
@@ -206,6 +207,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
206
207
|
type: string;
|
|
207
208
|
debug: boolean;
|
|
208
209
|
id: string;
|
|
210
|
+
resetAfterSubmit: boolean;
|
|
209
211
|
body: ({
|
|
210
212
|
type: string;
|
|
211
213
|
label: boolean;
|
|
@@ -342,7 +344,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
342
344
|
minRows: number;
|
|
343
345
|
maxRows: number;
|
|
344
346
|
placeholder: string;
|
|
345
|
-
|
|
347
|
+
requiredOn: string;
|
|
346
348
|
})[];
|
|
347
349
|
onEvent: {
|
|
348
350
|
approve_judge_change: {
|
|
@@ -405,6 +407,10 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
405
407
|
url: string;
|
|
406
408
|
method: string;
|
|
407
409
|
dataType: string;
|
|
410
|
+
data: {
|
|
411
|
+
"&": string;
|
|
412
|
+
$scopeId: string;
|
|
413
|
+
};
|
|
408
414
|
headers: {
|
|
409
415
|
Authorization: string;
|
|
410
416
|
};
|
|
@@ -423,13 +429,19 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
423
429
|
componentId: string;
|
|
424
430
|
args: {
|
|
425
431
|
blank: boolean;
|
|
426
|
-
url:
|
|
432
|
+
url: any;
|
|
427
433
|
api?: undefined;
|
|
428
434
|
messages?: undefined;
|
|
429
435
|
};
|
|
430
436
|
actionType: string;
|
|
431
437
|
expression: string;
|
|
432
438
|
script?: undefined;
|
|
439
|
+
} | {
|
|
440
|
+
actionType: string;
|
|
441
|
+
expression: string;
|
|
442
|
+
componentId?: undefined;
|
|
443
|
+
args?: undefined;
|
|
444
|
+
script?: undefined;
|
|
433
445
|
})[];
|
|
434
446
|
};
|
|
435
447
|
};
|
|
@@ -461,6 +473,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
461
473
|
type: string;
|
|
462
474
|
debug: boolean;
|
|
463
475
|
wrapWithPanel: boolean;
|
|
476
|
+
resetAfterSubmit: boolean;
|
|
464
477
|
body: ({
|
|
465
478
|
type: string;
|
|
466
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.24",
|
|
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": "549a7ea0148ec62bab775536c638fa1cb9d984e4"
|
|
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;
|