@steedos-widgets/amis-lib 6.10.49 → 6.10.52-beta.1

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.
@@ -19,9 +19,25 @@ export function getAmisInputTableSchema(props: any): Promise<{
19
19
  pipeOut: (value: any, data: any) => any;
20
20
  required: any;
21
21
  description: any;
22
+ onEvent: {
23
+ change: {
24
+ actions: {
25
+ actionType: string;
26
+ script: (context: any, doAction: any, event: any) => void;
27
+ }[];
28
+ };
29
+ };
22
30
  }[];
23
31
  id: string;
24
32
  className: string;
33
+ onEvent: {
34
+ init: {
35
+ actions: {
36
+ actionType: string;
37
+ script: (context: any, doAction: any, event: any) => void;
38
+ }[];
39
+ };
40
+ };
25
41
  };
26
42
  label: any;
27
43
  labelClassName: any;
@@ -324,10 +324,10 @@ export function getRecordServiceSchema(objectName: any, appId: any, props: {}, b
324
324
  };
325
325
  };
326
326
  body: {
327
+ hiddenOn?: string;
327
328
  type: string;
328
329
  className: string;
329
330
  body: any;
330
- hiddenOn: string;
331
331
  };
332
332
  data: any;
333
333
  style: any;
@@ -271,14 +271,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
271
271
  }[];
272
272
  id: string;
273
273
  position: string;
274
- onEvent: {
275
- cancel: {
276
- actions: {
277
- actionType: string;
278
- script: (context: any, doAction: any, event: any) => void;
279
- }[];
280
- };
281
- };
282
274
  actions: ({
283
275
  type: string;
284
276
  label: string;
@@ -13,7 +13,7 @@ export function getAttachments(instance: any): Promise<{
13
13
  } | {
14
14
  type: string;
15
15
  title: string;
16
- body: {
16
+ body: ({
17
17
  type: string;
18
18
  labelClassName: string;
19
19
  className: string;
@@ -69,8 +69,42 @@ export function getAttachments(instance: any): Promise<{
69
69
  actionType: string;
70
70
  })[];
71
71
  };
72
+ click?: undefined;
72
73
  };
73
- }[];
74
+ } | {
75
+ type: string;
76
+ className: string;
77
+ onEvent: {
78
+ click: {
79
+ weight: number;
80
+ actions: {
81
+ componentId: string;
82
+ args: {};
83
+ actionType: string;
84
+ }[];
85
+ };
86
+ success?: undefined;
87
+ };
88
+ labelClassName?: undefined;
89
+ label?: undefined;
90
+ mode?: undefined;
91
+ name?: undefined;
92
+ id?: undefined;
93
+ btnLabel?: undefined;
94
+ btnClassName?: undefined;
95
+ multiple?: undefined;
96
+ maxLength?: undefined;
97
+ submitType?: undefined;
98
+ uploadType?: undefined;
99
+ proxy?: undefined;
100
+ drag?: undefined;
101
+ autoUpload?: undefined;
102
+ useChunk?: undefined;
103
+ joinValues?: undefined;
104
+ extractValue?: undefined;
105
+ valueField?: undefined;
106
+ receiver?: undefined;
107
+ })[];
74
108
  id: string;
75
109
  wrapWithPanel: boolean;
76
110
  tpl?: undefined;
@@ -86,20 +120,15 @@ export function getAttachments(instance: any): Promise<{
86
120
  Authorization: string;
87
121
  };
88
122
  requestAdaptor: string;
123
+ adaptor: (payload: any, response: any, api: any, context: any) => {
124
+ data: {
125
+ attachments: any[];
126
+ };
127
+ };
89
128
  };
90
129
  body: {
91
130
  type: string;
92
- source: string;
93
- title: boolean;
94
- listItem: {
95
- body: {
96
- type: string;
97
- inline: boolean;
98
- tpl: string;
99
- }[];
100
- actions: any[];
101
- id: string;
102
- };
131
+ template: string;
103
132
  id: string;
104
133
  }[];
105
134
  }[];
@@ -114,7 +143,7 @@ export function getAttachmentUploadInput(instance: any): Promise<{
114
143
  } | {
115
144
  type: string;
116
145
  title: string;
117
- body: {
146
+ body: ({
118
147
  type: string;
119
148
  labelClassName: string;
120
149
  className: string;
@@ -170,8 +199,42 @@ export function getAttachmentUploadInput(instance: any): Promise<{
170
199
  actionType: string;
171
200
  })[];
172
201
  };
202
+ click?: undefined;
173
203
  };
174
- }[];
204
+ } | {
205
+ type: string;
206
+ className: string;
207
+ onEvent: {
208
+ click: {
209
+ weight: number;
210
+ actions: {
211
+ componentId: string;
212
+ args: {};
213
+ actionType: string;
214
+ }[];
215
+ };
216
+ success?: undefined;
217
+ };
218
+ labelClassName?: undefined;
219
+ label?: undefined;
220
+ mode?: undefined;
221
+ name?: undefined;
222
+ id?: undefined;
223
+ btnLabel?: undefined;
224
+ btnClassName?: undefined;
225
+ multiple?: undefined;
226
+ maxLength?: undefined;
227
+ submitType?: undefined;
228
+ uploadType?: undefined;
229
+ proxy?: undefined;
230
+ drag?: undefined;
231
+ autoUpload?: undefined;
232
+ useChunk?: undefined;
233
+ joinValues?: undefined;
234
+ extractValue?: undefined;
235
+ valueField?: undefined;
236
+ receiver?: undefined;
237
+ })[];
175
238
  id: string;
176
239
  wrapWithPanel: boolean;
177
240
  tpl?: undefined;
@@ -1,2 +1,2 @@
1
1
  export { getFlowFormSchema } from './flow';
2
- export { getInstanceInfo, getApplicant, autoUpgradeInstance } from './instance';
2
+ export { getInstanceInfo, getApplicant, autoUpgradeInstance, fetchAutoNumber } from './instance';
@@ -1,3 +1,4 @@
1
+ export function fetchAutoNumber(instanceId: any): Promise<any>;
1
2
  export function autoUpgradeInstance(instanceId: any): Promise<any>;
2
3
  export function getInstanceInfo(props: any): Promise<{
3
4
  box: any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.10.49",
4
+ "version": "6.10.52-beta.1",
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
  "i18next": "24.2.2",
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "bd807f3646ba16317416ef5a445f74d6c9bba34a"
62
+ "gitHead": "8a2fa16f1c8dd4d4de41c4365d40c9c711da6ccb"
63
63
  }