@steedos-widgets/amis-lib 1.0.0-beta.30 → 1.0.0-beta.31

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.
@@ -25,11 +25,6 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
25
25
  inline: boolean;
26
26
  wrapperComponent: string;
27
27
  className: string;
28
- style: {
29
- fontFamily: string;
30
- fontSize: number;
31
- fontWeight: string;
32
- };
33
28
  label?: undefined;
34
29
  rightIcon?: undefined;
35
30
  size?: undefined;
@@ -48,7 +43,6 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
48
43
  tpl?: undefined;
49
44
  inline?: undefined;
50
45
  wrapperComponent?: undefined;
51
- style?: undefined;
52
46
  })[];
53
47
  md: string;
54
48
  valign: string;
@@ -60,15 +54,298 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
60
54
  } | {
61
55
  body: {
62
56
  type: string;
63
- name: any;
64
- objectName: any;
65
- visibleOn: any;
66
- className: string;
67
- }[];
57
+ items: {
58
+ type: string;
59
+ name: any;
60
+ objectName: any;
61
+ visibleOn: any;
62
+ className: string;
63
+ }[];
64
+ };
68
65
  md: string;
69
66
  })[];
70
67
  align: string;
71
68
  };
69
+ /**
70
+ * 列表视图顶部第二行amisSchema
71
+ * @param {*} objectSchema 对象UISchema
72
+ * @returns amisSchema
73
+ */
74
+ export function getObjectListHeaderSecordLine(objectSchema: any, listViewName: any, ctx: any): Promise<{
75
+ type: string;
76
+ align: string;
77
+ columns: ({
78
+ body: {
79
+ type: string;
80
+ tpl: string;
81
+ visibleOn: string;
82
+ inline: boolean;
83
+ wrapperComponent: string;
84
+ className: string;
85
+ style: {
86
+ fontFamily: string;
87
+ fontSize: number;
88
+ };
89
+ id: string;
90
+ }[];
91
+ md: string;
92
+ valign: string;
93
+ } | {
94
+ body: ({
95
+ type: string;
96
+ label: string;
97
+ icon: string;
98
+ className: string;
99
+ onEvent: {
100
+ click: {
101
+ actions: {
102
+ actionType: string;
103
+ args: {
104
+ value: {
105
+ showFieldsFilter: string;
106
+ };
107
+ };
108
+ componentId: string;
109
+ }[];
110
+ };
111
+ };
112
+ } | {
113
+ type: string;
114
+ label: string;
115
+ icon: string;
116
+ actionType: string;
117
+ target: string;
118
+ className: string;
119
+ })[];
120
+ md: string;
121
+ valign?: undefined;
122
+ })[];
123
+ className: string;
124
+ }>;
125
+ /**
126
+ * 列表视图顶部放大镜过滤条件栏amisSchema
127
+ * @param {*} objectSchema 对象UISchema
128
+ * @returns amisSchema
129
+ */
130
+ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewName: any, ctx: any): Promise<{
131
+ type: string;
132
+ data: {
133
+ listViewId: string;
134
+ };
135
+ id: string;
136
+ dataProvider: {
137
+ inited: string;
138
+ };
139
+ body: {
140
+ type: string;
141
+ body: {
142
+ type: string;
143
+ body: ({
144
+ type: string;
145
+ body: {
146
+ title: string;
147
+ type: string;
148
+ name: string;
149
+ id: string;
150
+ mode: string;
151
+ wrapWithPanel: boolean;
152
+ className: string;
153
+ data: any;
154
+ body: ({
155
+ name: any;
156
+ label: any;
157
+ labelRemark: any;
158
+ required: any;
159
+ } & {
160
+ type: any;
161
+ tpl: string;
162
+ value: string | number | boolean;
163
+ multiple: boolean;
164
+ extractValue: boolean;
165
+ className: any;
166
+ labelClassName: string;
167
+ quickEdit: boolean;
168
+ visibleOn: string;
169
+ } & {
170
+ clearValueOnHidden: boolean;
171
+ fieldName: any;
172
+ })[];
173
+ onEvent: {
174
+ broadcastSearchableFieldsChange: {
175
+ actions: {
176
+ actionType: string;
177
+ script: string;
178
+ }[];
179
+ };
180
+ };
181
+ }[];
182
+ size: string;
183
+ visibleOn: string;
184
+ className: string;
185
+ } | {
186
+ type: string;
187
+ body: {
188
+ type: string;
189
+ body: ({
190
+ type: string;
191
+ label: string;
192
+ icon: string;
193
+ visibleOn: string;
194
+ onEvent: {
195
+ click: {
196
+ actions: {
197
+ actionType: string;
198
+ script: string;
199
+ }[];
200
+ };
201
+ };
202
+ id?: undefined;
203
+ level?: undefined;
204
+ } | {
205
+ type: string;
206
+ label: string;
207
+ onEvent: {
208
+ click: {
209
+ actions: {
210
+ actionType: string;
211
+ dialog: {
212
+ type: string;
213
+ size: string;
214
+ title: string;
215
+ body: {
216
+ type: string;
217
+ title: string;
218
+ body: {
219
+ label: string;
220
+ type: string;
221
+ name: string;
222
+ id: string;
223
+ source: {
224
+ method: string;
225
+ url: string; /**
226
+ * 记录详细界面顶部头amisSchema,也是标题面板组件的amisSchema
227
+ * @param {*} objectSchema 对象UISchema
228
+ * @param {*} recordId 记录id
229
+ * @returns amisSchema
230
+ */
231
+ dataType: string;
232
+ headers: {
233
+ Authorization: string;
234
+ };
235
+ data: any;
236
+ requestAdaptor: string;
237
+ adaptor: string;
238
+ };
239
+ options: any[];
240
+ required: boolean;
241
+ placeholder: string;
242
+ className: string;
243
+ checkAll: boolean;
244
+ searchable: boolean;
245
+ sortable: boolean;
246
+ joinValues: boolean;
247
+ extractValue: boolean;
248
+ multiple: boolean;
249
+ }[];
250
+ id: string;
251
+ mode: string;
252
+ persistData: boolean;
253
+ promptPageLeave: boolean;
254
+ name: string;
255
+ debug: boolean;
256
+ actions: any[];
257
+ panelClassName: string;
258
+ bodyClassName: string;
259
+ className: string;
260
+ }[];
261
+ id: string;
262
+ actions: ({
263
+ type: string;
264
+ label: string;
265
+ onEvent: {
266
+ click: {
267
+ actions: {
268
+ componentId: string;
269
+ args: {};
270
+ actionType: string;
271
+ }[];
272
+ };
273
+ };
274
+ id: string;
275
+ level?: undefined;
276
+ } | {
277
+ type: string;
278
+ label: string;
279
+ onEvent: {
280
+ click: {
281
+ actions: ({
282
+ actionType: string;
283
+ script: string;
284
+ eventName?: undefined;
285
+ args?: undefined;
286
+ data?: undefined;
287
+ componentId?: undefined;
288
+ } | {
289
+ actionType: string;
290
+ eventName: string;
291
+ args: {
292
+ eventName: string;
293
+ };
294
+ data: {
295
+ fields: string;
296
+ };
297
+ script?: undefined;
298
+ componentId?: undefined;
299
+ } | {
300
+ componentId: string;
301
+ args: {
302
+ eventName?: undefined;
303
+ };
304
+ actionType: string;
305
+ script?: undefined;
306
+ eventName?: undefined;
307
+ data?: undefined;
308
+ })[];
309
+ };
310
+ };
311
+ id: string;
312
+ level: string;
313
+ })[];
314
+ closeOnEsc: boolean;
315
+ closeOnOutside: boolean;
316
+ showCloseButton: boolean;
317
+ data: {
318
+ "&": string;
319
+ objectName: string;
320
+ listName: string;
321
+ context: string;
322
+ fields: string;
323
+ };
324
+ };
325
+ }[];
326
+ };
327
+ };
328
+ id: string;
329
+ level: string;
330
+ icon?: undefined;
331
+ visibleOn?: undefined;
332
+ })[];
333
+ size: string;
334
+ className: string;
335
+ };
336
+ size: string;
337
+ className: string;
338
+ visibleOn?: undefined;
339
+ })[];
340
+ size: string;
341
+ className: string;
342
+ };
343
+ size: string;
344
+ className: string;
345
+ };
346
+ visibleOn: string;
347
+ className: string;
348
+ }>;
72
349
  /**
73
350
  * 列表视图顶部amisSchema
74
351
  * @param {*} objectSchema 对象UISchema
@@ -98,11 +375,6 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
98
375
  inline: boolean;
99
376
  wrapperComponent: string;
100
377
  className: string;
101
- style: {
102
- fontFamily: string;
103
- fontSize: number;
104
- fontWeight: string;
105
- };
106
378
  label?: undefined;
107
379
  rightIcon?: undefined;
108
380
  size?: undefined;
@@ -121,7 +393,6 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
121
393
  tpl?: undefined;
122
394
  inline?: undefined;
123
395
  wrapperComponent?: undefined;
124
- style?: undefined;
125
396
  })[];
126
397
  md: string;
127
398
  valign: string;
@@ -133,11 +404,14 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
133
404
  } | {
134
405
  body: {
135
406
  type: string;
136
- name: any;
137
- objectName: any;
138
- visibleOn: any;
139
- className: string;
140
- }[];
407
+ items: {
408
+ type: string;
409
+ name: any;
410
+ objectName: any;
411
+ visibleOn: any;
412
+ className: string;
413
+ }[];
414
+ };
141
415
  md: string;
142
416
  })[];
143
417
  align: string;
@@ -272,11 +546,14 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any): P
272
546
  } | {
273
547
  body: {
274
548
  type: string;
275
- name: any;
276
- objectName: any;
277
- visibleOn: any;
278
- className: string;
279
- }[];
549
+ items: {
550
+ type: string;
551
+ name: any;
552
+ objectName: any;
553
+ visibleOn: any;
554
+ className: string;
555
+ }[];
556
+ };
280
557
  md: string;
281
558
  })[];
282
559
  align: string;
@@ -335,11 +612,14 @@ export function getObjectRecordDetailRelatedListHeader(relatedObjectSchema: any)
335
612
  } | {
336
613
  body: {
337
614
  type: string;
338
- name: any;
339
- objectName: any;
340
- visibleOn: any;
341
- className: string;
342
- }[];
615
+ items: {
616
+ type: string;
617
+ name: any;
618
+ objectName: any;
619
+ visibleOn: any;
620
+ className: string;
621
+ }[];
622
+ };
343
623
  md: string;
344
624
  })[];
345
625
  align: string;
@@ -227,11 +227,14 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any): Pro
227
227
  } | {
228
228
  body: {
229
229
  type: string;
230
- name: any;
231
- objectName: any;
232
- visibleOn: any;
233
- className: string;
234
- }[];
230
+ items: {
231
+ type: string;
232
+ name: any;
233
+ objectName: any;
234
+ visibleOn: any;
235
+ className: string;
236
+ }[];
237
+ };
235
238
  md: string;
236
239
  })[];
237
240
  align: string;
@@ -57,11 +57,6 @@ export function getListPageInitSchema(objectApiName: any, formFactor: any, userS
57
57
  inline: boolean;
58
58
  wrapperComponent: string;
59
59
  className: string;
60
- style: {
61
- fontFamily: string;
62
- fontSize: number;
63
- fontWeight: string;
64
- };
65
60
  label?: undefined;
66
61
  rightIcon?: undefined;
67
62
  size?: undefined;
@@ -80,7 +75,6 @@ export function getListPageInitSchema(objectApiName: any, formFactor: any, userS
80
75
  tpl?: undefined;
81
76
  inline?: undefined;
82
77
  wrapperComponent?: undefined;
83
- style?: undefined;
84
78
  })[];
85
79
  md: string;
86
80
  valign: string;
@@ -92,11 +86,14 @@ export function getListPageInitSchema(objectApiName: any, formFactor: any, userS
92
86
  } | {
93
87
  body: {
94
88
  type: string;
95
- name: any;
96
- objectName: any;
97
- visibleOn: any;
98
- className: string;
99
- }[];
89
+ items: {
90
+ type: string;
91
+ name: any;
92
+ objectName: any;
93
+ visibleOn: any;
94
+ className: string;
95
+ }[];
96
+ };
100
97
  md: string;
101
98
  })[];
102
99
  align: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.0.0-beta.30",
4
+ "version": "1.0.0-beta.31",
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": "c41242d76a6b4b7f51001d55d71c93ea674fcde2"
62
+ "gitHead": "c265e7c0cda7e89e1c0b9b2f733b10958e6fa968"
63
63
  }