@steedos-widgets/ag-grid 6.3.12-beta.3 → 6.3.12-beta.30

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