@steedos-widgets/amis-lib 1.1.0-beta.1 → 1.1.0
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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +132 -107
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +132 -107
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +132 -107
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/calendar.d.ts +18 -0
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +18 -0
- package/dist/types/workflow/approve.d.ts +37 -44
- package/dist/types/workflow/flow.d.ts +38 -44
- package/package.json +2 -2
|
@@ -168,6 +168,24 @@ export function getObjectCalendar(objectSchema: any, calendarOptions: any, optio
|
|
|
168
168
|
script: string;
|
|
169
169
|
}[];
|
|
170
170
|
};
|
|
171
|
+
eventDidMount: {
|
|
172
|
+
weight: number;
|
|
173
|
+
actions: {
|
|
174
|
+
componentId: string;
|
|
175
|
+
args: {};
|
|
176
|
+
actionType: string;
|
|
177
|
+
script: string;
|
|
178
|
+
}[];
|
|
179
|
+
};
|
|
180
|
+
eventWillUnmount: {
|
|
181
|
+
weight: number;
|
|
182
|
+
actions: {
|
|
183
|
+
componentId: string;
|
|
184
|
+
args: {};
|
|
185
|
+
actionType: string;
|
|
186
|
+
script: string;
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
171
189
|
};
|
|
172
190
|
}>;
|
|
173
191
|
export namespace DEFAULT_CALENDAR_OPTIONS {
|
|
@@ -313,6 +313,24 @@ export function getCalendarSchema(appName: any, objectName: any, calendarOptions
|
|
|
313
313
|
script: string;
|
|
314
314
|
}[];
|
|
315
315
|
};
|
|
316
|
+
eventDidMount: {
|
|
317
|
+
weight: number;
|
|
318
|
+
actions: {
|
|
319
|
+
componentId: string;
|
|
320
|
+
args: {};
|
|
321
|
+
actionType: string;
|
|
322
|
+
script: string;
|
|
323
|
+
}[];
|
|
324
|
+
};
|
|
325
|
+
eventWillUnmount: {
|
|
326
|
+
weight: number;
|
|
327
|
+
actions: {
|
|
328
|
+
componentId: string;
|
|
329
|
+
args: {};
|
|
330
|
+
actionType: string;
|
|
331
|
+
script: string;
|
|
332
|
+
}[];
|
|
333
|
+
};
|
|
316
334
|
};
|
|
317
335
|
};
|
|
318
336
|
}>;
|
|
@@ -7,6 +7,9 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
7
7
|
size: string;
|
|
8
8
|
title: string;
|
|
9
9
|
className: string;
|
|
10
|
+
headerClassName: string;
|
|
11
|
+
bodyClassName: string;
|
|
12
|
+
footerClassName: string;
|
|
10
13
|
drawerContainer: () => any;
|
|
11
14
|
body: {
|
|
12
15
|
type: string;
|
|
@@ -34,7 +37,6 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
34
37
|
args: {
|
|
35
38
|
value: {
|
|
36
39
|
new_judge: string;
|
|
37
|
-
new_next_step: any;
|
|
38
40
|
next_step: any;
|
|
39
41
|
};
|
|
40
42
|
judge?: undefined;
|
|
@@ -73,6 +75,10 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
73
75
|
id: string;
|
|
74
76
|
multiple: boolean;
|
|
75
77
|
required: boolean;
|
|
78
|
+
autoFill: {
|
|
79
|
+
new_next_step: string;
|
|
80
|
+
next_users: any;
|
|
81
|
+
};
|
|
76
82
|
source: {
|
|
77
83
|
url: string;
|
|
78
84
|
headers: {
|
|
@@ -88,30 +94,6 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
88
94
|
judge: string;
|
|
89
95
|
};
|
|
90
96
|
};
|
|
91
|
-
onEvent: {
|
|
92
|
-
change: {
|
|
93
|
-
weight: number;
|
|
94
|
-
actions: ({
|
|
95
|
-
componentId: string;
|
|
96
|
-
args: {
|
|
97
|
-
value: {
|
|
98
|
-
new_next_step: string;
|
|
99
|
-
};
|
|
100
|
-
next_step?: undefined;
|
|
101
|
-
};
|
|
102
|
-
actionType: string;
|
|
103
|
-
eventName?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
args: {
|
|
106
|
-
next_step: string;
|
|
107
|
-
value?: undefined;
|
|
108
|
-
};
|
|
109
|
-
actionType: string;
|
|
110
|
-
eventName: string;
|
|
111
|
-
componentId?: undefined;
|
|
112
|
-
})[];
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
97
|
}[];
|
|
116
98
|
id: string;
|
|
117
99
|
md?: undefined;
|
|
@@ -146,27 +128,29 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
146
128
|
name: string;
|
|
147
129
|
id: string;
|
|
148
130
|
required: boolean;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
131
|
+
hiddenOn: string;
|
|
132
|
+
amis: {
|
|
133
|
+
multiple: string;
|
|
134
|
+
source: {
|
|
135
|
+
url: string;
|
|
136
|
+
method: string;
|
|
137
|
+
sendOn: string;
|
|
138
|
+
headers: {
|
|
139
|
+
Authorization: string;
|
|
140
|
+
};
|
|
141
|
+
messages: {};
|
|
142
|
+
requestAdaptor: string;
|
|
143
|
+
adaptor: string;
|
|
144
|
+
data: {
|
|
145
|
+
"&": string;
|
|
146
|
+
$scopeId: string;
|
|
147
|
+
context: string;
|
|
148
|
+
next_step: string;
|
|
149
|
+
};
|
|
165
150
|
};
|
|
151
|
+
labelField: string;
|
|
152
|
+
valueField: string;
|
|
166
153
|
};
|
|
167
|
-
labelField: string;
|
|
168
|
-
valueField: string;
|
|
169
|
-
hiddenOn: string;
|
|
170
154
|
})[];
|
|
171
155
|
id: string;
|
|
172
156
|
md?: undefined;
|
|
@@ -176,6 +160,15 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
176
160
|
className: string;
|
|
177
161
|
subFormMode: string;
|
|
178
162
|
hiddenOn: string;
|
|
163
|
+
} | {
|
|
164
|
+
type: string;
|
|
165
|
+
name: string;
|
|
166
|
+
label?: undefined;
|
|
167
|
+
id?: undefined;
|
|
168
|
+
minRows?: undefined;
|
|
169
|
+
maxRows?: undefined;
|
|
170
|
+
placeholder?: undefined;
|
|
171
|
+
requiredOn?: undefined;
|
|
179
172
|
} | {
|
|
180
173
|
type: string;
|
|
181
174
|
label: boolean;
|
|
@@ -2,6 +2,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
2
2
|
type: string;
|
|
3
3
|
name: string;
|
|
4
4
|
className: string;
|
|
5
|
+
bodyClassName: string;
|
|
5
6
|
title: {
|
|
6
7
|
type: string;
|
|
7
8
|
label: string;
|
|
@@ -203,6 +204,9 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
203
204
|
size: string;
|
|
204
205
|
title: string;
|
|
205
206
|
className: string;
|
|
207
|
+
headerClassName: string;
|
|
208
|
+
bodyClassName: string;
|
|
209
|
+
footerClassName: string;
|
|
206
210
|
drawerContainer: () => any;
|
|
207
211
|
body: {
|
|
208
212
|
type: string;
|
|
@@ -230,7 +234,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
230
234
|
args: {
|
|
231
235
|
value: {
|
|
232
236
|
new_judge: string;
|
|
233
|
-
new_next_step: any;
|
|
234
237
|
next_step: any;
|
|
235
238
|
};
|
|
236
239
|
judge?: undefined;
|
|
@@ -269,6 +272,10 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
269
272
|
id: string;
|
|
270
273
|
multiple: boolean;
|
|
271
274
|
required: boolean;
|
|
275
|
+
autoFill: {
|
|
276
|
+
new_next_step: string;
|
|
277
|
+
next_users: any;
|
|
278
|
+
};
|
|
272
279
|
source: {
|
|
273
280
|
url: string;
|
|
274
281
|
headers: {
|
|
@@ -284,30 +291,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
284
291
|
judge: string;
|
|
285
292
|
};
|
|
286
293
|
};
|
|
287
|
-
onEvent: {
|
|
288
|
-
change: {
|
|
289
|
-
weight: number;
|
|
290
|
-
actions: ({
|
|
291
|
-
componentId: string;
|
|
292
|
-
args: {
|
|
293
|
-
value: {
|
|
294
|
-
new_next_step: string;
|
|
295
|
-
};
|
|
296
|
-
next_step?: undefined;
|
|
297
|
-
};
|
|
298
|
-
actionType: string;
|
|
299
|
-
eventName?: undefined;
|
|
300
|
-
} | {
|
|
301
|
-
args: {
|
|
302
|
-
next_step: string;
|
|
303
|
-
value?: undefined;
|
|
304
|
-
};
|
|
305
|
-
actionType: string;
|
|
306
|
-
eventName: string;
|
|
307
|
-
componentId?: undefined;
|
|
308
|
-
})[];
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
294
|
}[];
|
|
312
295
|
id: string;
|
|
313
296
|
md?: undefined;
|
|
@@ -342,27 +325,29 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
342
325
|
name: string;
|
|
343
326
|
id: string;
|
|
344
327
|
required: boolean;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
328
|
+
hiddenOn: string;
|
|
329
|
+
amis: {
|
|
330
|
+
multiple: string;
|
|
331
|
+
source: {
|
|
332
|
+
url: string;
|
|
333
|
+
method: string;
|
|
334
|
+
sendOn: string;
|
|
335
|
+
headers: {
|
|
336
|
+
Authorization: string;
|
|
337
|
+
};
|
|
338
|
+
messages: {};
|
|
339
|
+
requestAdaptor: string;
|
|
340
|
+
adaptor: string;
|
|
341
|
+
data: {
|
|
342
|
+
"&": string;
|
|
343
|
+
$scopeId: string;
|
|
344
|
+
context: string;
|
|
345
|
+
next_step: string;
|
|
346
|
+
};
|
|
361
347
|
};
|
|
348
|
+
labelField: string;
|
|
349
|
+
valueField: string;
|
|
362
350
|
};
|
|
363
|
-
labelField: string;
|
|
364
|
-
valueField: string;
|
|
365
|
-
hiddenOn: string;
|
|
366
351
|
})[];
|
|
367
352
|
id: string;
|
|
368
353
|
md?: undefined;
|
|
@@ -372,6 +357,15 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
372
357
|
className: string;
|
|
373
358
|
subFormMode: string;
|
|
374
359
|
hiddenOn: string;
|
|
360
|
+
} | {
|
|
361
|
+
type: string;
|
|
362
|
+
name: string;
|
|
363
|
+
label?: undefined;
|
|
364
|
+
id?: undefined;
|
|
365
|
+
minRows?: undefined;
|
|
366
|
+
maxRows?: undefined;
|
|
367
|
+
placeholder?: undefined;
|
|
368
|
+
requiredOn?: undefined;
|
|
375
369
|
} | {
|
|
376
370
|
type: string;
|
|
377
371
|
label: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.0
|
|
4
|
+
"version": "1.1.0",
|
|
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": "
|
|
62
|
+
"gitHead": "bbc151f7f45493e1ff1449ff441ad689deee6e25"
|
|
63
63
|
}
|