@steedos-widgets/amis-lib 1.1.0 → 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 +156 -142
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +156 -142
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +156 -142
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/calendar.d.ts +1 -147
- package/dist/types/lib/objects.d.ts +1 -147
- package/package.json +2 -2
|
@@ -41,153 +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
|
-
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
|
-
};
|
|
189
|
-
};
|
|
190
|
-
}>;
|
|
44
|
+
export function getObjectCalendar(objectSchema: any, calendarOptions: any, options: any): Promise<any>;
|
|
191
45
|
export namespace DEFAULT_CALENDAR_OPTIONS {
|
|
192
46
|
const startDateExpr: string;
|
|
193
47
|
const endDateExpr: string;
|
|
@@ -186,153 +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
|
-
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
|
-
};
|
|
334
|
-
};
|
|
335
|
-
};
|
|
189
|
+
amisSchema: any;
|
|
336
190
|
}>;
|
|
337
191
|
export function getRecordDetailHeaderSchema(objectName: any, recordId: any, options: any): Promise<{
|
|
338
192
|
uiSchema: any;
|
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
|
}
|