@steedos-widgets/ag-grid 6.3.12-beta.9 → 6.10.1-beta.8

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 (37) hide show
  1. package/dist/ag-grid.umd.css +2 -2
  2. package/dist/ag-grid.umd.js +1 -1
  3. package/dist/amis/AirtableGrid/AirtableGrid.d.ts +11 -0
  4. package/dist/amis/AirtableGrid/DataSource.d.ts +17 -0
  5. package/dist/amis/AirtableGrid/gridOptions.d.ts +497 -0
  6. package/dist/amis/AirtableGrid/index.d.ts +3 -0
  7. package/dist/amis/{TablesGrid.d.ts → TablesGrid/TablesGrid.d.ts} +0 -1
  8. package/dist/amis/TablesGrid/dataSource.d.ts +8 -0
  9. package/dist/amis/TablesGrid/fieldsAdmin.d.ts +612 -0
  10. package/dist/amis/TablesGrid/index.d.ts +1 -0
  11. package/dist/amis/TablesGrid/tables.d.ts +30 -0
  12. package/dist/amis/cellEditor/datetime.d.ts +15 -0
  13. package/dist/amis/cellEditor/index.d.ts +2 -0
  14. package/dist/amis/cellEditor/multiSelect.d.ts +15 -0
  15. package/dist/amis/index.d.ts +1 -0
  16. package/dist/assets.json +5 -5
  17. package/dist/components/AgGrid.d.ts +2 -2
  18. package/dist/meta.js +98 -21
  19. package/dist/metas/AmisAirtableGrid.d.ts +2 -0
  20. package/dist/types/amis/AirtableGrid/AirtableGrid.d.ts +11 -0
  21. package/dist/types/amis/AirtableGrid/DataSource.d.ts +17 -0
  22. package/dist/types/amis/AirtableGrid/gridOptions.d.ts +497 -0
  23. package/dist/types/amis/AirtableGrid/index.d.ts +3 -0
  24. package/dist/types/amis/{TablesGrid.d.ts → TablesGrid/TablesGrid.d.ts} +0 -1
  25. package/dist/types/amis/TablesGrid/dataSource.d.ts +8 -0
  26. package/dist/types/amis/TablesGrid/fieldsAdmin.d.ts +612 -0
  27. package/dist/types/amis/TablesGrid/index.d.ts +1 -0
  28. package/dist/types/amis/TablesGrid/tables.d.ts +30 -0
  29. package/dist/types/amis/cellEditor/datetime.d.ts +15 -0
  30. package/dist/types/amis/cellEditor/index.d.ts +2 -0
  31. package/dist/types/amis/cellEditor/multiSelect.d.ts +15 -0
  32. package/dist/types/amis/index.d.ts +1 -0
  33. package/dist/types/components/AgGrid.d.ts +2 -2
  34. package/dist/types/metas/AmisAirtableGrid.d.ts +2 -0
  35. package/package.json +3 -3
  36. package/dist/amis/tables.d.ts +0 -248
  37. package/dist/types/amis/tables.d.ts +0 -248
