@steedos-widgets/ag-grid 6.3.12-beta.9 → 6.3.13-beta.1

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 (50) hide show
  1. package/dist/ag-grid.umd.css +62 -7491
  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 +517 -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 +32 -0
  12. package/dist/amis/index.d.ts +1 -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/cellRenderer/index.d.ts +1 -0
  20. package/dist/components/cellRenderer/lookup.d.ts +5 -0
  21. package/dist/components/filter/datetime.d.ts +3 -0
  22. package/dist/components/filter/index.d.ts +2 -0
  23. package/dist/components/filter/lookup.d.ts +3 -0
  24. package/dist/index.d.ts +0 -2
  25. package/dist/meta.js +93 -21
  26. package/dist/metas/AmisAirtableGrid.d.ts +2 -0
  27. package/dist/types/amis/AirtableGrid/AirtableGrid.d.ts +11 -0
  28. package/dist/types/amis/AirtableGrid/DataSource.d.ts +17 -0
  29. package/dist/types/amis/AirtableGrid/gridOptions.d.ts +517 -0
  30. package/dist/types/amis/AirtableGrid/index.d.ts +3 -0
  31. package/dist/types/amis/{TablesGrid.d.ts → TablesGrid/TablesGrid.d.ts} +0 -1
  32. package/dist/types/amis/TablesGrid/dataSource.d.ts +8 -0
  33. package/dist/types/amis/TablesGrid/fieldsAdmin.d.ts +612 -0
  34. package/dist/types/amis/TablesGrid/index.d.ts +1 -0
  35. package/dist/types/amis/TablesGrid/tables.d.ts +32 -0
  36. package/dist/types/amis/index.d.ts +1 -0
  37. package/dist/types/components/cellEditor/datetime.d.ts +6 -0
  38. package/dist/types/components/cellEditor/index.d.ts +3 -0
  39. package/dist/types/components/cellEditor/lookup.d.ts +6 -0
  40. package/dist/types/components/cellEditor/multiSelect.d.ts +7 -0
  41. package/dist/types/components/cellRenderer/index.d.ts +1 -0
  42. package/dist/types/components/cellRenderer/lookup.d.ts +5 -0
  43. package/dist/types/components/filter/datetime.d.ts +3 -0
  44. package/dist/types/components/filter/index.d.ts +2 -0
  45. package/dist/types/components/filter/lookup.d.ts +3 -0
  46. package/dist/types/index.d.ts +0 -2
  47. package/dist/types/metas/AmisAirtableGrid.d.ts +2 -0
  48. package/package.json +7 -7
  49. package/dist/amis/tables.d.ts +0 -248
  50. package/dist/types/amis/tables.d.ts +0 -248
package/dist/assets.json CHANGED
@@ -3,15 +3,22 @@
3
3
  {
4
4
  "package": "ag-grid-enterprise",
5
5
  "urls": [
6
- "https://unpkg.steedos.cn/ag-grid-enterprise@32.3.3/dist/ag-grid-enterprise.min.js"
6
+ "https://unpkg.steedos.cn/ag-grid-enterprise@33.1.1/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
+ },
10
17
  {
11
18
  "package": "@steedos-widgets/ag-grid",
12
19
  "urls": [
13
- "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.9/dist/ag-grid.umd.js",
14
- "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.9/dist/ag-grid.umd.css"
20
+ "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.1/dist/ag-grid.umd.js",
21
+ "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.1/dist/ag-grid.umd.css"
15
22
  ],
16
23
  "library": "BuilderAgGrid"
17
24
  }
@@ -22,10 +29,10 @@
22
29
  "npm": {
23
30
  "package": "@steedos-widgets/ag-grid"
24
31
  },
25
- "url": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.9/dist/meta.js",
32
+ "url": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.1/dist/meta.js",
26
33
  "urls": {
27
- "default": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.9/dist/meta.js",
28
- "design": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.9/dist/meta.js"
34
+ "default": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.1/dist/meta.js",
35
+ "design": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.13-beta.1/dist/meta.js"
29
36
  }
30
37
  }
