@steedos-widgets/amis-lib 1.2.8 → 1.2.9

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.
Files changed (25) hide show
  1. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  2. package/dist/index.cjs.js +1228 -753
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +1229 -755
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.umd.js +1228 -753
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/types/lib/buttons.d.ts +44 -1
  9. package/dist/types/lib/converter/amis/fields/index.d.ts +1 -0
  10. package/dist/types/lib/converter/amis/fields_filter.d.ts +3 -1
  11. package/dist/types/lib/converter/amis/header.d.ts +80 -5
  12. package/dist/types/lib/converter/amis/index.d.ts +1 -0
  13. package/dist/types/lib/converter/amis/toolbar.d.ts +3 -1
  14. package/dist/types/lib/converter/amis/toolbars/export_excel.d.ts +32 -0
  15. package/dist/types/lib/converter/amis/toolbars/setting_listview/columns.d.ts +83 -0
  16. package/dist/types/lib/converter/amis/toolbars/setting_listview/copy.d.ts +112 -0
  17. package/dist/types/lib/converter/amis/toolbars/setting_listview/delete.d.ts +43 -0
  18. package/dist/types/lib/converter/amis/toolbars/setting_listview/filters.d.ts +68 -0
  19. package/dist/types/lib/converter/amis/toolbars/setting_listview/new.d.ts +116 -0
  20. package/dist/types/lib/converter/amis/toolbars/setting_listview/rename.d.ts +47 -0
  21. package/dist/types/lib/converter/amis/toolbars/setting_listview/share.d.ts +34 -0
  22. package/dist/types/lib/converter/amis/toolbars/setting_listview/sort.d.ts +69 -0
  23. package/dist/types/lib/converter/amis/toolbars/setting_listview.d.ts +509 -0
  24. package/dist/types/lib/objects.d.ts +36 -2
  25. package/package.json +2 -2
