@steedos-widgets/amis-lib 1.2.3-beta.1 → 1.2.5

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.
@@ -16,6 +16,10 @@ export function getEditFormInitApi(object: any, recordId: any, fields: any, opti
16
16
  cache: number;
17
17
  requestAdaptor: string;
18
18
  adaptor: string;
19
+ responseData: {
20
+ initialValues: string;
21
+ editFormInited: boolean;
22
+ };
19
23
  data: {
20
24
  query: string;
21
25
  };
@@ -14,22 +14,28 @@ export function getObjectFieldsFilterButtonSchema(objectSchema: any): Promise<{
14
14
  };
15
15
  };
16
16
  }>;
17
- export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any, ctx: any): Promise<any[] | {
18
- title: string;
17
+ export function getObjectFieldsFilterFormSchema(ctx: any): Promise<{
19
18
  type: string;
20
- name: string;
21
- id: string;
22
- mode: string;
23
- wrapWithPanel: boolean;
19
+ visibleOn: string;
24
20
  className: string;
25
- data: any;
26
- body: any[];
21
+ schemaApi: {
22
+ method: string;
23
+ url: string;
24
+ data: {
25
+ $self: string;
26
+ query: string;
27
+ };
28
+ requestAdaptor: string;
29
+ adaptor: string;
30
+ headers: {
31
+ Authorization: string;
32
+ };
33
+ };
27
34
  }>;
28
- export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, ctx: any): Promise<{
35
+ export function getObjectFieldsFilterBarSchema(objectSchema: any, ctx: any): Promise<{
29
36
  type: string;
30
37
  name: string;
31
38
  data: {};
32
- id: string;
33
39
  dataProvider: {
34
40
  inited: string;
35
41
  };
@@ -39,20 +45,21 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
39
45
  type: string;
40
46
  body: ({
41
47
  type: string;
42
- body: (any[] | {
43
- title: string;
44
- type: string;
45
- name: string;
46
- id: string;
47
- mode: string;
48
- wrapWithPanel: boolean;
49
- className: string;
50
- data: any;
51
- body: any[];
52
- })[];
53
- size: string;
54
48
  visibleOn: string;
55
49
  className: string;
50
+ schemaApi: {
51
+ method: string;
52
+ url: string;
53
+ data: {
54
+ $self: string;
55
+ query: string;
56
+ };
57
+ requestAdaptor: string;
58
+ adaptor: string;
59
+ headers: {
60
+ Authorization: string;
61
+ };
62
+ };
56
63
  } | {
57
64
  type: string;
58
65
  body: {
@@ -187,7 +194,6 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
187
194
  };
188
195
  size: string;
189
196
  className: string;
190
- visibleOn?: undefined;
191
197
  })[];
192
198
  size: string;
193
199
  className: string;
@@ -135,7 +135,6 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
135
135
  type: string;
136
136
  name: string;
137
137
  data: {};
138
- id: string;
139
138
  dataProvider: {
140
139
  inited: string;
141
140
  };
@@ -145,20 +144,21 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
145
144
  type: string;
146
145
  body: ({
147
146
  type: string;
148
- body: (any[] | {
149
- title: string;
150
- type: string;
151
- name: string;
152
- id: string;
153
- mode: string;
154
- wrapWithPanel: boolean;
155
- className: string;
156
- data: any;
157
- body: any[];
158
- })[];
159
- size: string;
160
147
  visibleOn: string;
161
148
  className: string;
149
+ schemaApi: {
150
+ method: string;
151
+ url: string;
152
+ data: {
153
+ $self: string;
154
+ query: string;
155
+ };
156
+ requestAdaptor: string;
157
+ adaptor: string;
158
+ headers: {
159
+ Authorization: string;
160
+ };
161
+ };
162
162
  } | {
163
163
  type: string;
164
164
  body: {
@@ -293,7 +293,6 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
293
293
  };
294
294
  size: string;
295
295
  className: string;
296
- visibleOn?: undefined;
297
296
  })[];
298
297
  size: string;
299
298
  className: string;
@@ -19,6 +19,10 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
19
19
  cache: number;
20
20
  requestAdaptor: string;
21
21
  adaptor: string;
22
+ responseData: {
23
+ initialValues: string;
24
+ editFormInited: boolean;
25
+ };
22
26
  data: {
23
27
  query: string;
24
28
  };
@@ -15,7 +15,6 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
15
15
  type: string;
16
16
  name: string;
17
17
  data: {};
18
- id: string;
19
18
  dataProvider: {
20
19
  inited: string;
21
20
  };
@@ -25,20 +24,21 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
25
24
  type: string;
26
25
  body: ({
27
26
  type: string;
28
- body: (any[] | {
29
- title: string;
30
- type: string;
31
- name: string;
32
- id: string;
33
- mode: string;
34
- wrapWithPanel: boolean;
35
- className: string;
36
- data: any;
37
- body: any[];
38
- })[];
39
- size: string;
40
27
  visibleOn: string;
41
28
  className: string;
29
+ schemaApi: {
30
+ method: string;
31
+ url: string;
32
+ data: {
33
+ $self: string;
34
+ query: string;
35
+ };
36
+ requestAdaptor: string;
37
+ adaptor: string;
38
+ headers: {
39
+ Authorization: string;
40
+ };
41
+ };
42
42
  } | {
43
43
  type: string;
44
44
  body: {
@@ -173,7 +173,6 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
173
173
  };
174
174
  size: string;
175
175
  className: string;
176
- visibleOn?: undefined;
177
176
  })[];
178
177
  size: string;
179
178
  className: string;
@@ -16,6 +16,10 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
16
16
  cache: number;
17
17
  requestAdaptor: string;
18
18
  adaptor: string;
19
+ responseData: {
20
+ initialValues: string;
21
+ editFormInited: boolean;
22
+ };
19
23
  data: {
20
24
  query: string;
21
25
  };
@@ -61,6 +61,7 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
61
61
  filtersFunction: any;
62
62
  sort: string;
63
63
  filterVisible: boolean;
64
+ requestAdaptor: any;
64
65
  adaptor: string;
65
66
  ctx: any;
66
67
  }[];
@@ -79,6 +80,7 @@ export function getRelatedListSchema(objectName: any, listViewName: any, ctx: an
79
80
  filtersFunction: any;
80
81
  sort: string;
81
82
  filterVisible: boolean;
83
+ requestAdaptor: any;
82
84
  adaptor: string;
83
85
  ctx: any;
84
86
  };
@@ -13,6 +13,10 @@ export function getFormPageInitSchema(objectApiName: any): Promise<{
13
13
  cache: number;
14
14
  requestAdaptor: string;
15
15
  adaptor: string;
16
+ responseData: {
17
+ initialValues: string;
18
+ editFormInited: boolean;
19
+ };
16
20
  data: {
17
21
  query: string;
18
22
  };
@@ -52,6 +52,28 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
52
52
  closeOnEsc: boolean;
53
53
  closeOnOutside: boolean;
54
54
  size: string;
55
+ actions: ({
56
+ type: string;
57
+ actionType: string;
58
+ label: string;
59
+ close?: undefined;
60
+ id?: undefined;
61
+ primary?: undefined;
62
+ } | {
63
+ type: string;
64
+ label: string;
65
+ actionType: string;
66
+ close: boolean;
67
+ id: string;
68
+ primary?: undefined;
69
+ } | {
70
+ type: string;
71
+ actionType: string;
72
+ label: string;
73
+ primary: boolean;
74
+ close?: undefined;
75
+ id?: undefined;
76
+ })[];
55
77
  };
56
78
  }[];
57
79
  };
@@ -55,6 +55,28 @@ export namespace StandardButtons {
55
55
  closeOnEsc: boolean;
56
56
  closeOnOutside: boolean;
57
57
  size: string;
58
+ actions: ({
59
+ type: string;
60
+ actionType: string;
61
+ label: string;
62
+ close?: undefined;
63
+ id?: undefined;
64
+ primary?: undefined;
65
+ } | {
66
+ type: string;
67
+ label: string;
68
+ actionType: string;
69
+ close: boolean;
70
+ id: string;
71
+ primary?: undefined;
72
+ } | {
73
+ type: string;
74
+ actionType: string;
75
+ label: string;
76
+ primary: boolean;
77
+ close?: undefined;
78
+ id?: undefined;
79
+ })[];
58
80
  };
59
81
  }[];
60
82
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.2.3-beta.1",
4
+ "version": "1.2.5",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -59,5 +59,5 @@
59
59
  "dependencies": {
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "d66884f92cfe285ecfcedd71e1103945945de0d7"
62
+ "gitHead": "fc6b5166b03c8d5817460137cb02c986bc9ce3c3"
63
63
  }