@@ -0,0 +1,612 @@
1
+ export declare function getVerificationSetActions(tableId: string): {
2
+ ignoreError: boolean;
3
+ actionType: string;
4
+ dialog: {
5
+ type: string;
6
+ title: string;
7
+ body: ({
8
+ type: string;
9
+ id: string;
10
+ buttons: {
11
+ type: string;
12
+ label: string;
13
+ onEvent: {
14
+ click: {
15
+ actions: {
16
+ ignoreError: boolean;
17
+ actionType: string;
18
+ dialog: {
19
+ type: string;
20
+ title: string;
21
+ size: string;
22
+ body: {
23
+ type: string;
24
+ body: any[];
25
+ api: {
26
+ url: string;
27
+ method: string;
28
+ requestAdaptor: string;
29
+ adaptor: string;
30
+ headers: {
31
+ Authorization: string;
32
+ };
33
+ messages: {};
34
+ data: {};
35
+ };
36
+ data: {
37
+ _formulaVariablesLoaded: boolean;
38
+ };
39
+ };
40
+ actionType: string;
41
+ actions: ({
42
+ type: string;
43
+ actionType: string;
44
+ label: string;
45
+ primary?: undefined;
46
+ } | {
47
+ type: string;
48
+ actionType: string;
49
+ label: string;
50
+ primary: boolean;
51
+ })[];
52
+ showCloseButton: boolean;
53
+ closeOnOutside: boolean;
54
+ closeOnEsc: boolean;
55
+ showErrorMsg: boolean;
56
+ showLoading: boolean;
57
+ draggable: boolean;
58
+ };
59
+ size: string;
60
+ }[];
61
+ };
62
+ };
63
+ id: string;
64
+ level: string;
65
+ }[];
66
+ hideQuickSaveBtn?: undefined;
67
+ syncLocation?: undefined;
68
+ api?: undefined;
69
+ bulkActions?: undefined;
70
+ columns?: undefined;
71
+ perPageAvailable?: undefined;
72
+ messages?: undefined;
73
+ primaryField?: undefined;
74
+ filter?: undefined;
75
+ perPageField?: undefined;
76
+ } | {
77
+ type: string;
78
+ hideQuickSaveBtn: boolean;
79
+ syncLocation: boolean;
80
+ api: {
81
+ method: string;
82
+ url: string;
83
+ messages: {};
84
+ requestAdaptor: string;
85
+ adaptor: string;
86
+ headers: {
87
+ Authorization: string;
88
+ };
89
+ };
90
+ bulkActions: any[];
91
+ columns: ({
92
+ name: string;
93
+ label: string;
94
+ type: string;
95
+ hidden: boolean;
96
+ id: string;
97
+ sortable?: undefined;
98
+ width?: undefined;
99
+ fixed?: undefined;
100
+ buttons?: undefined;
101
+ placeholder?: undefined;
102
+ } | {
103
+ name: string;
104
+ label: string;
105
+ sortable: boolean;
106
+ type: string;
107
+ id: string;
108
+ hidden?: undefined;
109
+ width?: undefined;
110
+ fixed?: undefined;
111
+ buttons?: undefined;
112
+ placeholder?: undefined;
113
+ } | {
114
+ type: string;
115
+ label: string;
116
+ width: number;
117
+ fixed: string;
118
+ buttons: ({
119
+ type: string;
120
+ icon: string;
121
+ actionType: string;
122
+ dialog: {
123
+ type: string;
124
+ title: string;
125
+ size: string;
126
+ body: {
127
+ type: string;
128
+ body: any[];
129
+ api: {
130
+ url: string;
131
+ method: string;
132
+ requestAdaptor: string;
133
+ adaptor: string;
134
+ headers: {
135
+ Authorization: string;
136
+ };
137
+ messages: {};
138
+ data: {};
139
+ };
140
+ data: {
141
+ _formulaVariablesLoaded: boolean;
142
+ };
143
+ };
144
+ actionType: string;
145
+ actions: ({
146
+ type: string;
147
+ actionType: string;
148
+ label: string;
149
+ primary?: undefined;
150
+ } | {
151
+ type: string;
152
+ actionType: string;
153
+ label: string;
154
+ primary: boolean;
155
+ })[];
156
+ showCloseButton: boolean;
157
+ closeOnOutside: boolean;
158
+ closeOnEsc: boolean;
159
+ showErrorMsg: boolean;
160
+ showLoading: boolean;
161
+ draggable: boolean;
162
+ };
163
+ confirmText?: undefined;
164
+ onEvent?: undefined;
165
+ id?: undefined;
166
+ } | {
167
+ type: string;
168
+ icon: string;
169
+ confirmText: string;
170
+ onEvent: {
171
+ click: {
172
+ weight: number;
173
+ actions: ({
174
+ ignoreError: boolean;
175
+ actionType: string;
176
+ outputVar: string;
177
+ options: {};
178
+ api: {
179
+ url: string;
180
+ method: string;
181
+ requestAdaptor: string;
182
+ adaptor: string;
183
+ headers: {
184
+ Authorization: string;
185
+ };
186
+ messages: {};
187
+ };
188
+ componentId?: undefined;
189
+ groupType?: undefined;
190
+ } | {
191
+ componentId: string;
192
+ groupType: string;
193
+ actionType: string;
194
+ ignoreError?: undefined;
195
+ outputVar?: undefined;
196
+ options?: undefined;
197
+ api?: undefined;
198
+ })[];
199
+ };
200
+ };
201
+ id: string;
202
+ actionType?: undefined;
203
+ dialog?: undefined;
204
+ })[];
205
+ id: string;
206
+ placeholder: string;
207
+ name?: undefined;
208
+ hidden?: undefined;
209
+ sortable?: undefined;
210
+ })[];
211
+ id: string;
212
+ perPageAvailable: number[];
213
+ messages: {};
214
+ primaryField: string;
215
+ filter: any;
216
+ perPageField: string;
217
+ buttons?: undefined;
218
+ })[];
219
+ id: string;
220
+ data: {
221
+ _crud_conditions: {};
222
+ filters: any[];
223
+ _crud_ordering: boolean;
224
+ _master: string;
225
+ context: string;
226
+ };
227
+ actions: {
228
+ type: string;
229
+ actionType: string;
230
+ label: string;
231
+ primary: boolean;
232
+ id: string;
233
+ }[];
234
+ showCloseButton: boolean;
235
+ closeOnOutside: boolean;
236
+ closeOnEsc: boolean;
237
+ showErrorMsg: boolean;
238
+ showLoading: boolean;
239
+ draggable: boolean;
240
+ actionType: string;
241
+ size: string;
242
+ onEvent: {
243
+ confirm: {
244
+ actions: {
245
+ actionType: string;
246
+ script: string;
247
+ }[];
248
+ };
249
+ };
250
+ };
251
+ }[];
252
+ export declare function getTableAdminEvents(tableId: string): {
253
+ [x: string]: {
254
+ actions: {
255
+ actionType: string;
256
+ dialog: {
257
+ type: string;
258
+ title: string;
259
+ size: string;
260
+ body: {
261
+ type: string;
262
+ body: any[];
263
+ api: {
264
+ url: string;
265
+ method: string;
266
+ requestAdaptor: string;
267
+ adaptor: string;
268
+ headers: {
269
+ Authorization: string;
270
+ };
271
+ messages: {};
272
+ data: {};
273
+ };
274
+ data: {
275
+ _formulaVariablesLoaded: boolean;
276
+ };
277
+ };
278
+ actionType: string;
279
+ actions: ({
280
+ type: string;
281
+ actionType: string;
282
+ label: string;
283
+ id: string;
284
+ primary?: undefined;
285
+ } | {
286
+ type: string;
287
+ actionType: string;
288
+ label: string;
289
+ primary: boolean;
290
+ id: string;
291
+ })[];
292
+ showCloseButton: boolean;
293
+ closeOnOutside: boolean;
294
+ closeOnEsc: boolean;
295
+ showErrorMsg: boolean;
296
+ showLoading: boolean;
297
+ draggable: boolean;
298
+ };
299
+ }[];
300
+ } | {
301
+ actions: ({
302
+ actionType: string;
303
+ dialog: {
304
+ title: string;
305
+ msg: string;
306
+ };
307
+ ignoreError?: undefined;
308
+ options?: undefined;
309
+ api?: undefined;
310
+ script?: undefined;
311
+ } | {
312
+ ignoreError: boolean;
313
+ actionType: string;
314
+ options: {};
315
+ api: {
316
+ url: string;
317
+ method: string;
318
+ headers: {
319
+ Authorization: string;
320
+ };
321
+ requestAdaptor: string;
322
+ adaptor: string;
323
+ messages: {
324
+ success: string;
325
+ failed: string;
326
+ };
327
+ };
328
+ dialog?: undefined;
329
+ script?: undefined;
330
+ } | {
331
+ actionType: string;
332
+ script: string;
333
+ dialog?: undefined;
334
+ ignoreError?: undefined;
335
+ options?: undefined;
336
+ api?: undefined;
337
+ })[];
338
+ } | {
339
+ actions: {
340
+ ignoreError: boolean;
341
+ actionType: string;
342
+ outputVar: string;
343
+ options: {};
344
+ api: {
345
+ url: string;
346
+ method: string;
347
+ data: {
348
+ fields: string;
349
+ };
350
+ headers: {
351
+ Authorization: string;
352
+ };
353
+ adaptor: string;
354
+ messages: {
355
+ failed: string;
356
+ };
357
+ };
358
+ }[];
359
+ } | {
360
+ actions: {
361
+ ignoreError: boolean;
362
+ actionType: string;
363
+ dialog: {
364
+ type: string;
365
+ title: string;
366
+ body: ({
367
+ type: string;
368
+ id: string;
369
+ buttons: {
370
+ type: string;
371
+ label: string;
372
+ onEvent: {
373
+ click: {
374
+ actions: {
375
+ ignoreError: boolean;
376
+ actionType: string;
377
+ dialog: {
378
+ type: string;
379
+ title: string;
380
+ size: string;
381
+ body: {
382
+ type: string;
383
+ body: any[];
384
+ api: {
385
+ url: string;
386
+ method: string;
387
+ requestAdaptor: string;
388
+ adaptor: string;
389
+ headers: {
390
+ Authorization: string;
391
+ };
392
+ messages: {};
393
+ data: {};
394
+ };
395
+ data: {
396
+ _formulaVariablesLoaded: boolean;
397
+ };
398
+ };
399
+ actionType: string;
400
+ actions: ({
401
+ type: string;
402
+ actionType: string;
403
+ label: string;
404
+ primary?: undefined;
405
+ } | {
406
+ type: string;
407
+ actionType: string;
408
+ label: string;
409
+ primary: boolean;
410
+ })[];
411
+ showCloseButton: boolean;
412
+ closeOnOutside: boolean;
413
+ closeOnEsc: boolean;
414
+ showErrorMsg: boolean;
415
+ showLoading: boolean;
416
+ draggable: boolean;
417
+ };
418
+ size: string;
419
+ }[];
420
+ };
421
+ };
422
+ id: string;
423
+ level: string;
424
+ }[];
425
+ hideQuickSaveBtn?: undefined;
426
+ syncLocation?: undefined;
427
+ api?: undefined;
428
+ bulkActions?: undefined;
429
+ columns?: undefined;
430
+ perPageAvailable?: undefined;
431
+ messages?: undefined;
432
+ primaryField?: undefined;
433
+ filter?: undefined;
434
+ perPageField?: undefined;
435
+ } | {
436
+ type: string;
437
+ hideQuickSaveBtn: boolean;
438
+ syncLocation: boolean;
439
+ api: {
440
+ method: string;
441
+ url: string;
442
+ messages: {};
443
+ requestAdaptor: string;
444
+ adaptor: string;
445
+ headers: {
446
+ Authorization: string;
447
+ };
448
+ };
449
+ bulkActions: any[];
450
+ columns: ({
451
+ name: string;
452
+ label: string;
453
+ type: string;
454
+ hidden: boolean;
455
+ id: string;
456
+ sortable?: undefined;
457
+ width?: undefined;
458
+ fixed?: undefined;
459
+ buttons?: undefined;
460
+ placeholder?: undefined;
461
+ } | {
462
+ name: string;
463
+ label: string;
464
+ sortable: boolean;
465
+ type: string;
466
+ id: string;
467
+ hidden?: undefined;
468
+ width?: undefined;
469
+ fixed?: undefined;
470
+ buttons?: undefined;
471
+ placeholder?: undefined;
472
+ } | {
473
+ type: string;
474
+ label: string;
475
+ width: number;
476
+ fixed: string;
477
+ buttons: ({
478
+ type: string;
479
+ icon: string;
480
+ actionType: string;
481
+ dialog: {
482
+ type: string;
483
+ title: string;
484
+ size: string;
485
+ body: {
486
+ type: string;
487
+ body: any[];
488
+ api: {
489
+ url: string;
490
+ method: string;
491
+ requestAdaptor: string;
492
+ adaptor: string;
493
+ headers: {
494
+ Authorization: string;
495
+ };
496
+ messages: {};
497
+ data: {};
498
+ };
499
+ data: {
500
+ _formulaVariablesLoaded: boolean;
501
+ };
502
+ };
503
+ actionType: string;
504
+ actions: ({
505
+ type: string;
506
+ actionType: string;
507
+ label: string;
508
+ primary?: undefined;
509
+ } | {
510
+ type: string;
511
+ actionType: string;
512
+ label: string;
513
+ primary: boolean;
514
+ })[];
515
+ showCloseButton: boolean;
516
+ closeOnOutside: boolean;
517
+ closeOnEsc: boolean;
518
+ showErrorMsg: boolean;
519
+ showLoading: boolean;
520
+ draggable: boolean;
521
+ };
522
+ confirmText?: undefined;
523
+ onEvent?: undefined;
524
+ id?: undefined;
525
+ } | {
526
+ type: string;
527
+ icon: string;
528
+ confirmText: string;
529
+ onEvent: {
530
+ click: {
531
+ weight: number;
532
+ actions: ({
533
+ ignoreError: boolean;
534
+ actionType: string;
535
+ outputVar: string;
536
+ options: {};
537
+ api: {
538
+ url: string;
539
+ method: string;
540
+ requestAdaptor: string;
541
+ adaptor: string;
542
+ headers: {
543
+ Authorization: string;
544
+ };
545
+ messages: {};
546
+ };
547
+ componentId?: undefined;
548
+ groupType?: undefined;
549
+ } | {
550
+ componentId: string;
551
+ groupType: string;
552
+ actionType: string;
553
+ ignoreError?: undefined;
554
+ outputVar?: undefined;
555
+ options?: undefined;
556
+ api?: undefined;
557
+ })[];
558
+ };
559
+ };
560
+ id: string;
561
+ actionType?: undefined;
562
+ dialog?: undefined;
563
+ })[];
564
+ id: string;
565
+ placeholder: string;
566
+ name?: undefined;
567
+ hidden?: undefined;
568
+ sortable?: undefined;
569
+ })[];
570
+ id: string;
571
+ perPageAvailable: number[];
572
+ messages: {};
573
+ primaryField: string;
574
+ filter: any;
575
+ perPageField: string;
576
+ buttons?: undefined;
577
+ })[];
578
+ id: string;
579
+ data: {
580
+ _crud_conditions: {};
581
+ filters: any[];
582
+ _crud_ordering: boolean;
583
+ _master: string;
584
+ context: string;
585
+ };
586
+ actions: {
587
+ type: string;
588
+ actionType: string;
589
+ label: string;
590
+ primary: boolean;
591
+ id: string;
592
+ }[];
593
+ showCloseButton: boolean;
594
+ closeOnOutside: boolean;
595
+ closeOnEsc: boolean;
596
+ showErrorMsg: boolean;
597
+ showLoading: boolean;
598
+ draggable: boolean;
599
+ actionType: string;
600
+ size: string;
601
+ onEvent: {
602
+ confirm: {
603
+ actions: {
604
+ actionType: string;
605
+ script: string;
606
+ }[];
607
+ };
608
+ };
609
+ };
610
+ }[];
611
+ };
612
+ };
@@ -0,0 +1 @@
1
+ export * from './TablesGrid';
@@ -0,0 +1,30 @@
1
+ export declare function getTablesGridSchema(tableId: string, baseId: string, mode: string, //edit/read/admin
2
+ { env, data, agGridLicenseKey, filters }: {
3
+ env: any;
4
+ data: any;
5
+ agGridLicenseKey: any;
6
+ filters: any;
7
+ }): Promise<{
8
+ meta: any;
9
+ amisSchema: {
10
+ type: string;
11
+ id: string;
12
+ name: string;
13
+ className: string;
14
+ body: {
15
+ type: string;
16
+ className: string;
17
+ title: any;
18
+ mode: string;
19
+ getColumnDefs: ({ getColumnDefByField }: {
20
+ getColumnDefByField: any;
21
+ }) => Promise<any>;
22
+ dataSource: import("..").AirtableDataSource;
23
+ tableId: string;
24
+ agGridLicenseKey: any;
25
+ filters: any;
26
+ verifications: any;
27
+ }[];
28
+ onEvent: {};
29
+ };
30
+ }>;
@@ -0,0 +1,15 @@
1
+ import { ICellEditorComp, ICellEditorParams } from 'ag-grid-community';
2
+ export declare class AmisDateTimeCellEditor implements ICellEditorComp {
3
+ private eGui;
4
+ private value;
5
+ private amisScope;
6
+ private containerId;
7
+ private amisSchema;
8
+ init(params: ICellEditorParams): void;
9
+ setupGui(): void;
10
+ getGui(): HTMLElement;
11
+ afterGuiAttached?(): void;
12
+ getValue(): any;
13
+ destroy?(): void;
14
+ isPopup?(): boolean;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './datetime';
2
+ export * from './multiSelect';
@@ -0,0 +1,15 @@
1
+ import { ICellEditorComp, ICellEditorParams } from 'ag-grid-community';
2
+ export declare class AmisMultiSelectCellEditor implements ICellEditorComp {
3
+ private eGui;
4
+ private value;
5
+ private amisScope;
6
+ private containerId;
7
+ private amisSchema;
8
+ init(params: ICellEditorParams): void;
9
+ setupGui(): void;
10
+ getGui(): HTMLElement;
11
+ afterGuiAttached?(): void;
12
+ getValue(): any;
13
+ destroy?(): void;
14
+ isPopup?(): boolean;
15
+ }
@@ -1 +1,2 @@
1
1
  export * from './TablesGrid';
2
+ export * from './AirtableGrid';
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const AmisAgGrid: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const AmisAgGrid: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;