@@ -0,0 +1,509 @@
1
+ export function getSettingListviewToolbarButtonSchema(): {
2
+ type: string;
3
+ trigger: string;
4
+ icon: string;
5
+ btnClassName: string;
6
+ align: string;
7
+ visibleOn: string;
8
+ buttons: {
9
+ label: string;
10
+ children: ({
11
+ type: string;
12
+ label: string;
13
+ onEvent: {
14
+ click: {
15
+ weight: number;
16
+ actions: {
17
+ dialog: {
18
+ type: string;
19
+ title: string;
20
+ data: {
21
+ "&": string;
22
+ all: string;
23
+ list_view: string;
24
+ appId: string;
25
+ global: string;
26
+ targetObjectName: string;
27
+ };
28
+ body: {
29
+ type: string;
30
+ label: string;
31
+ objectApiName: string;
32
+ recordId: string;
33
+ mode: string;
34
+ defaultData: {
35
+ "&": string;
36
+ name: string;
37
+ label: string;
38
+ filters: string;
39
+ shared: boolean;
40
+ };
41
+ fieldsExtend: {
42
+ label: {
43
+ is_wide: boolean;
44
+ };
45
+ name: {
46
+ amis: {
47
+ hidden: boolean;
48
+ };
49
+ };
50
+ object_name: {
51
+ amis: {
52
+ hidden: boolean;
53
+ };
54
+ };
55
+ filter_scope: {
56
+ amis: {
57
+ hidden: boolean;
58
+ };
59
+ };
60
+ columns: {
61
+ amis: {
62
+ hidden: boolean;
63
+ };
64
+ };
65
+ filter_fields: {
66
+ amis: {
67
+ hidden: boolean;
68
+ };
69
+ };
70
+ scrolling_mode: {
71
+ amis: {
72
+ hidden: boolean;
73
+ };
74
+ };
75
+ sort: {
76
+ amis: {
77
+ hidden: boolean;
78
+ };
79
+ };
80
+ show_count: {
81
+ amis: {
82
+ hidden: boolean;
83
+ };
84
+ };
85
+ type: {
86
+ amis: {
87
+ hidden: boolean;
88
+ };
89
+ };
90
+ shared: {
91
+ amis: {
92
+ visibleOn: string;
93
+ };
94
+ };
95
+ };
96
+ fields: string[];
97
+ onEvent: {
98
+ submitSucc: {
99
+ weight: number;
100
+ actions: {
101
+ args: {
102
+ url: string;
103
+ blank: boolean;
104
+ };
105
+ actionType: string;
106
+ }[];
107
+ };
108
+ };
109
+ messages: {
110
+ success: string;
111
+ failed: string;
112
+ };
113
+ }[];
114
+ showCloseButton: boolean;
115
+ showErrorMsg: boolean;
116
+ showLoading: boolean;
117
+ closeOnEsc: boolean;
118
+ dataMapSwitch: boolean;
119
+ size: string;
120
+ };
121
+ actionType: string;
122
+ }[];
123
+ };
124
+ };
125
+ } | {
126
+ type: string;
127
+ label: string;
128
+ onEvent: {
129
+ click: {
130
+ weight: number;
131
+ actions: {
132
+ dialog: {
133
+ type: string;
134
+ title: string;
135
+ data: {
136
+ "&": string;
137
+ listName: string;
138
+ targetObjectName: string;
139
+ list_view: string;
140
+ appId: string;
141
+ global: string;
142
+ };
143
+ body: {
144
+ type: string;
145
+ label: string;
146
+ objectApiName: string;
147
+ recordId: string;
148
+ mode: string;
149
+ defaultData: {
150
+ "&": string;
151
+ name: string;
152
+ label: string;
153
+ shared: boolean;
154
+ };
155
+ fieldsExtend: {
156
+ label: {
157
+ is_wide: boolean;
158
+ };
159
+ name: {
160
+ is_wide: boolean;
161
+ amis: {
162
+ hidden: boolean;
163
+ };
164
+ };
165
+ object_name: {
166
+ amis: {
167
+ hidden: boolean;
168
+ };
169
+ };
170
+ filter_scope: {
171
+ amis: {
172
+ hidden: boolean;
173
+ };
174
+ };
175
+ columns: {
176
+ amis: {
177
+ hidden: boolean;
178
+ };
179
+ };
180
+ filter_fields: {
181
+ amis: {
182
+ hidden: boolean;
183
+ };
184
+ };
185
+ scrolling_mode: {
186
+ amis: {
187
+ hidden: boolean;
188
+ };
189
+ };
190
+ sort: {
191
+ amis: {
192
+ hidden: boolean;
193
+ };
194
+ };
195
+ show_count: {
196
+ amis: {
197
+ hidden: boolean;
198
+ };
199
+ };
200
+ type: {
201
+ amis: {
202
+ hidden: boolean;
203
+ };
204
+ };
205
+ shared: {
206
+ amis: {
207
+ visibleOn: string;
208
+ };
209
+ };
210
+ };
211
+ fields: string[];
212
+ onEvent: {
213
+ submitSucc: {
214
+ weight: number;
215
+ actions: {
216
+ args: {
217
+ url: string;
218
+ blank: boolean;
219
+ };
220
+ actionType: string;
221
+ }[];
222
+ };
223
+ };
224
+ }[];
225
+ showCloseButton: boolean;
226
+ showErrorMsg: boolean;
227
+ showLoading: boolean;
228
+ closeOnEsc: boolean;
229
+ dataMapSwitch: boolean;
230
+ size: string;
231
+ };
232
+ actionType: string;
233
+ }[];
234
+ };
235
+ };
236
+ } | {
237
+ type: string;
238
+ label: string;
239
+ disabledOn: string;
240
+ onEvent: {
241
+ click: {
242
+ weight: number;
243
+ actions: {
244
+ dialog: {
245
+ type: string;
246
+ title: string;
247
+ data: {
248
+ targetObjectName: string;
249
+ recordId: string;
250
+ appId: string;
251
+ };
252
+ body: {
253
+ type: string;
254
+ label: string;
255
+ objectApiName: string;
256
+ recordId: string;
257
+ mode: string;
258
+ fields: string[];
259
+ fieldsExtend: string;
260
+ onEvent: {
261
+ submitSucc: {
262
+ weight: number;
263
+ actions: {
264
+ args: {
265
+ url: string;
266
+ blank: boolean;
267
+ };
268
+ actionType: string;
269
+ }[];
270
+ };
271
+ };
272
+ }[];
273
+ showCloseButton: boolean;
274
+ showErrorMsg: boolean;
275
+ showLoading: boolean;
276
+ size: string;
277
+ };
278
+ actionType: string;
279
+ }[];
280
+ };
281
+ };
282
+ } | {
283
+ type: string;
284
+ label: string;
285
+ disabledOn: string;
286
+ onEvent: {
287
+ click: {
288
+ weight: number;
289
+ actions: {
290
+ dialog: {
291
+ type: string;
292
+ title: string;
293
+ data: {
294
+ recordId: string;
295
+ };
296
+ body: {
297
+ type: string;
298
+ label: string;
299
+ objectApiName: string;
300
+ recordId: string;
301
+ mode: string;
302
+ fields: string[];
303
+ }[];
304
+ showCloseButton: boolean;
305
+ showErrorMsg: boolean;
306
+ showLoading: boolean;
307
+ closeOnEsc: boolean;
308
+ dataMapSwitch: boolean;
309
+ size: string;
310
+ };
311
+ actionType: string;
312
+ }[];
313
+ };
314
+ };
315
+ } | {
316
+ type: string;
317
+ label: string;
318
+ disabledOn: string;
319
+ onEvent: {
320
+ click: {
321
+ weight: number;
322
+ actions: {
323
+ args: {};
324
+ dialog: {
325
+ type: string;
326
+ title: string;
327
+ data: {
328
+ "&": string;
329
+ targetObjectName: string;
330
+ recordId: string;
331
+ listName: string;
332
+ appId: string;
333
+ };
334
+ body: {
335
+ type: string;
336
+ label: string;
337
+ objectApiName: string;
338
+ recordId: string;
339
+ mode: string;
340
+ fieldsExtend: {
341
+ columns: {
342
+ amis: {
343
+ type: string;
344
+ sortable: boolean;
345
+ searchable: boolean;
346
+ source: {
347
+ method: string;
348
+ url: string;
349
+ headers: {
350
+ Authorization: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ mobile_columns: {
356
+ group: string;
357
+ amis: {
358
+ type: string;
359
+ sortable: boolean;
360
+ searchable: boolean;
361
+ source: {
362
+ method: string;
363
+ url: string;
364
+ headers: {
365
+ Authorization: string;
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ initApiAdaptor: string;
372
+ apiRequestAdaptor: string;
373
+ fields: string[];
374
+ onEvent: {
375
+ submitSucc: {
376
+ weight: number;
377
+ actions: {
378
+ args: {
379
+ url: string;
380
+ blank: boolean;
381
+ };
382
+ actionType: string;
383
+ }[];
384
+ };
385
+ };
386
+ }[];
387
+ searchable: boolean;
388
+ showCloseButton: boolean;
389
+ showErrorMsg: boolean;
390
+ showLoading: boolean;
391
+ size: string;
392
+ };
393
+ actionType: string;
394
+ }[];
395
+ };
396
+ };
397
+ } | {
398
+ type: string;
399
+ label: string;
400
+ disabledOn: string;
401
+ onEvent: {
402
+ click: {
403
+ weight: number;
404
+ actions: {
405
+ dialog: {
406
+ type: string;
407
+ title: string;
408
+ data: {
409
+ "&": string;
410
+ targetObjectName: string;
411
+ recordId: string;
412
+ listName: string;
413
+ appId: string;
414
+ };
415
+ body: {
416
+ type: string;
417
+ label: string;
418
+ objectApiName: string;
419
+ recordId: string;
420
+ className: string;
421
+ id: string;
422
+ mode: string;
423
+ fields: string[];
424
+ onEvent: {
425
+ submitSucc: {
426
+ weight: number;
427
+ actions: {
428
+ args: {
429
+ url: string;
430
+ blank: boolean;
431
+ };
432
+ actionType: string;
433
+ }[];
434
+ };
435
+ };
436
+ fieldsExtend: {
437
+ sort: {
438
+ amis: {
439
+ type: string;
440
+ sortable: boolean;
441
+ searchable: boolean;
442
+ source: {
443
+ method: string;
444
+ url: string;
445
+ headers: {
446
+ Authorization: string;
447
+ };
448
+ };
449
+ };
450
+ };
451
+ };
452
+ initApiAdaptor: string;
453
+ apiRequestAdaptor: string;
454
+ }[];
455
+ showCloseButton: boolean;
456
+ showErrorMsg: boolean;
457
+ showLoading: boolean;
458
+ id: string;
459
+ size: string;
460
+ };
461
+ actionType: string;
462
+ }[];
463
+ };
464
+ };
465
+ } | {
466
+ type: string;
467
+ label: string;
468
+ disabledOn: string;
469
+ confirmText: string;
470
+ onEvent: {
471
+ click: {
472
+ actions: ({
473
+ actionType: string;
474
+ args: {
475
+ api: {
476
+ url: string;
477
+ method: string;
478
+ headers: {
479
+ Authorization: string;
480
+ };
481
+ data: {
482
+ "&": string;
483
+ uiSchema: string;
484
+ recordId: string;
485
+ };
486
+ messages: {
487
+ success: string;
488
+ };
489
+ requestAdaptor: string;
490
+ adaptor: string;
491
+ };
492
+ url?: undefined;
493
+ blank?: undefined;
494
+ };
495
+ expression?: undefined;
496
+ } | {
497
+ actionType: string;
498
+ args: {
499
+ url: string;
500
+ blank: boolean;
501
+ api?: undefined;
502
+ };
503
+ expression: string;
504
+ })[];
505
+ };
506
+ };
507
+ })[];
508
+ }[];
509
+ };
@@ -189,6 +189,7 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
189
189
  id: string;
190
190
  name: string;
191
191
  data: {
192
+ objectName: any;
192
193
  recordPermissions: any;
193
194
  uiSchema: any;
194
195
  };
@@ -221,11 +222,44 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
221
222
  body: {
222
223
  type: string;
223
224
  columns: ({
224
- body: {
225
+ body: ({
226
+ type: string;
227
+ onEvent: {
228
+ "@history_paths.changed": {
229
+ actions: {
230
+ actionType: string;
231
+ }[];
232
+ };
233
+ };
234
+ body: {
235
+ type: string;
236
+ visibleOn: string;
237
+ className: string;
238
+ onEvent: {
239
+ click: {
240
+ actions: {
241
+ actionType: string;
242
+ script: string;
243
+ }[];
244
+ };
245
+ };
246
+ body: {
247
+ type: string;
248
+ category: string;
249
+ name: string;
250
+ colorVariant: string;
251
+ className: string;
252
+ }[];
253
+ }[];
254
+ className?: undefined;
255
+ tpl?: undefined;
256
+ } | {
225
257
  type: string;
226
258
  className: string;
227
259
  tpl: string;
228
- };
260
+ onEvent?: undefined;
261
+ body?: undefined;
262
+ })[];
229
263
  md: string;
230
264
  className: string;
231
265
  columnClassName: 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.2.8",
4
+ "version": "1.2.9",
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": "b985590e8f2b8f2f9f4dac303f1be8de9609a1e4"
62
+ "gitHead": "f8fdc093d7a77269248f49c156603c00a851dfe1"
63
63
  }