31
38
  ]
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,3 @@
1
+ export * from './datetime';
2
+ export * from './multiSelect';
3
+ export * from './lookup';
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1 @@
1
+ export * from './lookup';
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { CustomFilterProps } from "ag-grid-react";
3
+ export declare const DateTimeFilter: (props: CustomFilterProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './datetime';
2
+ export * from './lookup';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { CustomFilterProps } from "ag-grid-react";
3
+ export declare const LookupFilter: (props: CustomFilterProps) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,2 @@
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
@@ -30,7 +30,7 @@
30
30
  return __assign.apply(this, arguments);
31
31
  };
32
32
 
33
- var config$1 = {
33
+ var config$2 = {
34
34
  group: "华炎魔方-原子组件",
35
35
  componentName: "AmisAgGrid",
36
36
  title: "AG-Grid",
@@ -54,32 +54,32 @@
54
54
  icon: "fa-fw fa fa-list-alt"
55
55
  }
56
56
  };
57
- var AgGrid = __assign(__assign({}, config$1), { snippets: [
57
+ var AgGrid = __assign(__assign({}, config$2), { snippets: [
58
58
  {
59
- title: config$1.title,
59
+ title: config$2.title,
60
60
  screenshot: "",
61
61
  schema: {
62
- componentName: config$1.componentName,
63
- props: config$1.preview
62
+ componentName: config$2.componentName,
63
+ props: config$2.preview
64
64
  }
65
65
  }
66
66
  ], amis: {
67
67
  render: {
68
- type: config$1.amis.name,
68
+ type: config$2.amis.name,
69
69
  usage: "renderer",
70
70
  weight: 1,
71
71
  framework: "react"
72
72
  },
73
- plugin: {
74
- rendererName: config$1.amis.name,
73
+ plugin_disabled: {
74
+ rendererName: config$2.amis.name,
75
75
  $schema: '/schemas/UnkownSchema.json',
76
- name: config$1.title,
77
- description: config$1.title,
78
- tags: [config$1.group],
76
+ name: config$2.title,
77
+ description: config$2.title,
78
+ tags: [config$2.group],
79
79
  order: -9999,
80
- icon: config$1.amis.icon,
80
+ icon: config$2.amis.icon,
81
81
  scaffold: {
82
- type: config$1.amis.name,
82
+ type: config$2.amis.name,
83
83
  className: "h-80",
84
84
  config: {
85
85
  // Row Data: The data to be displayed.
@@ -98,7 +98,7 @@
98
98
  },
99
99
  },
100
100
  previewSchema: {
101
- type: config$1.amis.name,
101
+ type: config$2.amis.name,
102
102
  },
103
103
  panelTitle: "设置",
104
104
  panelControls: [
@@ -140,10 +140,10 @@
140
140
  * @Author: baozhoutao@steedos.com
141
141
  * @Date: 2022-08-31 16:32:35
142
142
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
143
- * @LastEditTime: 2024-12-25 15:15:17
143
+ * @LastEditTime: 2025-01-06 17:48:28
144
144
  * @Description:
145
145
  */
146
- var config = {
146
+ var config$1 = {
147
147
  componentType: 'amisSchema',
148
148
  group: "华炎魔方",
149
149
  componentName: "AmisTablesGrid",
@@ -158,6 +158,78 @@
158
158
  destructuring: true,
159
159
  subName: ""
160
160
  },
161
+ preview: {},
162
+ targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
163
+ engines: ["amis"],
164
+ // settings for amis.
165
+ amis: {
166
+ name: 'steedos-tables-grid',
167
+ icon: "fa-fw fa fa-list-alt"
168
+ }
169
+ };
170
+ var AmisTablesGrid = __assign(__assign({}, config$1), { snippets: [
171
+ {
172
+ title: config$1.title,
173
+ screenshot: "",
174
+ schema: {
175
+ componentName: config$1.componentName,
176
+ props: config$1.preview
177
+ }
178
+ }
179
+ ], amis: {
180
+ render: {
181
+ type: config$1.amis.name,
182
+ usage: "renderer",
183
+ weight: 1,
184
+ framework: "react"
185
+ },
186
+ plugin_disabled: {
187
+ rendererName: config$1.amis.name,
188
+ $schema: '/schemas/UnkownSchema.json',
189
+ name: config$1.title,
190
+ description: config$1.title,
191
+ tags: [config$1.group],
192
+ order: -9999,
193
+ icon: config$1.amis.icon,
194
+ scaffold: {
195
+ type: config$1.amis.name,
196
+ label: config$1.title,
197
+ objectApiName: "${objectName}",
198
+ fields: ["name"],
199
+ // className: "sm:border sm:rounded sm:border-gray-300"
200
+ },
201
+ previewSchema: {
202
+ type: config$1.amis.name,
203
+ objectApiName: 'space_users',
204
+ fields: ["name"]
205
+ },
206
+ panelTitle: "设置",
207
+ panelControls: []
208
+ }
209
+ } });
210
+
211
+ /*
212
+ * @Author: baozhoutao@steedos.com
213
+ * @Date: 2022-08-31 16:32:35
214
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
215
+ * @LastEditTime: 2025-01-17 14:40:15
216
+ * @Description:
217
+ */
218
+ var config = {
219
+ componentType: 'amisSchema',
220
+ group: "华炎魔方",
221
+ componentName: "AmisAirtableGrid",
222
+ title: "Airtable Grid",
223
+ docUrl: "",
224
+ screenshot: "",
225
+ npm: {
226
+ package: "@steedos-widgets/ag-grid",
227
+ version: "{{version}}",
228
+ exportName: "AmisAirtableGrid",
229
+ main: "",
230
+ destructuring: true,
231
+ subName: ""
232
+ },
161
233
  props: [
162
234
  {
163
235
  name: "tableId",
@@ -205,11 +277,11 @@
205
277
  engines: ["amis"],
206
278
  // settings for amis.
207
279
  amis: {
208
- name: 'steedos-tables-grid',
280
+ name: 'steedos-airtable-grid',
209
281
  icon: "fa-fw fa fa-list-alt"
210
282
  }
211
283
  };
212
- var AmisTablesGrid = __assign(__assign({}, config), { snippets: [
284
+ var AmisAirtableGrid = __assign(__assign({}, config), { snippets: [
213
285
  {
214
286
  title: config.title,
215
287
  screenshot: "",
@@ -225,7 +297,7 @@
225
297
  weight: 1,
226
298
  framework: "react"
227
299
  },
228
- plugin: {
300
+ plugin_disabled: {
229
301
  rendererName: config.amis.name,
230
302
  $schema: '/schemas/UnkownSchema.json',
231
303
  name: config.title,
@@ -535,10 +607,10 @@
535
607
  * @Author: baozhoutao@steedos.com
536
608
  * @Date: 2022-08-31 16:32:35
537
609
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
538
- * @LastEditTime: 2024-12-25 14:59:55
610
+ * @LastEditTime: 2025-02-11 20:08:26
539
611
  * @Description:
540
612
  */
541
- var components = [AgGrid, AmisTablesGrid];
613
+ var components = [AgGrid, AmisTablesGrid, AmisAirtableGrid];
542
614
  var componentList = [
543
615
  {
544
616
  title: "华炎魔方",
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import './AirtableGrid.less';
2
+ import { ColDef } from 'ag-grid-community';
3
+ import { AirtableDataSource } from "./DataSource";
4
+ interface AirtableGridProps {
5
+ mode: 'admin' | 'edit' | 'read';
6
+ dataSource: AirtableDataSource;
7
+ getColumnDefs: () => Promise<ColDef[]>;
8
+ [key: string]: any;
9
+ }
10
+ export declare const AmisAirtableGrid: (props: AirtableGridProps) => Promise<any>;
11
+ export {};
@@ -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 {};