@steedos-widgets/amis-lib 1.1.2 → 1.1.3-beta.7

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.
@@ -41,7 +41,153 @@ 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<any>;
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
+ }>;
45
191
  export namespace DEFAULT_CALENDAR_OPTIONS {
46
192
  const startDateExpr: string;
47
193
  const endDateExpr: string;
@@ -186,7 +186,153 @@ 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: 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
+ };
190
336
  }>;
191
337
  export function getRecordDetailHeaderSchema(objectName: any, recordId: any, options: any): Promise<{
192
338
  uiSchema: any;
@@ -31,7 +31,6 @@ export function getSchema(uiSchema: any): {
31
31
  };
32
32
  actionType: string;
33
33
  data?: undefined;
34
- expression?: undefined;
35
34
  } | {
36
35
  actionType: string;
37
36
  args: {
@@ -43,19 +42,6 @@ export function getSchema(uiSchema: any): {
43
42
  objectName: string;
44
43
  __deletedRecord: boolean;
45
44
  };
46
- expression?: undefined;
47
- } | {
48
- actionType: string;
49
- args: {
50
- eventName: string;
51
- api?: undefined;
52
- messages?: undefined;
53
- };
54
- data: {
55
- objectName: string;
56
- __deletedRecord?: undefined;
57
- };
58
- expression: string;
59
45
  })[];
60
46
  };
61
47
  };
@@ -10,10 +10,6 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
10
10
  actionType: string;
11
11
  dialog: {
12
12
  type: string;
13
- data: {
14
- "&": string;
15
- $master: string;
16
- };
17
13
  title: string;
18
14
  bodyClassName: string;
19
15
  body: {
@@ -75,10 +75,6 @@ export namespace StandardButtons {
75
75
  actionType: string;
76
76
  dialog: {
77
77
  type: string;
78
- data: {
79
- "&": string;
80
- $master: string;
81
- };
82
78
  title: string;
83
79
  bodyClassName: string;
84
80
  body: {
@@ -140,7 +136,6 @@ export namespace StandardButtons {
140
136
  };
141
137
  actionType: string;
142
138
  data?: undefined;
143
- expression?: undefined;
144
139
  } | {
145
140
  actionType: string;
146
141
  args: {
@@ -152,19 +147,6 @@ export namespace StandardButtons {
152
147
  objectName: string;
153
148
  __deletedRecord: boolean;
154
149
  };
155
- expression?: undefined;
156
- } | {
157
- actionType: string;
158
- args: {
159
- eventName: string;
160
- api?: undefined;
161
- messages?: undefined;
162
- };
163
- data: {
164
- objectName: string;
165
- __deletedRecord?: undefined;
166
- };
167
- expression: string;
168
150
  })[];
169
151
  };
170
152
  };
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.2",
4
+ "version": "1.1.3-beta.7",
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": "ffb730e16642eb8e7a7ae5d98d0773c42482e7d2"
62
+ "gitHead": "d03f9847560e20a6a9207242b7bc76c11e03fbff"
63
63
  }