@steedos-widgets/amis-lib 1.1.0-beta.2 → 1.1.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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +231 -210
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +231 -210
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +231 -210
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/calendar.d.ts +1 -129
- package/dist/types/lib/objects.d.ts +1 -129
- package/dist/types/workflow/approve.d.ts +34 -45
- package/dist/types/workflow/flow.d.ts +34 -45
- package/package.json +2 -2
|
@@ -41,135 +41,7 @@ export function getCalendarRecordSaveApi(object: any, calendarOptions: any): {
|
|
|
41
41
|
* @param {*} objectSchema 对象UISchema
|
|
42
42
|
* @returns amisSchema
|
|
43
43
|
*/
|
|
44
|
-
export function getObjectCalendar(objectSchema: any, calendarOptions: any, options: any): Promise<
|
|
45
|
-
type: string;
|
|
46
|
-
label: string;
|
|
47
|
-
name: string;
|
|
48
|
-
editable: any;
|
|
49
|
-
selectable: any;
|
|
50
|
-
selectMirror: any;
|
|
51
|
-
initialView: any;
|
|
52
|
-
businessHours: {
|
|
53
|
-
daysOfWeek: number[];
|
|
54
|
-
startTime: string;
|
|
55
|
-
endTime: string;
|
|
56
|
-
};
|
|
57
|
-
onEvent: {
|
|
58
|
-
getEvents: {
|
|
59
|
-
weight: number;
|
|
60
|
-
actions: {
|
|
61
|
-
componentId: string;
|
|
62
|
-
args: {};
|
|
63
|
-
actionType: string;
|
|
64
|
-
script: string;
|
|
65
|
-
}[];
|
|
66
|
-
};
|
|
67
|
-
select: {
|
|
68
|
-
weight: number;
|
|
69
|
-
actions: {
|
|
70
|
-
componentId: string;
|
|
71
|
-
args: {};
|
|
72
|
-
actionType: string;
|
|
73
|
-
script: string;
|
|
74
|
-
}[];
|
|
75
|
-
};
|
|
76
|
-
eventClick: {
|
|
77
|
-
weight: number;
|
|
78
|
-
actions: {
|
|
79
|
-
componentId: string;
|
|
80
|
-
args: {};
|
|
81
|
-
actionType: string;
|
|
82
|
-
script: string;
|
|
83
|
-
}[];
|
|
84
|
-
};
|
|
85
|
-
eventAdd: {
|
|
86
|
-
weight: number;
|
|
87
|
-
actions: {
|
|
88
|
-
componentId: string;
|
|
89
|
-
args: {};
|
|
90
|
-
actionType: string;
|
|
91
|
-
script: string;
|
|
92
|
-
}[];
|
|
93
|
-
};
|
|
94
|
-
eventChange: {
|
|
95
|
-
weight: number;
|
|
96
|
-
actions: ({
|
|
97
|
-
actionType: string;
|
|
98
|
-
args: {
|
|
99
|
-
api: {
|
|
100
|
-
method: string;
|
|
101
|
-
url: string;
|
|
102
|
-
data: {
|
|
103
|
-
query: string;
|
|
104
|
-
};
|
|
105
|
-
headers: {
|
|
106
|
-
Authorization: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
msgType?: undefined;
|
|
110
|
-
msg?: undefined;
|
|
111
|
-
position?: undefined;
|
|
112
|
-
messages?: undefined;
|
|
113
|
-
};
|
|
114
|
-
expression?: undefined;
|
|
115
|
-
} | {
|
|
116
|
-
actionType: string;
|
|
117
|
-
expression: string;
|
|
118
|
-
args: {
|
|
119
|
-
msgType: string;
|
|
120
|
-
msg: string;
|
|
121
|
-
position: string;
|
|
122
|
-
api?: undefined;
|
|
123
|
-
messages?: undefined;
|
|
124
|
-
};
|
|
125
|
-
} | {
|
|
126
|
-
actionType: string;
|
|
127
|
-
expression: string;
|
|
128
|
-
args: {
|
|
129
|
-
api: {
|
|
130
|
-
method: string;
|
|
131
|
-
url: string;
|
|
132
|
-
data: {
|
|
133
|
-
objectName: string;
|
|
134
|
-
$: {};
|
|
135
|
-
$self: string;
|
|
136
|
-
};
|
|
137
|
-
requestAdaptor: string;
|
|
138
|
-
adaptor: string;
|
|
139
|
-
headers: {
|
|
140
|
-
Authorization: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
messages: {
|
|
144
|
-
success: string;
|
|
145
|
-
failed: string;
|
|
146
|
-
};
|
|
147
|
-
msgType?: undefined;
|
|
148
|
-
msg?: undefined;
|
|
149
|
-
position?: undefined;
|
|
150
|
-
};
|
|
151
|
-
})[];
|
|
152
|
-
};
|
|
153
|
-
eventRemove: {
|
|
154
|
-
weight: number;
|
|
155
|
-
actions: {
|
|
156
|
-
componentId: string;
|
|
157
|
-
args: {};
|
|
158
|
-
actionType: string;
|
|
159
|
-
script: string;
|
|
160
|
-
}[];
|
|
161
|
-
};
|
|
162
|
-
eventsSet: {
|
|
163
|
-
weight: number;
|
|
164
|
-
actions: {
|
|
165
|
-
componentId: string;
|
|
166
|
-
args: {};
|
|
167
|
-
actionType: string;
|
|
168
|
-
script: string;
|
|
169
|
-
}[];
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
}>;
|
|
44
|
+
export function getObjectCalendar(objectSchema: any, calendarOptions: any, options: any): Promise<any>;
|
|
173
45
|
export namespace DEFAULT_CALENDAR_OPTIONS {
|
|
174
46
|
const startDateExpr: string;
|
|
175
47
|
const endDateExpr: string;
|
|
@@ -186,135 +186,7 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
|
|
|
186
186
|
}>;
|
|
187
187
|
export function getCalendarSchema(appName: any, objectName: any, calendarOptions: any, ctx?: {}): Promise<{
|
|
188
188
|
uiSchema: any;
|
|
189
|
-
amisSchema:
|
|
190
|
-
type: string;
|
|
191
|
-
label: string;
|
|
192
|
-
name: string;
|
|
193
|
-
editable: any;
|
|
194
|
-
selectable: any;
|
|
195
|
-
selectMirror: any;
|
|
196
|
-
initialView: any;
|
|
197
|
-
businessHours: {
|
|
198
|
-
daysOfWeek: number[];
|
|
199
|
-
startTime: string;
|
|
200
|
-
endTime: string;
|
|
201
|
-
};
|
|
202
|
-
onEvent: {
|
|
203
|
-
getEvents: {
|
|
204
|
-
weight: number;
|
|
205
|
-
actions: {
|
|
206
|
-
componentId: string;
|
|
207
|
-
args: {};
|
|
208
|
-
actionType: string;
|
|
209
|
-
script: string;
|
|
210
|
-
}[];
|
|
211
|
-
};
|
|
212
|
-
select: {
|
|
213
|
-
weight: number;
|
|
214
|
-
actions: {
|
|
215
|
-
componentId: string;
|
|
216
|
-
args: {};
|
|
217
|
-
actionType: string;
|
|
218
|
-
script: string;
|
|
219
|
-
}[];
|
|
220
|
-
};
|
|
221
|
-
eventClick: {
|
|
222
|
-
weight: number;
|
|
223
|
-
actions: {
|
|
224
|
-
componentId: string;
|
|
225
|
-
args: {};
|
|
226
|
-
actionType: string;
|
|
227
|
-
script: string;
|
|
228
|
-
}[];
|
|
229
|
-
};
|
|
230
|
-
eventAdd: {
|
|
231
|
-
weight: number;
|
|
232
|
-
actions: {
|
|
233
|
-
componentId: string;
|
|
234
|
-
args: {};
|
|
235
|
-
actionType: string;
|
|
236
|
-
script: string;
|
|
237
|
-
}[];
|
|
238
|
-
};
|
|
239
|
-
eventChange: {
|
|
240
|
-
weight: number;
|
|
241
|
-
actions: ({
|
|
242
|
-
actionType: string;
|
|
243
|
-
args: {
|
|
244
|
-
api: {
|
|
245
|
-
method: string;
|
|
246
|
-
url: string;
|
|
247
|
-
data: {
|
|
248
|
-
query: string;
|
|
249
|
-
};
|
|
250
|
-
headers: {
|
|
251
|
-
Authorization: string;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
msgType?: undefined;
|
|
255
|
-
msg?: undefined;
|
|
256
|
-
position?: undefined;
|
|
257
|
-
messages?: undefined;
|
|
258
|
-
};
|
|
259
|
-
expression?: undefined;
|
|
260
|
-
} | {
|
|
261
|
-
actionType: string;
|
|
262
|
-
expression: string;
|
|
263
|
-
args: {
|
|
264
|
-
msgType: string;
|
|
265
|
-
msg: string;
|
|
266
|
-
position: string;
|
|
267
|
-
api?: undefined;
|
|
268
|
-
messages?: undefined;
|
|
269
|
-
};
|
|
270
|
-
} | {
|
|
271
|
-
actionType: string;
|
|
272
|
-
expression: string;
|
|
273
|
-
args: {
|
|
274
|
-
api: {
|
|
275
|
-
method: string;
|
|
276
|
-
url: string;
|
|
277
|
-
data: {
|
|
278
|
-
objectName: string;
|
|
279
|
-
$: {};
|
|
280
|
-
$self: string;
|
|
281
|
-
};
|
|
282
|
-
requestAdaptor: string;
|
|
283
|
-
adaptor: string;
|
|
284
|
-
headers: {
|
|
285
|
-
Authorization: string;
|
|
286
|
-
};
|
|
287
|
-
};
|
|
288
|
-
messages: {
|
|
289
|
-
success: string;
|
|
290
|
-
failed: string;
|
|
291
|
-
};
|
|
292
|
-
msgType?: undefined;
|
|
293
|
-
msg?: undefined;
|
|
294
|
-
position?: undefined;
|
|
295
|
-
};
|
|
296
|
-
})[];
|
|
297
|
-
};
|
|
298
|
-
eventRemove: {
|
|
299
|
-
weight: number;
|
|
300
|
-
actions: {
|
|
301
|
-
componentId: string;
|
|
302
|
-
args: {};
|
|
303
|
-
actionType: string;
|
|
304
|
-
script: string;
|
|
305
|
-
}[];
|
|
306
|
-
};
|
|
307
|
-
eventsSet: {
|
|
308
|
-
weight: number;
|
|
309
|
-
actions: {
|
|
310
|
-
componentId: string;
|
|
311
|
-
args: {};
|
|
312
|
-
actionType: string;
|
|
313
|
-
script: string;
|
|
314
|
-
}[];
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
};
|
|
189
|
+
amisSchema: any;
|
|
318
190
|
}>;
|
|
319
191
|
export function getRecordDetailHeaderSchema(objectName: any, recordId: any, options: any): Promise<{
|
|
320
192
|
uiSchema: any;
|
|
@@ -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.
|
|
4
|
+
"version": "1.1.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
|
"dependencies": {
|
|
60
60
|
"lodash": "^4.17.21"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "0e618339b9d23c8b90660bb3334db17637d324ab"
|
|
63
63
|
}
|