@steedos-widgets/amis-lib 0.0.11 → 0.0.13

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.
@@ -25,6 +25,8 @@ export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any,
25
25
  mode: string;
26
26
  wrapWithPanel: boolean;
27
27
  className: string;
28
+ persistData: string;
29
+ persistDataKeys: any[];
28
30
  body: ({
29
31
  name: any;
30
32
  label: any;
@@ -48,6 +50,9 @@ export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any,
48
50
  export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, ctx: any): Promise<{
49
51
  type: string;
50
52
  id: string;
53
+ dataProvider: {
54
+ inited: string;
55
+ };
51
56
  body: {
52
57
  type: string;
53
58
  body: {
@@ -62,6 +67,8 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
62
67
  mode: string;
63
68
  wrapWithPanel: boolean;
64
69
  className: string;
70
+ persistData: string;
71
+ persistDataKeys: any[];
65
72
  body: ({
66
73
  name: any;
67
74
  label: any;
@@ -102,21 +109,112 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
102
109
  }[];
103
110
  };
104
111
  };
105
- className?: undefined;
112
+ id?: undefined;
106
113
  level?: undefined;
107
114
  } | {
108
115
  type: string;
109
116
  label: string;
110
- className: string;
111
- level: string;
112
117
  onEvent: {
113
118
  click: {
114
119
  actions: {
115
120
  actionType: string;
116
- script: string;
121
+ dialog: {
122
+ type: string;
123
+ size: string;
124
+ title: string;
125
+ body: {
126
+ type: string;
127
+ title: string;
128
+ body: {
129
+ label: string;
130
+ type: string;
131
+ name: string;
132
+ id: string;
133
+ source: {
134
+ method: string;
135
+ url: string;
136
+ dataType: string;
137
+ headers: {
138
+ Authorization: string;
139
+ };
140
+ data: any;
141
+ requestAdaptor: string;
142
+ adaptor: string;
143
+ };
144
+ options: any[];
145
+ required: boolean;
146
+ placeholder: string;
147
+ className: string;
148
+ checkAll: boolean;
149
+ searchable: boolean;
150
+ sortable: boolean;
151
+ joinValues: boolean;
152
+ extractValue: boolean;
153
+ multiple: boolean;
154
+ }[];
155
+ id: string;
156
+ mode: string;
157
+ persistData: boolean;
158
+ promptPageLeave: boolean;
159
+ name: string;
160
+ debug: boolean;
161
+ actions: any[];
162
+ panelClassName: string;
163
+ bodyClassName: string;
164
+ className: string;
165
+ }[];
166
+ id: string;
167
+ actions: ({
168
+ type: string;
169
+ label: string;
170
+ onEvent: {
171
+ click: {
172
+ actions: {
173
+ componentId: string;
174
+ args: {};
175
+ actionType: string;
176
+ }[];
177
+ };
178
+ };
179
+ id: string;
180
+ level?: undefined;
181
+ } | {
182
+ type: string;
183
+ label: string;
184
+ onEvent: {
185
+ click: {
186
+ actions: ({
187
+ actionType: string;
188
+ script: string;
189
+ componentId?: undefined;
190
+ args?: undefined;
191
+ } | {
192
+ componentId: string;
193
+ args: {};
194
+ actionType: string;
195
+ script?: undefined;
196
+ })[];
197
+ };
198
+ };
199
+ id: string;
200
+ level: string;
201
+ })[];
202
+ closeOnEsc: boolean;
203
+ closeOnOutside: boolean;
204
+ showCloseButton: boolean;
205
+ data: {
206
+ "&": string;
207
+ objectName: string;
208
+ listName: string;
209
+ context: string;
210
+ fields: string;
211
+ };
212
+ };
117
213
  }[];
118
214
  };
119
215
  };
216
+ id: string;
217
+ level: string;
120
218
  icon?: undefined;
121
219
  visibleOn?: undefined;
122
220
  })[];
@@ -218,19 +218,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any): P
218
218
  bodyClassName: string;
