@steedos-widgets/amis-lib 3.6.2-beta.4 → 3.6.2-beta.6

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.
@@ -17,10 +17,6 @@ export function getEditFormInitApi(object: any, recordId: any, fields: any, opti
17
17
  cache: number;
18
18
  requestAdaptor: string;
19
19
  adaptor: string;
20
- responseData: {
21
- initialValues: string;
22
- editFormInited: boolean;
23
- };
24
20
  data: {
25
21
  query: string;
26
22
  };
@@ -139,6 +139,7 @@ export function lookupToAmisPicker(field: any, readonly: any, ctx: any): Promise
139
139
  labelField: any;
140
140
  valueField: any;
141
141
  disabledOn: string;
142
+ hiddenOn: string;
142
143
  modalMode: string;
143
144
  source: {
144
145
  method: string;
@@ -497,13 +497,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
497
497
  type: string;
498
498
  id: string;
499
499
  name: string;
500
- data: {
501
- objectName: any;
502
- _id: any;
503
- recordPermissions: any;
504
- uiSchema: any;
505
- record: string;
506
- };
507
500
  body: {
508
501
  type: string;
509
502
  className: string;
@@ -543,14 +536,10 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
543
536
  className: string;
544
537
  }[];
545
538
  }[];
546
- className?: undefined;
547
- tpl?: undefined;
548
539
  } | {
549
540
  type: string;
550
541
  className: string;
551
542
  tpl: string;
552
- onEvent?: undefined;
553
- body?: undefined;
554
543
  })[];
555
544
  md: string;
556
545
  className: string;
@@ -574,51 +563,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
574
563
  } | {
575
564
  body: {
576
565
  type: string;
577
- items: {
578
- type: string;
579
- name: any;
580
- objectName: any;
581
- visibleOn: any;
582
- className: string;
583
- }[] | {
584
- type: string;
585
- icon: string;
586
- visibleOn: string;
587
- onEvent: {
588
- click: {
589
- actions: {
590
- actionType: string;
591
- drawer: {
592
- type: string;
593
- title: string;
594
- id: string;
595
- body: {
596
- type: string;
597
- id: string;
598
- vertical: boolean;
599
- tiled: boolean;
600
- buttons: {
601
- type: string;
602
- name: any;
603
- objectName: any;
604
- visibleOn: any;
605
- }[];
606
- btnLevel: string;
607
- className: string;
608
- btnClassName: string;
609
- size: string;
610
- }[];
611
- position: string;
612
- closeOnOutside: boolean;
613
- resizable: boolean;
614
- className: string;
615
- bodyClassName: string;
616
- actions: any[];
617
- };
618
- }[];
619
- };
620
- };
621
- };
566
+ items: any[];
622
567
  };
623
568
  md: string;
624
569
  columnClassName?: undefined;
@@ -19,23 +19,6 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
19
19
  id: string;
20
20
  className: string;
21
21
  name: string;
22
- api: {
23
- method: string;
24
- url: string;
25
- cache: number;
26
- requestAdaptor: string;
27
- adaptor: string;
28
- responseData: {
29
- initialValues: string;
30
- editFormInited: boolean;
31
- };
32
- data: {
33
- query: string;
34
- };
35
- headers: {
36
- Authorization: string;
37
- };
38
- };
39
22
  data: any;
40
23
  initApi: any;
41
24
  initFetch: any;
@@ -45,32 +28,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
45
28
  type: string;
46
29
  name: string;
47
30
  id: string;
48
- data: {
49
- global: {
50
- mode: any;
51
- user: any;
52
- spaceId: any;
53
- userId: any;
54
- };
55
- context: {
56
- rootUrl: any;
57
- tenantId: any;
58
- authToken: any;
59
- };
60
- };
61
- api: {
62
- method: string;
63
- url: string;
64
- cache: number;
65
- requestAdaptor: string;
66
- adaptor: string;
67
- data: {
68
- query: string;
69
- };
70
- headers: {
71
- Authorization: string;
72
- };
73
- };
74
31
  body: {
75
32
  type: string;
76
33
  hiddenOn: string;
@@ -105,50 +62,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
105
62
  }[];
106
63
  className: string;
107
64
  actions: any[];
108
- onEvent: {
109
- [x: string]: {
110
- actions: ({
111
- actionType: string;
112
- componentId: string;
113
- expression: string;
114
- script?: undefined;
115
- } | {
116
- actionType: string;
117
- script: string;
118
- expression: string;
119
- componentId?: undefined;
120
- })[];
121
- };
122
- };
123
65
  };
