@steedos-widgets/amis-lib 1.2.0-beta.0 → 1.2.0-beta.2

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.
@@ -14,6 +14,7 @@ export function getLookupSapceUserTreeSchema(): {
14
14
  query: string;
15
15
  };
16
16
  messages: {};
17
+ cache: number;
17
18
  };
18
19
  onEvent: {
19
20
  change: {
@@ -25,11 +25,7 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
25
25
  inline: boolean;
26
26
  wrapperComponent: string;
27
27
  className: string;
28
- label?: undefined; /**
29
- * 记录详细界面中相关表顶部头amisSchema
30
- * @param {*} relatedObjectSchema 相关对象UISchema
31
- * @returns amisSchema
32
- */
28
+ label?: undefined;
33
29
  rightIcon?: undefined;
34
30
  size?: undefined;
35
31
  hideCaret?: undefined;
@@ -337,11 +333,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
337
333
  inline: boolean;
338
334
  wrapperComponent: string;
339
335
  className: string;
340
- label?: undefined; /**
341
- * 记录详细界面中相关表顶部头amisSchema
342
- * @param {*} relatedObjectSchema 相关对象UISchema
343
- * @returns amisSchema
344
- */
336
+ label?: undefined;
345
337
  rightIcon?: undefined;
346
338
  size?: undefined;
347
339
  hideCaret?: undefined;
@@ -396,10 +388,9 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
396
388
  */
397
389
  export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, options: any): Promise<{
398
390
  type: string;
399
- bodyClassName: string;
391
+ id: string;
400
392
  name: string;
401
393
  data: {
402
- "&": string;
403
394
  objectName: any;
404
395
  _id: any;
405
396
  recordPermissions: any;
@@ -408,14 +399,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
408
399
  };
409
400
  body: {
410
401
  type: string;
411
- id: string;
412
- data: {
413
- "&": string;
414
- objectName: any;
415
- _id: any;
416
- recordPermissions: string;
417
- uiSchema: any;
418
- };
402
+ className: string;
419
403
  body: {
420
404
  type: string;
421
405
  columns: ({
@@ -460,7 +444,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
460
444
  })[];
461
445
  className: string;
462
446
  }[];
463
- messages: {};
464
447
  hiddenOn: string;
465
448
  }[];
466
449
  className: string;
@@ -4,11 +4,8 @@ export function getObjectCRUD(objectSchema: any, fields: any, options: any): Pro
4
4
  id: string;
5
5
  name: string;
6
6
  data: {
7
- objectName: any;
8
- _id: any;
9
7
  recordPermissions: any;
10
8
  uiSchema: any;
11
- loaded: boolean;
12
9
  };
13
10
  body: {};
14
11
  }>;
@@ -176,11 +176,8 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
176
176
  id: string;
177
177
  name: string;
178
178
  data: {
179
- objectName: any;
180
- _id: any;
181
179
  recordPermissions: any;
182
180
  uiSchema: any;
183
- loaded: boolean;
184
181
  };
185
182
  body: {};
186
183
  };
@@ -193,10 +190,9 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
193
190
  uiSchema: any;
194
191
  amisSchema: {
195
192
  type: string;
196
- bodyClassName: string;
193
+ id: string;
197
194
  name: string;
198
195
  data: {
199
- "&": string;
200
196
  objectName: any;
201
197
  _id: any;
202
198
  recordPermissions: any;
@@ -205,14 +201,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
205
201
  };
206
202
  body: {
207
203
  type: string;
208
- id: string;
209
- data: {
210
- "&": string;
211
- objectName: any;
212
- _id: any;
213
- recordPermissions: string;
214
- uiSchema: any;
215
- };
204
+ className: string;
216
205
  body: {
217
206
  type: string;
218
207
  columns: ({
@@ -257,7 +246,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
257
246
  })[];
258
247
  className: string;
259
248
  }[];
260
- messages: {};
261
249
  hiddenOn: string;
262
250
  }[];
263
251
  className: string;
@@ -290,27 +278,6 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
290
278
  objectApiName: string;
291
279
  recordId: string;
292
280
  id: string;
293
- onEvent: {
294
- recordLoaded: {
295
- actions: ({
296
- actionType: string;
297
- data: {
298
- name: string;
299
- record: string;
300
- recordLoaded: boolean;
301
- };
302
- componentId?: undefined;
303
- } | {
304
- actionType: string;
305
- componentId: string;
306
- data: {
307
- name: string;
308
- record: string;
309
- recordLoaded: boolean;
310
- };
311
- })[];
312
- };
313
- };
314
281
  })[];
