@steedos-widgets/ag-grid 6.3.13-beta.3 → 6.10.1-beta.11

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 (40) hide show
  1. package/dist/ag-grid.umd.css +7488 -59
  2. package/dist/ag-grid.umd.js +1 -1
  3. package/dist/amis/AirtableGrid/gridOptions.d.ts +4 -24
  4. package/dist/amis/TablesGrid/tables.d.ts +1 -3
  5. package/dist/amis/cellEditor/datetime.d.ts +15 -0
  6. package/dist/{components → amis}/cellEditor/index.d.ts +0 -2
  7. package/dist/amis/cellEditor/multiSelect.d.ts +15 -0
  8. package/dist/assets-dev.json +1 -8
  9. package/dist/assets.json +6 -13
  10. package/dist/components/AgGrid.d.ts +2 -2
  11. package/dist/index.d.ts +2 -0
  12. package/dist/meta.js +5 -0
  13. package/dist/types/amis/AirtableGrid/gridOptions.d.ts +4 -24
  14. package/dist/types/amis/TablesGrid/tables.d.ts +1 -3
  15. package/dist/types/amis/cellEditor/datetime.d.ts +15 -0
  16. package/dist/types/{components → amis}/cellEditor/index.d.ts +0 -2
  17. package/dist/types/amis/cellEditor/multiSelect.d.ts +15 -0
  18. package/dist/types/components/AgGrid.d.ts +2 -2
  19. package/dist/types/index.d.ts +2 -0
  20. package/package.json +7 -7
  21. package/dist/components/cellEditor/date.d.ts +0 -6
  22. package/dist/components/cellEditor/datetime.d.ts +0 -6
  23. package/dist/components/cellEditor/lookup.d.ts +0 -6
  24. package/dist/components/cellEditor/multiSelect.d.ts +0 -7
  25. package/dist/components/cellRenderer/index.d.ts +0 -1
  26. package/dist/components/cellRenderer/lookup.d.ts +0 -5
  27. package/dist/components/filter/date.d.ts +0 -3
  28. package/dist/components/filter/datetime.d.ts +0 -3
  29. package/dist/components/filter/index.d.ts +0 -3
  30. package/dist/components/filter/lookup.d.ts +0 -3
  31. package/dist/types/components/cellEditor/date.d.ts +0 -6
  32. package/dist/types/components/cellEditor/datetime.d.ts +0 -6
  33. package/dist/types/components/cellEditor/lookup.d.ts +0 -6
  34. package/dist/types/components/cellEditor/multiSelect.d.ts +0 -7
  35. package/dist/types/components/cellRenderer/index.d.ts +0 -1
  36. package/dist/types/components/cellRenderer/lookup.d.ts +0 -5
  37. package/dist/types/components/filter/date.d.ts +0 -3
  38. package/dist/types/components/filter/datetime.d.ts +0 -3
  39. package/dist/types/components/filter/index.d.ts +0 -3
  40. package/dist/types/components/filter/lookup.d.ts +0 -3
package/dist/assets.json CHANGED
@@ -3,22 +3,15 @@
3
3
  {
4
4
  "package": "ag-grid-enterprise",
5
5
  "urls": [
6
- "https://unpkg.steedos.cn/ag-grid-enterprise@33.1.1/dist/ag-grid-enterprise.min.js"
6
+ "https://unpkg.steedos.cn/ag-grid-enterprise@32.3.3/dist/ag-grid-enterprise.min.js"
7
7
  ],
8
8
  "library": "agGrid"
9
9
  },
10
- {
11
- "package": "ag-grid-react",
12
- "urls": [
13
- "https://unpkg.steedos.cn/ag-grid-react@33.1.1/dist/umd/ag-grid-react.min.js"
14
- ],
15
- "library": "agGridReact"
16
- },
17
10
  {
18
11
  "package": "@steedos-widgets/ag-grid",
19
12
  "urls": [
20
- "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.3/dist/ag-grid.umd.js",
21
- "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.3/dist/ag-grid.umd.css"
13
+ "https://unpkg.com/@steedos-widgets/ag-grid@6.10.1-beta.11/dist/ag-grid.umd.js",
14
+ "https://unpkg.com/@steedos-widgets/ag-grid@6.10.1-beta.11/dist/ag-grid.umd.css"
22
15
  ],
23
16
  "library": "BuilderAgGrid"
24
17
  }
@@ -29,10 +22,10 @@
29
22
  "npm": {
30
23
  "package": "@steedos-widgets/ag-grid"
31
24
  },
32
- "url": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.3/dist/meta.js",
25
+ "url": "https://unpkg.com/@steedos-widgets/ag-grid@6.10.1-beta.11/dist/meta.js",
33
26
  "urls": {
34
- "default": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.3/dist/meta.js",
35
- "design": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.3/dist/meta.js"
27
+ "default": "https://unpkg.com/@steedos-widgets/ag-grid@6.10.1-beta.11/dist/meta.js",
28
+ "design": "https://unpkg.com/@steedos-widgets/ag-grid@6.10.1-beta.11/dist/meta.js"
36
29
  }