124
66
  }[];
125
- onEvent: {
126
- fetchInited: {
127
- weight: number;
128
- actions: ({
129
- actionType: string;
130
- eventName: string;
131
- args: {
132
- eventName: string;
133
- value?: undefined;
134
- };
135
- data: {
136
- objectName: string;
137
- record: string;
138
- };
139
- expression: string;
140
- } | {
141
- actionType: string;
142
- args: {
143
- value: {
144
- recordLoaded: boolean;
145
- };
146
- eventName?: undefined;
147
- };
148
- expression: string;
149
- eventName?: undefined;
150
- data?: undefined;
151
- })[];
152
- };
153
- };
154
67
  }>;
@@ -13,6 +13,7 @@ export function getAmisInputTableSchema(props: any): Promise<{
13
13
  showTableAddBtn: boolean;
14
14
  showFooterAddBtn: boolean;
15
15
  className: any;
16
+ pipeOut: (value: any, data: any) => any;
16
17
  }[];
17
18
  className: any;
18
19
  id: string;
@@ -11,23 +11,6 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
11
11
  id: string;
12
12
  className: string;
13
13
  name: string;
14
- api: {
15
- method: string;
16
- url: string;
17
- cache: number;
18
- requestAdaptor: string;
19
- adaptor: string;
20
- responseData: {
21
- initialValues: string;
22
- editFormInited: boolean;
23
- };
24
- data: {
25
- query: string;
26
- };
27
- headers: {
28
- Authorization: string;
29
- };
30
- };
31
14
  data: any;
32
15
  initApi: any;
33
16
  initFetch: any;
@@ -40,32 +23,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
40
23
  type: string;
41
24
  name: string;
42
25
  id: string;
43
- data: {
44
- global: {
45
- mode: any;
46
- user: any;
47
- spaceId: any;
48
- userId: any;
49
- };
50
- context: {
51
- rootUrl: any;
52
- tenantId: any;
53
- authToken: any;
54
- };
55
- };
56
- api: {
57
- method: string;
58
- url: string;
59
- cache: number;
60
- requestAdaptor: string;
61
- adaptor: string;
62
- data: {
63
- query: string;
64
- };
65
- headers: {
66
- Authorization: string;
67
- };
68
- };
69
26
  body: {
70
27
  type: string;
71
28
  hiddenOn: string;
@@ -100,52 +57,8 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
100
57
  }[];
101
58
  className: string;
102
59
  actions: any[];
103
- onEvent: {
104
- [x: string]: {
105
- actions: ({
106
- actionType: string;
107
- componentId: string;
108
- expression: string;
109
- script?: undefined;
110
- } | {
111
- actionType: string;
112
- script: string;
113
- expression: string;
114
- componentId?: undefined;
115
- })[];
116
- };
117
- };
118
60
  };
119
61
  }[];
120
- onEvent: {
121
- fetchInited: {
122
- weight: number;
123
- actions: ({
124
- actionType: string;
125
- eventName: string;
126
- args: {
127
- eventName: string;
128
- value?: undefined;
129
- };
130
- data: {
131
- objectName: string;
132
- record: string;
133
- };
134
- expression: string;
135
- } | {
136
- actionType: string;
137
- args: {
138
- value: {
139
- recordLoaded: boolean;
140
- };
141
- eventName?: undefined;
142
- };
143
- expression: string;
144
- eventName?: undefined;
145
- data?: undefined;
146
- })[];
147
- };
148
- };
149
62
  };
