@steedos-widgets/amis-lib 1.1.0-beta.2 → 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 +99 -92
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +99 -92
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +99 -92
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/calendar.d.ts +18 -0
- package/dist/types/lib/objects.d.ts +18 -0
- package/dist/types/workflow/approve.d.ts +34 -45
- package/dist/types/workflow/flow.d.ts +34 -45
- 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
|
}>;
|
|
@@ -37,7 +37,6 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
37
37
|
args: {
|
|
38
38
|
value: {
|
|
39
39
|
new_judge: string;
|
|
40
|
-
new_next_step: any;
|
|
41
40
|
next_step: any;
|
|
42
41
|
};
|
|
43
42
|
judge?: undefined;
|
|
@@ -76,7 +75,10 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
76
75
|
id: string;
|
|
77
76
|
multiple: boolean;
|
|
78
77
|
required: boolean;
|
|
79
|
-
|
|
78
|
+
autoFill: {
|
|
79
|
+
new_next_step: string;
|
|
80
|
+
next_users: any;
|
|
81
|
+
};
|
|
80
82
|
source: {
|
|
81
83
|
url: string;
|
|
82
84
|
headers: {
|
|
@@ -92,30 +94,6 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
92
94
|
judge: string;
|
|
93
95
|
};
|
|
94
96
|
};
|
|
95
|
-
onEvent: {
|
|
96
|
-
change: {
|
|
97
|
-
weight: number;
|
|
98
|
-
actions: ({
|
|
99
|
-
componentId: string;
|
|
100
|
-
args: {
|
|
101
|
-
value: {
|
|
102
|
-
new_next_step: string;
|
|
103
|
-
};
|
|
104
|
-
next_step?: undefined;
|
|
105
|
-
};
|
|
106
|
-
actionType: string;
|
|
107
|
-
eventName?: undefined;
|
|
108
|
-
} | {
|
|
109
|
-
args: {
|
|
110
|
-
next_step: string;
|
|
111
|
-
value?: undefined;
|
|
112
|
-
};
|
|
113
|
-
actionType: string;
|
|
114
|
-
eventName: string;
|
|
115
|
-
componentId?: undefined;
|
|
116
|
-
})[];
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
97
|
}[];
|
|
120
98
|
id: string;
|
|
121
99
|
md?: undefined;
|
|
@@ -150,27 +128,29 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
150
128
|
name: string;
|
|
151
129
|
id: string;
|
|
152
130
|
required: boolean;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
+
};
|
|
169
150
|
};
|
|
151
|
+
labelField: string;
|
|
152
|
+
valueField: string;
|
|
170
153
|
};
|
|
171
|
-
labelField: string;
|
|
172
|
-
valueField: string;
|
|
173
|
-
hiddenOn: string;
|
|
174
154
|
})[];
|
|
175
155
|
id: string;
|
|
176
156
|
md?: undefined;
|
|
@@ -180,6 +160,15 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
|
|
|
180
160
|
className: string;
|
|
181
161
|
subFormMode: string;
|
|
182
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;
|
|
183
172
|
} | {
|
|
184
173
|
type: string;
|
|
185
174
|
label: boolean;
|
|
@@ -234,7 +234,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
234
234
|
args: {
|
|
235
235
|
value: {
|
|
236
236
|
new_judge: string;
|
|
237
|
-
new_next_step: any;
|
|
238
237
|
next_step: any;
|
|
239
238
|
};
|
|
240
239
|
judge?: undefined;
|
|
@@ -273,7 +272,10 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
273
272
|
id: string;
|
|
274
273
|
multiple: boolean;
|
|
275
274
|
required: boolean;
|
|
276
|
-
|
|
275
|
+
autoFill: {
|
|
276
|
+
new_next_step: string;
|
|
277
|
+
next_users: any;
|
|
278
|
+
};
|
|
277
279
|
source: {
|
|
278
280
|
url: string;
|
|
279
281
|
headers: {
|
|
@@ -289,30 +291,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
289
291
|
judge: string;
|
|
290
292
|
};
|
|
291
293
|
};
|
|
292
|
-
onEvent: {
|
|
293
|
-
change: {
|
|
294
|
-
weight: number;
|
|
295
|
-
actions: ({
|
|
296
|
-
componentId: string;
|
|
297
|
-
args: {
|
|
298
|
-
value: {
|
|
299
|
-
new_next_step: string;
|
|
300
|
-
};
|
|
301
|
-
next_step?: undefined;
|
|
302
|
-
};
|
|
303
|
-
actionType: string;
|
|
304
|
-
eventName?: undefined;
|
|
305
|
-
} | {
|
|
306
|
-
args: {
|
|
307
|
-
next_step: string;
|
|
308
|
-
value?: undefined;
|
|
309
|
-
};
|
|
310
|
-
actionType: string;
|
|
311
|
-
eventName: string;
|
|
312
|
-
componentId?: undefined;
|
|
313
|
-
})[];
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
294
|
}[];
|
|
317
295
|
id: string;
|
|
318
296
|
md?: undefined;
|
|
@@ -347,27 +325,29 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
347
325
|
name: string;
|
|
348
326
|
id: string;
|
|
349
327
|
required: boolean;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
+
};
|
|
366
347
|
};
|
|
348
|
+
labelField: string;
|
|
349
|
+
valueField: string;
|
|
367
350
|
};
|
|
368
|
-
labelField: string;
|
|
369
|
-
valueField: string;
|
|
370
|
-
hiddenOn: string;
|
|
371
351
|
})[];
|
|
372
352
|
id: string;
|
|
373
353
|
md?: undefined;
|
|
@@ -377,6 +357,15 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
|
|
|
377
357
|
className: string;
|
|
378
358
|
subFormMode: string;
|
|
379
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;
|
|
380
369
|
} | {
|
|
381
370
|
type: string;
|
|
382
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
|
}
|