37
30
  }
38
31
  ]
@@ -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;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './amis';
3
+ import "ag-grid-community/styles/ag-grid.css";
4
+ import "ag-grid-community/styles/ag-theme-quartz.css";
package/dist/meta.js CHANGED
@@ -28,6 +28,11 @@
28
28
  return t;
29
29
  };
30
30
  return __assign.apply(this, arguments);
31
+ };
32
+
33
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
+ var e = new Error(message);
35
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
31
36
  };
32
37
 
33
38
  var config$2 = {
@@ -3,7 +3,6 @@ export declare function getColumnDef(field: any, dataTypeDefinitions: any, mode:
3
3
  env: any;
4
4
  }): {
5
5
  field: any;
6
- colId: any;
7
6
  headerName: any;
8
7
  cellDataType: any;
9
8
  cellEditorParams: any;
@@ -13,22 +12,18 @@ export declare function getColumnDef(field: any, dataTypeDefinitions: any, mode:
13
12
  editable: boolean;
14
13
  valueFormatter: any;
15
14
  valueGetter: any;
16
- valueSetter: any;
17
- valueParser: any;
18
15
  tooltipValueGetter: typeof tooltipValueGetter;
19
16
  filter: any;
20
17
  filterParams: any;
21
18
  mainMenuItems: any;
22
19
  suppressMovable: boolean;
23
20
  lockPosition: string | false;
24
- cellClass: any;
25
21
  };
26
22
  export declare function getColumnDefByFieldFun(dataTypeDefinitions: any, mode: string, { dispatchEvent, env }: {
27
23
  dispatchEvent: any;
28
24
  env: any;
29
25
  }): (field: any) => {
30
26
  field: any;
31
- colId: any;
32
27
  headerName: any;
33
28
  cellDataType: any;
34
29
  cellEditorParams: any;
@@ -38,15 +33,12 @@ export declare function getColumnDefByFieldFun(dataTypeDefinitions: any, mode: s
38
33
  editable: boolean;
39
34
  valueFormatter: any;
40
35
  valueGetter: any;
41
- valueSetter: any;
42
- valueParser: any;
43
36
  tooltipValueGetter: typeof tooltipValueGetter;
44
37
  filter: any;
45
38
  filterParams: any;
46
39
  mainMenuItems: any;
47
40
  suppressMovable: boolean;
48
41
  lockPosition: string | false;
49
- cellClass: any;
50
42
  };
51
43
  declare function tooltipValueGetter(params: any): any;
52
44
  export declare function getDataTypeDefinitions(): {
@@ -66,35 +58,23 @@ export declare function getDataTypeDefinitions(): {
66
58
  baseDataType: string;
67
59
  extendsDataType: string;
68
60
  valueGetter: (params: any) => any;
69
- valueFormatter: (params: any) => any;
70
- valueParser: (params: any) => any;
71
61
  };
72
62
  number: {
73
63
  baseDataType: string;
74
64
  extendsDataType: string;
75
65
  valueGetter: (params: any) => any;
76
66
  };
77
- multipleSelect: {
78
- baseDataType: string;
79
- extendsDataType: string;
80
- valueParser: (params: any) => any;
81
- valueFormatter: (params: any) => any;
82
- };
83
67
  };
84
- export declare function getGridOptions({ tableId, title, mode, config, dataSource, getColumnDefs, env, dispatchEvent, filters, verifications, amisData, beforeSaveData, amisRender }: {
68
+ export declare function getGridOptions({ tableId, title, mode, dataSource, getColumnDefs, env, dispatchEvent, filters, verifications }: {
85
69
  tableId: any;
86
70
  title: any;
87
71
  mode: any;
88
- config: any;
89
72
  dataSource: any;
90
73
  getColumnDefs: any;
91
74
  env: any;
92
75
  dispatchEvent: any;
93
76
  filters: any;
94
77
  verifications?: any[];
95
- amisData: any;
96
- beforeSaveData: any;
97
- amisRender: any;
98
78
  }): Promise<any>;
99
79
  export declare const getTableHeader: ({ tableId, title, mode, dataSource, getColumnDefs, env }: {
100
80
  tableId: any;
@@ -246,7 +226,7 @@ export declare const getTableHeader: ({ tableId, title, mode, dataSource, getCol
246
226
  }[];
247
227
  className: string;
248
228
  };
249
- export declare function getAirtableGridSchema({ tableId, title, mode, dataSource, getColumnDefs, env, agGridLicenseKey, filters, verifications, beforeSaveData, amisRender }: {
229
+ export declare function getAirtableGridSchema({ tableId, title, mode, dataSource, getColumnDefs, env, agGridLicenseKey, filters, verifications }: {
250
230
  tableId: any;
251
231
  title: any;
252
232
  mode: any;
@@ -256,8 +236,6 @@ export declare function getAirtableGridSchema({ tableId, title, mode, dataSource
256
236
  agGridLicenseKey: any;
257
237
  filters: any;
258
238
  verifications: any;
259
- beforeSaveData: any;
260
- amisRender: any;
261
239
  }): Promise<{
262
240
  amisSchema: {
263
241
  type: string;
@@ -427,6 +405,7 @@ export declare function getAirtableGridSchema({ tableId, title, mode, dataSource
427
405
  };
428
406
  data: {
429
407
  gridApi: string;
408
+ gridContext: string;
430
409
  };
431
410
  }[];
432
411
  };
@@ -491,6 +470,7 @@ export declare function getAirtableGridSchema({ tableId, title, mode, dataSource
491
470
  args: {
492
471
  value: {
493
472
  gridApi: string;
473
+ gridContext: string;
494
474
  };
495
475
  };
496
476
  }[];
@@ -1,10 +1,9 @@
1
1
  export declare function getTablesGridSchema(tableId: string, baseId: string, mode: string, //edit/read/admin
2
- { env, data, agGridLicenseKey, filters, beforeSaveData }: {
2
+ { env, data, agGridLicenseKey, filters }: {
3
3
  env: any;
4
4
  data: any;
5
5
  agGridLicenseKey: any;
6
6
  filters: any;
7
- beforeSaveData: any;
8
7
  }): Promise<{
9
8
  meta: any;
10
9
  amisSchema: {
@@ -25,7 +24,6 @@ export declare function getTablesGridSchema(tableId: string, baseId: string, mod
25
24
  agGridLicenseKey: any;
26
25
  filters: any;
27
26
  verifications: any;
28
- beforeSaveData: any;
29
27
  }[];
30
28
  onEvent: {};
31
29
  };
@@ -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
+ }
@@ -1,4 +1,2 @@
1
1
  export * from './datetime';
2
- export * from './date';
3
2
  export * from './multiSelect';
4
- export * from './lookup';
@@ -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,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;
@@ -1,2 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './amis';
3
+ import "ag-grid-community/styles/ag-grid.css";
4
+ import "ag-grid-community/styles/ag-theme-quartz.css";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/ag-grid",
3
3
  "private": false,
4
- "version": "6.3.13-beta.3",
4
+ "version": "6.10.1-beta.11",
5
5
  "main": "dist/ag-grid.cjs.js",
6
6
  "module": "dist/ag-grid.esm.js",
7
7
  "unpkg": "dist/ag-grid.umd.js",
@@ -48,12 +48,12 @@
48
48
  "rollup-plugin-visualizer": "^5.8.0"
49
49
  },
50
50
  "dependencies": {
51
- "@ag-grid-community/locale": "^33.1.1",
51
+ "@ag-grid-community/locale": "^32.3.3",
52
52
  "@rollup/plugin-replace": "^5.0.2",
53
- "@steedos-widgets/amis-lib": "6.3.13-beta.3",
54
- "ag-grid-community": "~33.1.1",
55
- "ag-grid-enterprise": "~33.1.1",
56
- "ag-grid-react": "~33.1.1"
53
+ "@steedos-widgets/amis-lib": "6.10.1-beta.11",
54
+ "ag-grid-community": "~32.3.3",
55
+ "ag-grid-enterprise": "~32.3.3",
56
+ "ag-grid-react": "~32.3.3"
57
57
  },
58
- "gitHead": "ca03cd84baf51ad3b34d92d6697a8f663b27fa88"
58
+ "gitHead": "42d7f908186583e07958dc8140fc0b69ba422f1f"
59
59
  }
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const DateCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- }) => JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const DateTimeCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- }) => JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const LookupCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- }) => JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const MultiSelectCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- values?: any;
7
- }) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './lookup';
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellRendererProps } from 'ag-grid-react';
3
- export declare const LookupCellRenderer: (props: CustomCellRendererProps<any, any, any> & {
4
- fieldConfig?: any;
5
- }) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CustomFilterProps } from "ag-grid-react";
3
- export declare const DateFilter: (props: CustomFilterProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CustomFilterProps } from "ag-grid-react";
3
- export declare const DateTimeFilter: (props: CustomFilterProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './datetime';
2
- export * from './date';
3
- export * from './lookup';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CustomFilterProps } from "ag-grid-react";
3
- export declare const LookupFilter: (props: CustomFilterProps) => JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const DateCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- }) => JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const DateTimeCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- }) => JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const LookupCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- }) => JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellEditorProps } from 'ag-grid-react';
3
- export declare const MultiSelectCellEditor: (props: CustomCellEditorProps<any, any, any> & {
4
- minWidth?: number;
5
- fieldConfig?: any;
6
- values?: any;
7
- }) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './lookup';
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCellRendererProps } from 'ag-grid-react';
3
- export declare const LookupCellRenderer: (props: CustomCellRendererProps<any, any, any> & {
4
- fieldConfig?: any;
5
- }) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CustomFilterProps } from "ag-grid-react";
3
- export declare const DateFilter: (props: CustomFilterProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CustomFilterProps } from "ag-grid-react";
3
- export declare const DateTimeFilter: (props: CustomFilterProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './datetime';
2
- export * from './date';
3
- export * from './lookup';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CustomFilterProps } from "ag-grid-react";
3
- export declare const LookupFilter: (props: CustomFilterProps) => JSX.Element;