150
63
  }>;
151
64
  export function getListSchema(appName: any, objectName: any, listViewName: any, ctx?: {}): Promise<{
@@ -219,13 +132,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
219
132
  type: string;
220
133
  id: string;
221
134
  name: string;
222
- data: {
223
- objectName: any;
224
- _id: any;
225
- recordPermissions: any;
226
- uiSchema: any;
227
- record: string;
228
- };
229
135
  body: {
230
136
  type: string;
231
137
  className: string;
@@ -265,14 +171,10 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
265
171
  className: string;
266
172
  }[];
267
173
  }[];
268
- className?: undefined;
269
- tpl?: undefined;
270
174
  } | {
271
175
  type: string;
272
176
  className: string;
273
177
  tpl: string;
274
- onEvent?: undefined;
275
- body?: undefined;
276
178
  })[];
277
179
  md: string;
278
180
  className: string;
@@ -296,51 +198,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
296
198
  } | {
297
199
  body: {
298
200
  type: string;
299
- items: {
300
- type: string;
301
- name: any;
302
- objectName: any;
303
- visibleOn: any;
304
- className: string;
305
- }[] | {
306
- type: string;
307
- icon: string;
308
- visibleOn: string;
309
- onEvent: {
310
- click: {
311
- actions: {
312
- actionType: string;
313
- drawer: {
314
- type: string;
315
- title: string;
316
- id: string;
317
- body: {
318
- type: string;
319
- id: string;
320
- vertical: boolean;
321
- tiled: boolean;
322
- buttons: {
323
- type: string;
324
- name: any;
325
- objectName: any;
326
- visibleOn: any;
327
- }[];
328
- btnLevel: string;
329
- className: string;
330
- btnClassName: string;
331
- size: string;
332
- }[];
333
- position: string;
334
- closeOnOutside: boolean;
335
- resizable: boolean;
336
- className: string;
337
- bodyClassName: string;
338
- actions: any[];
339
- };
340
- }[];
341
- };
342
- };
343
- };
201
+ items: any[];
344
202
  };
345
203
  md: string;
346
204
  columnClassName?: undefined;
@@ -379,25 +237,91 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
379
237
  objectApiName: string;
380
238
  recordId: string;
381
239
  id: string;
240
+ showButtons: any;
241
+ showBackButton: any;
382
242
  })[];
383
- data: {
384
- "_master.objectName": string;
385
- "_master.recordId": string;
386
- };
243
+ objectApiName: string;
244
+ recordId: string;
387
245
  onEvent: any;
388
246
  };
389
247
  }>;
