@steedos-widgets/amis-lib 6.10.18 → 6.10.20
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 +154 -54
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +154 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +214 -231
- package/dist/index.umd.js.map +1 -1
- package/dist/types/workflow/approve.d.ts +32 -1
- package/dist/types/workflow/flow.d.ts +34 -0
- package/dist/types/workflow/index.d.ts +1 -1
- package/dist/types/workflow/instance.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function getApprovalDrawerSchema(instance: any,
|
|
1
|
+
export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
|
|
2
2
|
type: string;
|
|
3
3
|
overlay: boolean;
|
|
4
4
|
resizable: boolean;
|
|
@@ -13,6 +13,10 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
13
13
|
drawerContainer: () => HTMLElement;
|
|
14
14
|
body: {
|
|
15
15
|
type: string;
|
|
16
|
+
initApi: {
|
|
17
|
+
method: string;
|
|
18
|
+
url: string;
|
|
19
|
+
};
|
|
16
20
|
debug: boolean;
|
|
17
21
|
id: string;
|
|
18
22
|
resetAfterSubmit: boolean;
|
|
@@ -94,6 +98,12 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
94
98
|
judge: string;
|
|
95
99
|
};
|
|
96
100
|
};
|
|
101
|
+
onEvent: {
|
|
102
|
+
change: {
|
|
103
|
+
weight: number;
|
|
104
|
+
actions: any[];
|
|
105
|
+
};
|
|
106
|
+
};
|
|
97
107
|
}[];
|
|
98
108
|
id: string;
|
|
99
109
|
md?: undefined;
|
|
@@ -122,6 +132,12 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
122
132
|
name: string;
|
|
123
133
|
hiddenOn: string;
|
|
124
134
|
required: boolean;
|
|
135
|
+
onEvent: {
|
|
136
|
+
change: {
|
|
137
|
+
weight: number;
|
|
138
|
+
actions: any[];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
125
141
|
multiple?: undefined;
|
|
126
142
|
id?: undefined;
|
|
127
143
|
source?: undefined;
|
|
@@ -137,6 +153,12 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
137
153
|
hiddenOn: string;
|
|
138
154
|
required: boolean;
|
|
139
155
|
multiple: boolean;
|
|
156
|
+
onEvent: {
|
|
157
|
+
change: {
|
|
158
|
+
weight: number;
|
|
159
|
+
actions: any[];
|
|
160
|
+
};
|
|
161
|
+
};
|
|
140
162
|
id?: undefined;
|
|
141
163
|
source?: undefined;
|
|
142
164
|
labelField?: undefined;
|
|
@@ -174,6 +196,12 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
174
196
|
value: string;
|
|
175
197
|
joinValues: boolean;
|
|
176
198
|
extractValue: boolean;
|
|
199
|
+
onEvent: {
|
|
200
|
+
change: {
|
|
201
|
+
weight: number;
|
|
202
|
+
actions: any[];
|
|
203
|
+
};
|
|
204
|
+
};
|
|
177
205
|
})[];
|
|
178
206
|
id: string;
|
|
179
207
|
md?: undefined;
|
|
@@ -212,6 +240,9 @@ export function getApprovalDrawerSchema(instance: any, submitEvents: any): Promi
|
|
|
212
240
|
args: {};
|
|
213
241
|
}[];
|
|
214
242
|
};
|
|
243
|
+
inited: {
|
|
244
|
+
actions: any[];
|
|
245
|
+
};
|
|
215
246
|
};
|
|
216
247
|
}[];
|
|
217
248
|
id: string;
|
|
@@ -225,6 +225,10 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
225
225
|
drawerContainer: () => HTMLElement;
|
|
226
226
|
body: {
|
|
227
227
|
type: string;
|
|
228
|
+
initApi: {
|
|
229
|
+
method: string;
|
|
230
|
+
url: string;
|
|
231
|
+
};
|
|
228
232
|
debug: boolean;
|
|
229
233
|
id: string;
|
|
230
234
|
resetAfterSubmit: boolean;
|
|
@@ -306,6 +310,12 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
306
310
|
judge: string;
|
|
307
311
|
};
|
|
308
312
|
};
|
|
313
|
+
onEvent: {
|
|
314
|
+
change: {
|
|
315
|
+
weight: number;
|
|
316
|
+
actions: any[];
|
|
317
|
+
};
|
|
318
|
+
};
|
|
309
319
|
}[];
|
|
310
320
|
id: string;
|
|
311
321
|
md?: undefined;
|
|
@@ -334,6 +344,12 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
334
344
|
name: string;
|
|
335
345
|
hiddenOn: string;
|
|
336
346
|
required: boolean;
|
|
347
|
+
onEvent: {
|
|
348
|
+
change: {
|
|
349
|
+
weight: number;
|
|
350
|
+
actions: any[];
|
|
351
|
+
};
|
|
352
|
+
};
|
|
337
353
|
multiple?: undefined;
|
|
338
354
|
id?: undefined;
|
|
339
355
|
source?: undefined;
|
|
@@ -349,6 +365,12 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
349
365
|
hiddenOn: string;
|
|
350
366
|
required: boolean;
|
|
351
367
|
multiple: boolean;
|
|
368
|
+
onEvent: {
|
|
369
|
+
change: {
|
|
370
|
+
weight: number;
|
|
371
|
+
actions: any[];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
352
374
|
id?: undefined;
|
|
353
375
|
source?: undefined;
|
|
354
376
|
labelField?: undefined;
|
|
@@ -386,6 +408,12 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
386
408
|
value: string;
|
|
387
409
|
joinValues: boolean;
|
|
388
410
|
extractValue: boolean;
|
|
411
|
+
onEvent: {
|
|
412
|
+
change: {
|
|
413
|
+
weight: number;
|
|
414
|
+
actions: any[];
|
|
415
|
+
};
|
|
416
|
+
};
|
|
389
417
|
})[];
|
|
390
418
|
id: string;
|
|
391
419
|
md?: undefined;
|
|
@@ -424,6 +452,9 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
424
452
|
args: {};
|
|
425
453
|
}[];
|
|
426
454
|
};
|
|
455
|
+
inited: {
|
|
456
|
+
actions: any[];
|
|
457
|
+
};
|
|
427
458
|
};
|
|
428
459
|
}[];
|
|
429
460
|
id: string;
|
|
@@ -508,6 +539,9 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
508
539
|
body: {
|
|
509
540
|
type: string;
|
|
510
541
|
tpl: string;
|
|
542
|
+
className: string | {
|
|
543
|
+
'steedos-field-required': string;
|
|
544
|
+
};
|
|
511
545
|
}[];
|
|
512
546
|
style: {
|
|
513
547
|
borderLeftColor: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { getFlowFormSchema } from './flow';
|
|
2
|
-
export { getInstanceInfo } from './instance';
|
|
2
|
+
export { getInstanceInfo, getApplicant } from './instance';
|
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.
|
|
4
|
+
"version": "6.10.20",
|
|
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": "
|
|
64
|
+
"gitHead": "5c8462d090debd9a20c910544e331ad1bc59f7d5"
|
|
65
65
|
}
|