315
282
  data: {
316
283
  "_master.objectName": string;
@@ -48,28 +48,11 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
48
48
  id: string;
49
49
  className: string;
50
50
  data: {
51
- "&": string;
52
- appId: string;
53
- app_id: string;
54
- masterObjectName: any;
55
- masterRecordId: string;
56
51
  relatedKey: any;
57
- objectName: any;
58
52
  listViewId: string;
59
53
  _isRelated: boolean;
60
54
  };
61
55
  body: {
62
- data: {
63
- "&": string;
64
- appId: string;
65
- app_id: string;
66
- relatedKey: any;
67
- objectName: string;
68
- recordId: string;
69
- defaultData: {
70
- [x: number]: any;
71
- };
72
- };
73
56
  type: string;
74
57
  objectApiName: any;
75
58
  columns: any;
@@ -77,6 +60,8 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
77
60
  filters: any;
78
61
  filtersFunction: any;
79
62
  sort: string;
63
+ filterVisible: boolean;
64
+ adaptor: string;
80
65
  ctx: any;
81
66
  }[];
82
67
  level?: undefined;
@@ -93,6 +78,8 @@ export function getRelatedListSchema(objectName: any, listViewName: any, ctx: an
93
78
  filters: any;
94
79
  filtersFunction: any;
95
80
  sort: string;
81
+ filterVisible: boolean;
82
+ adaptor: string;
96
83
  ctx: any;
97
84
  };
98
85
  }>;
@@ -23,10 +23,6 @@ export function getSchema(uiSchema: any): {
23
23
  };
24
24
  adaptor: string;
25
25
  };
26
- messages: {
27
- success: string;
28
- failed: string;
29
- };
30
26
  eventName?: undefined;
31
27
  };
32
28
  actionType: string;
@@ -37,7 +33,6 @@ export function getSchema(uiSchema: any): {
37
33
  args: {
38
34
  eventName: string;
39
35
  api?: undefined;
40
- messages?: undefined;
41
36
  };
42
37
  data: {
43
38
  objectName: string;
@@ -49,7 +44,6 @@ export function getSchema(uiSchema: any): {
49
44
  args: {
50
45
  eventName: string;
51
46
  api?: undefined;
52
- messages?: undefined;
53
47
  };
54
48
  data: {
55
49
  objectName: string;
@@ -15,7 +15,8 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
15
15
  data: {
16
16
  $master: string;
17
17
  _master: string;
18
- defaultData: string;
18
+ "_master._isRelated": string;
19
+ "_master.relatedKey": string;
19
20
  appId: string;
20
21
  objectName: string;
21
22
  context: string;
@@ -33,6 +34,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
33
34
  schemaApi: {
34
35
  data: {
35
36
  isLookup: string;
37
+ _master: string;
36
38
  };
37
39
  url: string;
38
40
  method: string;
@@ -18,7 +18,8 @@ export namespace StandardButtons {
18
18
  data: {
19
19
  $master: string;
20
20
  _master: string;
21
- defaultData: string;
21
+ "_master._isRelated": string;
22
+ "_master.relatedKey": string;
22
23
  appId: string;
23
24
  objectName: string;
24
25
  context: string;
@@ -36,6 +37,7 @@ export namespace StandardButtons {
36
37
  schemaApi: {
37
38
  data: {
38
39
  isLookup: string;
40
+ _master: string;
39
41
  };
40
42
  url: string;
41
43
  method: string;
@@ -129,10 +131,6 @@ export namespace StandardButtons {
129
131
  };
130
132
  adaptor: string;
131
133
  };
132
- messages: {
133
- success: string;
134
- failed: string;
135
- };
136
134
  eventName?: undefined;
137
135
  };
138
136
  actionType: string;
@@ -143,7 +141,6 @@ export namespace StandardButtons {
143
141
  args: {
144
142
  eventName: string;
145
143
  api?: undefined;
146
- messages?: undefined;
147
144
  };
148
145
  data: {
149
146
  objectName: string;
@@ -155,7 +152,6 @@ export namespace StandardButtons {
155
152
  args: {
156
153
  eventName: string;
157
154
  api?: undefined;
158
- messages?: undefined;
159
155
  };
160
156
  data: {
161
157
  objectName: 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.2.0-beta.0",
4
+ "version": "1.2.0-beta.2",
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": "d5030ab9b3119bfce413d11fa978ce25dcb3df8b"
62
+ "gitHead": "1fa692c57f5f968c3fbbcd2bfc7a7e4036a2a576"
63
63
  }