@steedos-widgets/amis-lib 6.10.48 → 6.10.51

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;
@@ -127,44 +127,56 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
127
127
  } | {
128
128
  body: ({
129
129
  type: string;
130
- label: string;
131
- name: string;
132
- id: string;
133
- hiddenOn: string;
134
- required: boolean;
135
- onEvent: {
136
- change: {
137
- weight: number;
138
- actions: any[];
139
- };
130
+ api: {
131
+ url: string;
132
+ method: string;
133
+ sendOn: string;
134
+ messages: {};
135
+ requestAdaptor: string;
136
+ adaptor: string;
140
137
  };
141
- multiple?: undefined;
142
- source?: undefined;
143
- labelField?: undefined;
144
- valueField?: undefined;
145
- value?: undefined;
146
- joinValues?: undefined;
147
- extractValue?: undefined;
148
- } | {
149
- type: string;
150
- label: string;
151
- name: string;
152
- id: string;
153
- hiddenOn: string;
154
- required: boolean;
155
- multiple: boolean;
156
- onEvent: {
157
- change: {
158
- weight: number;
159
- actions: any[];
138
+ body: ({
139
+ type: string;
140
+ label: string;
141
+ name: string;
142
+ id: string;
143
+ hiddenOn: string;
144
+ required: boolean;
145
+ onEvent: {
146
+ change: {
147
+ weight: number;
148
+ actions: any[];
149
+ };
160
150
  };
161
- };
151
+ multiple?: undefined;
152
+ } | {
153
+ type: string;
154
+ label: string;
155
+ name: string;
156
+ id: string;
157
+ hiddenOn: string;
158
+ required: boolean;
159
+ multiple: boolean;
160
+ onEvent: {
161
+ change: {
162
+ weight: number;
163
+ actions: any[];
164
+ };
165
+ };
166
+ })[];
167
+ label?: undefined;
168
+ name?: undefined;
169
+ id?: undefined;
170
+ required?: undefined;
171
+ hiddenOn?: undefined;
172
+ multiple?: undefined;
162
173
  source?: undefined;
163
174
  labelField?: undefined;
164
175
  valueField?: undefined;
165
176
  value?: undefined;
166
177
  joinValues?: undefined;
167
178
  extractValue?: undefined;
179
+ onEvent?: undefined;
168
180
  } | {
169
181
  type: string;
170
182
  label: string;
@@ -177,9 +189,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
177
189
  url: string;
178
190
  method: string;
179
191
  sendOn: string;
180
- headers: {
181
- Authorization: string;
182
- };
183
192
  messages: {};
184
193
  requestAdaptor: string;
185
194
  adaptor: string;
@@ -201,6 +210,8 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
201
210
  actions: any[];
202
211
  };
203
212
  };
213
+ api?: undefined;
214
+ body?: undefined;
204
215
  })[];
205
216
  id: string;
206
217
  md?: undefined;
@@ -260,14 +271,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
260
271
  }[];
261
272
  id: string;
262
273
  position: string;
263
- onEvent: {
264
- cancel: {
265
- actions: {
266
- actionType: string;
267
- script: (context: any, doAction: any, event: any) => void;
268
- }[];
269
- };
270
- };
271
274
  actions: ({
272
275
  type: string;
273
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;
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.48",
4
+ "version": "6.10.51",
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": "aa2766f89c4316272e87f25f405a570fe019fbb3"
62
+ "gitHead": "a945cc8b4a4eb973e887509ee26a0e7d671b927b"
63
63
  }