@steedos-widgets/amis-lib 1.0.22 → 1.0.23

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.
@@ -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';
@@ -15,6 +15,15 @@ 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
+ value: string | number | boolean;
21
+ multiple: boolean;
22
+ extractValue: boolean;
23
+ className: any;
24
+ quickEdit: boolean;
25
+ visibleOn: string;
26
+ }[] | {
18
27
  title: string;
19
28
  type: string;
20
29
  name: string;
@@ -23,16 +32,7 @@ export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any,
23
32
  wrapWithPanel: boolean;
24
33
  className: string;
25
34
  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
- }[];
35
+ body: any[];
36
36
  }>;
37
37
  export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, ctx: any): Promise<{
38
38
  type: string;
@@ -48,7 +48,16 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
48
48
  type: string;
49
49
  body: ({
50
50
  type: string;
51
- body: {
51
+ body: ({
52
+ type: any;
53
+ tpl: string;
54
+ value: string | number | boolean;
55
+ multiple: boolean;
56
+ extractValue: boolean;
57
+ className: any;
58
+ quickEdit: boolean;
59
+ visibleOn: string;
60
+ }[] | {
52
61
  title: string;
53
62
  type: string;
54
63
  name: string;
@@ -57,17 +66,8 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
57
66
  wrapWithPanel: boolean;
58
67
  className: string;
59
68
  data: any;
60
- body: {
61
- type: any;
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
- }[];
69
+ body: any[];
70
+ })[];
71
71
  size: string;
72
72
  visibleOn: string;
73
73
  className: string;
@@ -145,7 +145,16 @@ 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
+ value: string | number | boolean;
152
+ multiple: boolean;
153
+ extractValue: boolean;
154
+ className: any;
155
+ quickEdit: boolean;
156
+ visibleOn: string;
157
+ }[] | {
149
158
  title: string;
150
159
  type: string;
151
160
  name: string;
@@ -154,17 +163,8 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
154
163
  wrapWithPanel: boolean;
155
164
  className: string;
156
165
  data: any;
157
- body: {
158
- type: any;
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
- }[];
166
+ body: any[];
167
+ })[];
168
168
  size: string;
169
169
  visibleOn: string;
170
170
  className: string;
@@ -82,7 +82,16 @@ 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
+ value: string | number | boolean;
89
+ multiple: boolean;
90
+ extractValue: boolean;
91
+ className: any;
92
+ quickEdit: boolean;
93
+ visibleOn: string;
94
+ }[] | {
86
95
  title: string;
87
96
  type: string;
88
97
  name: string;
@@ -91,17 +100,8 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
91
100
  wrapWithPanel: boolean;
92
101
  className: string;
93
102
  data: any;
94
- body: {
95
- type: any;
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
- }[];
103
+ body: any[];
104
+ })[];
105
105
  size: string;
106
106
  visibleOn: string;
107
107
  className: string;
@@ -462,6 +462,15 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
462
462
  masterObjectUISchema: any;
463
463
  }>;
464
464
  export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<{
465
+ type: any;
466
+ tpl: string;
467
+ value: string | number | boolean;
468
+ multiple: boolean;
469
+ extractValue: boolean;
470
+ className: any;
471
+ quickEdit: boolean;
472
+ visibleOn: string;
473
+ }[] | {
465
474
  title: string;
466
475
  type: string;
467
476
  name: string;
@@ -470,15 +479,6 @@ export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any,
470
479
  wrapWithPanel: boolean;
471
480
  className: string;
472
481
  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
- }[];
482
+ body: any[];
483
483
  }>;
484
484
  export function setUISchemaFunction(fun: any): void;
@@ -145,7 +145,7 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
145
145
  minRows: number;
146
146
  maxRows: number;
147
147
  placeholder: string;
148
- required: string;
148
+ requiredOn: string;
149
149
  })[];
150
150
  onEvent: {
151
151
  approve_judge_change: {
@@ -208,6 +208,10 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
208
208
  url: string;
209
209
  method: string;
210
210
  dataType: string;
211
+ data: {
212
+ "&": string;
213
+ $scopeId: string;
214
+ };
211
215
  headers: {
212
216
  Authorization: string;
213
217
  };
@@ -226,13 +230,19 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
226
230
  componentId: string;
227
231
  args: {
228
232
  blank: boolean;
229
- url: string;
233
+ url: any;
230
234
  api?: undefined;
231
235
  messages?: undefined;
232
236
  };
233
237
  actionType: string;
234
238
  expression: string;
235
239
  script?: undefined;
240
+ } | {
241
+ actionType: string;
242
+ expression: string;
243
+ componentId?: undefined;
244
+ args?: undefined;
245
+ script?: undefined;
236
246
  })[];
237
247
  };
238
248
  };
@@ -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: {
@@ -342,7 +341,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
342
341
  minRows: number;
343
342
  maxRows: number;
344
343
  placeholder: string;
345
- required: string;
344
+ requiredOn: string;
346
345
  })[];
347
346
  onEvent: {
348
347
  approve_judge_change: {
@@ -405,6 +404,10 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
405
404
  url: string;
406
405
  method: string;
407
406
  dataType: string;
407
+ data: {
408
+ "&": string;
409
+ $scopeId: string;
410
+ };
408
411
  headers: {
409
412
  Authorization: string;
410
413
  };
@@ -423,13 +426,19 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
423
426
  componentId: string;
424
427
  args: {
425
428
  blank: boolean;
426
- url: string;
429
+ url: any;
427
430
  api?: undefined;
428
431
  messages?: undefined;
429
432
  };
430
433
  actionType: string;
431
434
  expression: string;
432
435
  script?: undefined;
436
+ } | {
437
+ actionType: string;
438
+ expression: string;
439
+ componentId?: undefined;
440
+ args?: undefined;
441
+ script?: undefined;
433
442
  })[];
434
443
  };
435
444
  };
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.22",
4
+ "version": "1.0.23",
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": "d5c4066fc2f7e2705fa1c81360f3160512cbeea5"
61
+ "gitHead": "7e677e42f62ee3e69343c7738110117897f50a54"
62
62
  }