@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,497 @@
1
+ export declare function getColumnDef(field: any, dataTypeDefinitions: any, mode: string, { dispatchEvent, env }: {
2
+ dispatchEvent: any;
3
+ env: any;
4
+ }): {
5
+ field: any;
6
+ headerName: any;
7
+ cellDataType: any;
8
+ cellEditorParams: any;
9
+ cellEditor: any;
10
+ cellRendererParams: any;
11
+ cellRenderer: any;
12
+ editable: boolean;
13
+ valueFormatter: any;
14
+ valueGetter: any;
15
+ tooltipValueGetter: typeof tooltipValueGetter;
16
+ filter: any;
17
+ filterParams: any;
18
+ mainMenuItems: any;
19
+ suppressMovable: boolean;
20
+ lockPosition: string | false;
21
+ };
22
+ export declare function getColumnDefByFieldFun(dataTypeDefinitions: any, mode: string, { dispatchEvent, env }: {
23
+ dispatchEvent: any;
24
+ env: any;
25
+ }): (field: any) => {
26
+ field: any;
27
+ headerName: any;
28
+ cellDataType: any;
29
+ cellEditorParams: any;
30
+ cellEditor: any;
31
+ cellRendererParams: any;
32
+ cellRenderer: any;
33
+ editable: boolean;
34
+ valueFormatter: any;
35
+ valueGetter: any;
36
+ tooltipValueGetter: typeof tooltipValueGetter;
37
+ filter: any;
38
+ filterParams: any;
39
+ mainMenuItems: any;
40
+ suppressMovable: boolean;
41
+ lockPosition: string | false;
42
+ };
43
+ declare function tooltipValueGetter(params: any): any;
44
+ export declare function getDataTypeDefinitions(): {
45
+ date: {
46
+ baseDataType: string;
47
+ extendsDataType: string;
48
+ valueParser__: (params: any) => void;
49
+ valueGetter: (params: any) => Date;
50
+ valueFormatter: (params: any) => string;
51
+ };
52
+ formula: {
53
+ baseDataType: string;
54
+ extendsDataType: string;
55
+ fields: {};
56
+ };
57
+ lookup: {
58
+ baseDataType: string;
59
+ extendsDataType: string;
60
+ valueGetter: (params: any) => any;
61
+ };
62
+ number: {
63
+ baseDataType: string;
64
+ extendsDataType: string;
65
+ valueGetter: (params: any) => any;
66
+ };
67
+ };
68
+ export declare function getGridOptions({ tableId, title, mode, dataSource, getColumnDefs, env, dispatchEvent, filters, verifications }: {
69
+ tableId: any;
70
+ title: any;
71
+ mode: any;
72
+ dataSource: any;
73
+ getColumnDefs: any;
74
+ env: any;
75
+ dispatchEvent: any;
76
+ filters: any;
77
+ verifications?: any[];
78
+ }): Promise<any>;
79
+ export declare const getTableHeader: ({ tableId, title, mode, dataSource, getColumnDefs, env }: {
80
+ tableId: any;
81
+ title: any;
82
+ mode: any;
83
+ dataSource: any;
84
+ getColumnDefs: any;
85
+ env: any;
86
+ }) => {
87
+ type: string;
88
+ body: {
89
+ type: string;
90
+ valign: string;
91
+ columns: ({
92
+ body: {
93
+ type: string;
94
+ valign: string;
95
+ className: string;
96
+ columns: ({
97
+ body: {
98
+ type: string;
99
+ className: string;
100
+ tpl: string;
101
+ };
102
+ md: string;
103
+ className: string;
104
+ columnClassName: string;
105
+ valign?: undefined;
106
+ } | {
107
+ body: {
108
+ type: string;
109
+ tpl: string;
110
+ inline: boolean;
111
+ wrapperComponent: string;
112
+ className: string;
113
+ }[];
114
+ md: string;
115
+ valign: string;
116
+ columnClassName: string;
117
+ className?: undefined;
118
+ })[];
119
+ }[];
120
+ md: string;
121
+ type?: undefined;
122
+ valign?: undefined;
123
+ className?: undefined;
124
+ columns?: undefined;
125
+ } | {
126
+ type: string;
127
+ valign: string;
128
+ className: string;
129
+ columns: ({
130
+ body: {
131
+ type: string;
132
+ items: ({
133
+ label: string;
134
+ type: string;
135
+ actionType: string;
136
+ onEvent: {
137
+ click: {
138
+ actions: {
139
+ ignoreError: boolean;
140
+ actionType: string;
141
+ script: string;
142
+ args: {};
143
+ }[];
144
+ };
145
+ };
146
+ } | {
147
+ type: string;
148
+ label: string;
149
+ actionType: string;
150
+ onEvent: {
151
+ click: {
152
+ actions: {
153
+ type: string;
154
+ actionType: string;
155
+ args: {
156
+ eventName: string;
157
+ };
158
+ }[];
159
+ };
160
+ };
161
+ })[];
162
+ visibleOn: string;
163
+ };
164
+ md: string;
165
+ } | {
166
+ body: {
167
+ type: string;
168
+ direction: string;
169
+ className: string;
170
+ visibleOn: string;
171
+ };
172
+ md: string;
173
+ } | {
174
+ body?: undefined;
175
+ md?: undefined;
176
+ } | {
177
+ body: {
178
+ type: string;
179
+ items: ({
180
+ label: string;
181
+ type: string;
182
+ actionType: string;
183
+ onEvent: {
184
+ click: {
185
+ actions: {
186
+ type: string;
187
+ actionType: string;
188
+ args: {
189
+ eventName: string;
190
+ };
191
+ }[];
192
+ };
193
+ };
194
+ } | {
195
+ label: string;
196
+ type: string;
197
+ actionType: string;
198
+ onEvent: {
199
+ click: {
200
+ actions: ({
201
+ actionType: string;
202
+ dialog: {
203
+ title: string;
204
+ msg: string;
205
+ };
206
+ type?: undefined;
207
+ args?: undefined;
208
+ } | {
209
+ type: string;
210
+ actionType: string;
211
+ args: {
212
+ eventName: string;
213
+ };
214
+ dialog?: undefined;
215
+ })[];
216
+ };
217
+ };
218
+ })[];
219
+ };
220
+ md: string;
221
+ })[];
222
+ body?: undefined;
223
+ md?: undefined;
224
+ })[];
225
+ className: string;
226
+ }[];
227
+ className: string;
228
+ };
229
+ export declare function getAirtableGridSchema({ tableId, title, mode, dataSource, getColumnDefs, env, agGridLicenseKey, filters, verifications }: {
230
+ tableId: any;
231
+ title: any;
232
+ mode: any;
233
+ dataSource: any;
234
+ getColumnDefs: any;
235
+ env: any;
236
+ agGridLicenseKey: any;
237
+ filters: any;
238
+ verifications: any;
239
+ }): Promise<{
240
+ amisSchema: {
241
+ type: string;
242
+ id: string;
243
+ name: string;
244
+ data: {
245
+ _aggridTotalCount: string;
246
+ };
247
+ className: string;
248
+ body: ({
249
+ type: string;
250
+ body: {
251
+ type: string;
252
+ valign: string;
253
+ columns: ({
254
+ body: {
255
+ type: string;
256
+ valign: string;
257
+ className: string;
258
+ columns: ({
259
+ body: {
260
+ type: string;
261
+ className: string;
262
+ tpl: string;
263
+ };
264
+ md: string;
265
+ className: string;
266
+ columnClassName: string;
267
+ valign?: undefined;
268
+ } | {
269
+ body: {
270
+ type: string;
271
+ tpl: string;
272
+ inline: boolean;
273
+ wrapperComponent: string;
274
+ className: string;
275
+ }[];
276
+ md: string;
277
+ valign: string;
278
+ columnClassName: string;
279
+ className?: undefined;
280
+ })[];
281
+ }[];
282
+ md: string;
283
+ type?: undefined;
284
+ valign?: undefined;
285
+ className?: undefined;
286
+ columns?: undefined;
287
+ } | {
288
+ type: string;
289
+ valign: string;
290
+ className: string;
291
+ columns: ({
292
+ body: {
293
+ type: string;
294
+ items: ({
295
+ label: string;
296
+ type: string;
297
+ actionType: string;
298
+ onEvent: {
299
+ click: {
300
+ actions: {
301
+ ignoreError: boolean;
302
+ actionType: string;
303
+ script: string;
304
+ args: {};
305
+ }[];
306
+ };
307
+ };
308
+ } | {
309
+ type: string;
310
+ label: string;
311
+ actionType: string;
312
+ onEvent: {
313
+ click: {
314
+ actions: {
315
+ type: string;
316
+ actionType: string;
317
+ args: {
318
+ eventName: string;
319
+ };
320
+ }[];
321
+ };
322
+ };
323
+ })[];
324
+ visibleOn: string;
325
+ };
326
+ md: string;
327
+ } | {
328
+ body: {
329
+ type: string;
330
+ direction: string;
331
+ className: string;
332
+ visibleOn: string;
333
+ };
334
+ md: string;
335
+ } | {
336
+ body?: undefined;
337
+ md?: undefined;
338
+ } | {
339
+ body: {
340
+ type: string;
341
+ items: ({
342
+ label: string;
343
+ type: string;
344
+ actionType: string;
345
+ onEvent: {
346
+ click: {
347
+ actions: {
348
+ type: string;
349
+ actionType: string;
350
+ args: {
351
+ eventName: string;
352
+ };
353
+ }[];
354
+ };
355
+ };
356
+ } | {
357
+ label: string;
358
+ type: string;
359
+ actionType: string;
360
+ onEvent: {
361
+ click: {
362
+ actions: ({
363
+ actionType: string;
364
+ dialog: {
365
+ title: string;
366
+ msg: string;
367
+ };
368
+ type?: undefined;
369
+ args?: undefined;
370
+ } | {
371
+ type: string;
372
+ actionType: string;
373
+ args: {
374
+ eventName: string;
375
+ };
376
+ dialog?: undefined;
377
+ })[];
378
+ };
379
+ };
380
+ })[];
381
+ };
382
+ md: string;
383
+ })[];
384
+ body?: undefined;
385
+ md?: undefined;
386
+ })[];
387
+ className: string;
388
+ }[];
389
+ className: string;
390
+ } | {
391
+ type: string;
392
+ onDataFilter: (config: any, AgGrid: any, props: any, data: any, ref: any) => Promise<any>;
393
+ className: string;
394
+ style: {
395
+ height: string;
396
+ };
397
+ onEvent: {
398
+ setGridApi: {
399
+ weight: number;
400
+ actions: {
401
+ type: string;
402
+ actionType: string;
403
+ args: {
404
+ eventName: string;
405
+ };
406
+ data: {
407
+ gridApi: string;
408
+ gridContext: string;
409
+ };
410
+ }[];
411
+ };
412
+ editField: {
413
+ weight: number;
414
+ actions: {
415
+ type: string;
416
+ actionType: string;
417
+ args: {
418
+ eventName: string;
419
+ };
420
+ data: {
421
+ editingFieldId: string;
422
+ };
423
+ }[];
424
+ };
425
+ deleteField: {
426
+ weight: number;
427
+ actions: {
428
+ type: string;
429
+ actionType: string;
430
+ args: {
431
+ eventName: string;
432
+ };
433
+ data: {
434
+ deletingFieldId: string;
435
+ };
436
+ }[];
437
+ };
438
+ sortFields: {
439
+ weight: number;
440
+ actions: {
441
+ type: string;
442
+ actionType: string;
443
+ args: {
444
+ eventName: string;
445
+ };
446
+ data: {
447
+ sortedFields: string;
448
+ };
449
+ }[];
450
+ };
451
+ setTotalCount: {
452
+ weight: number;
453
+ actions: {
454
+ type: string;
455
+ actionType: string;
456
+ args: {
457
+ eventName: string;
458
+ };
459
+ data: {
460
+ totalCount: string;
461
+ };
462
+ }[];
463
+ };
464
+ };
465
+ })[];
466
+ onEvent: {
467
+ [x: string]: {
468
+ actions: {
469
+ actionType: string;
470
+ args: {
471
+ value: {
472
+ gridApi: string;
473
+ gridContext: string;
474
+ };
475
+ };
476
+ }[];
477
+ } | {
478
+ actions: {
479
+ actionType: string;
480
+ args: {
481
+ value: {
482
+ _aggridTotalCount: string;
483
+ };
484
+ };
485
+ }[];
486
+ } | {
487
+ actions: {
488
+ ignoreError: boolean;
489
+ actionType: string;
490
+ script: string;
491
+ args: {};
492
+ }[];
493
+ };
494
+ };
495
+ };
496
+ }>;
497
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './AirtableGrid';
2
+ export * from './DataSource';
3
+ export { getDataTypeDefinitions, getColumnDef } from './gridOptions';
@@ -1,2 +1 @@
1
- import './TablesGrid.less';
2
1
  export declare const AmisTablesGrid: (props: any) => Promise<any>;
@@ -0,0 +1,8 @@
1
+ import { AirtableDataSource } from '../AirtableGrid';
2
+ export declare const getDataSource: ({ baseUrl, baseId, tableId, key, context }: {
3
+ baseUrl: any;
4
+ baseId: any;
5
+ tableId: any;
6
+ key?: string;
7
+ context?: {};
8
+ }) => AirtableDataSource;