219
219
  }[];
220
220
  messages: {};
221
- api: {
222
- method: string;
223
- url: string;
224
- headers: {
225
- Authorization: string;
226
- };
227
- data: {
228
- query: string;
229
- };
230
- sendOn: string;
231
- requestAdaptor: string;
232
- adaptor: string;
233
- };
234
221
  }[];
235
222
  }>;
236
223
  /**
@@ -13,6 +13,7 @@ export function getObjectList(objectSchema: any, fields: any, options: any): Pro
13
13
  _id: any;
14
14
  recordPermissions: any;
15
15
  uiSchema: any;
16
+ loaded: boolean;
16
17
  };
17
18
  body: {};
18
19
  }>;
@@ -110,13 +111,13 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
110
111
  fetchInited: {
111
112
  weight: number;
112
113
  actions: {
113
- componentId: string;
114
114
  actionType: string;
115
+ eventName: string;
115
116
  args: {
116
- value: {
117
- record: string;
118
- uiSchema: any;
119
- };
117
+ eventName: string;
118
+ };
119
+ data: {
120
+ record: string;
120
121
  };
121
122
  }[];
122
123
  };
@@ -101,13 +101,13 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
101
101
  fetchInited: {
102
102
  weight: number;
103
103
  actions: {
104
- componentId: string;
105
104
  actionType: string;
105
+ eventName: string;
106
106
  args: {
107
- value: {
108
- record: string;
109
- uiSchema: any;
110
- };
107
+ eventName: string;
108
+ };
109
+ data: {
110
+ record: string;
111
111
  };
112
112
  }[];
113
113
  };
@@ -152,6 +152,7 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
152
152
  _id: any;
153
153
  recordPermissions: any;
154
154
  uiSchema: any;
155
+ loaded: boolean;
155
156
  };
156
157
  body: {};
157
158
  };
@@ -246,19 +247,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any): Pro
246
247
  bodyClassName: string;
247
248
  }[];
248
249
  messages: {};
249
- api: {
250
- method: string;
251
- url: string;
252
- headers: {
253
- Authorization: string;
254
- };
255
- data: {
256
- query: string;
257
- };
258
- sendOn: string;
259
- requestAdaptor: string;
260
- adaptor: string;
261
- };
262
250
  }[];
263
251
  };
264
252
  }>;
@@ -287,6 +275,7 @@ export function getObjectRelatedList(appName: any, objectName: any, recordId: an
287
275
  _id: any;
288
276
  recordPermissions: any;
289
277
  uiSchema: any;
278
+ loaded: boolean;
290
279
  };
291
280
  body: {};
292
281
  };
@@ -360,6 +349,8 @@ export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any,
360
349
  mode: string;
361
350
  wrapWithPanel: boolean;
362
351
  className: string;
352
+ persistData: string;
353
+ persistDataKeys: any[];
363
354
  body: ({
364
355
  name: any;
365
356
  label: any;
@@ -19,6 +19,7 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
19
19
  _id: any;
20
20
  recordPermissions: any;
21
21
  uiSchema: any;
22
+ loaded: boolean;
22
23
  };
23
24
  body: {};
24
25
  };
@@ -166,6 +166,16 @@ export function getRecordPageInitSchema(objectApiName: any): Promise<{
166
166
  label: string;
167
167
  objectApiName: string;
168
168
  recordId: string;
169
+ onEvent: {
170
+ recordLoaded: {
171
+ actions: {
172
+ actionType: string;
173
+ data: {
174
+ name: string;
175
+ };
176
+ }[];
177
+ };
178
+ };
169
179
  }[];
170
180
  }>;
171
181
  export function getListviewInitSchema(objectApiName: any, listViewName: any, ctx: any): Promise<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "0.0.11",
4
+ "version": "0.0.13",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",