390
- export function getRecordServiceSchema(objectName: any, appId: any, props?: {}): Promise<{
248
+ export function getRecordServiceSchema(objectName: any, appId: any, props: {}, body: any): Promise<{
391
249
  uiSchema: any;
392
250
  amisSchema: {
393
251
  type: string;
394
- body: any[];
252
+ className: string;
253
+ onEvent: {
254
+ [x: string]: {
255
+ actions: ({
256
+ actionType: string;
257
+ componentId: string;
258
+ expression: string;
259
+ script?: undefined;
260
+ } | {
261
+ actionType: string;
262
+ script: string;
263
+ expression: string;
264
+ componentId?: undefined;
265
+ })[];
266
+ };
267
+ };
268
+ body: {
269
+ type: string;
270
+ id: string;
271
+ className: string;
272
+ api: {
273
+ method: string;
274
+ url: string;
275
+ cache: number;
276
+ requestAdaptor: string;
277
+ adaptor: string;
278
+ data: {
279
+ query: string;
280
+ };
281
+ headers: {
282
+ Authorization: string;
283
+ };
284
+ };
285
+ body: {
286
+ type: string;
287
+ className: string;
288
+ body: any;
289
+ hiddenOn: string;
290
+ };
291
+ data: any;
292
+ style: any;
293
+ onEvent: any;
294
+ };
295
+ };
296
+ }>;
297
+ export function getRecordDetailMiniSchema(objectName: any, appId: any, props?: {}): Promise<{
298
+ type: string;
299
+ wrapWithPanel: boolean;
300
+ actions: any[];
301
+ initApi: {
302
+ method: string;
303
+ url: string;
304
+ cache: number;
305
+ requestAdaptor: string;
306
+ adaptor: string;
395
307
  data: {
396
- "_master.objectName": string;
397
- "_master.recordId": string;
308
+ query: string;
398
309
  };
399
- style: any;
400
- onEvent: any;
310
+ headers: {
311
+ Authorization: string;
312
+ };
313
+ };
314
+ body: {
315
+ type: string;
316
+ className: string;
317
+ body: {
318
+ type: string;
319
+ showButtons: boolean;
320
+ showBackButton: boolean;
321
+ objectApiName: string;
322
+ recordId: string;
323
+ }[];
324
+ hiddenOn: string;
401
325
  };
402
326
  }>;
403
327
  export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
@@ -88,4 +88,23 @@ export function getRelatedListSchema(objectName: any, listViewName: any, ctx: an
88
88
  ctx: any;
89
89
  };
90
90
  }>;
91
+ export function getObjectRelatedListsMiniSchema(objectApiName: any): Promise<{
92
+ type: string;
93
+ className: string;
94
+ body: {
95
+ type: string;
96
+ objectApiName: any;
97
+ formFactor: any;
98
+ relatedObjectApiName: any;
99
+ foreign_key: any;
100
+ relatedKey: any;
101
+ columns: any;
102
+ sort: any;
103
+ filters: any;
104
+ visible_on: any;
105
+ perPage: any;
106
+ hiddenEmptyTable: boolean;
107
+ relatedLabel: any;
108
+ }[];
109
+ }>;
91
110
  export function getRelatedFieldValue(masterObjectName: any, record_id: any, uiSchema: any, foreign_key: any): any;
@@ -8,23 +8,6 @@ export function getFormPageInitSchema(objectApiName: any): Promise<{
8
8
  id: string;
9
9
  className: string;
10
10
  name: string;
11
- api: {
12
- method: string;
13
- url: string;
14
- cache: number;
15
- requestAdaptor: string;
16
- adaptor: string;
17
- responseData: {
18
- initialValues: string;
19
- editFormInited: boolean;
20
- };
21
- data: {
22
- query: string;
23
- };
24
- headers: {
25
- Authorization: string;
26
- };
27
- };
28
11
  data: any;
29
12
  initApi: any;
30
13
  initFetch: any;
@@ -55,27 +38,7 @@ export function getRecordPageInitSchema(objectApiName: any): Promise<{
55
38
  label: string;
56
39
  objectApiName: string;
57
40
  recordId: string;
58
- onEvent: {
59
- recordLoaded: {
60
- actions: ({
61
- actionType: string;
62
- args: {
63
- value: {
64
- recordLoaded: boolean;
65
- };
66
- };
67
- data?: undefined;
68
- } | {
69
- actionType: string;
70
- data: {
71
- name: string;
72
- record: string;
73
- recordLoaded: boolean;
74
- };
75
- args?: undefined;
76
- })[];
77
- };
78
- };
41
+ onEvent: {};
79
42
  }[];
80
43
  }>;
81
44
  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": "3.6.2-beta.4",
4
+ "version": "3.6.2-beta.6",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -61,5 +61,5 @@
61
61
  "lodash": "^4.17.21",
62
62
  "react-i18next": "12.3.1"
63
63
  },
64
- "gitHead": "40b49aed76ad595209a6ff18c1818bb850e4d982"
64
+ "gitHead": "60b0fa72929039637851c75a1c8386723cbd19e2"
65
65
  }