@steedos-widgets/ag-grid 6.3.11 → 6.3.12-beta.10

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.
@@ -0,0 +1,248 @@
1
+ export declare const B6_TABLES_BASEID = "default";
2
+ export declare const B6_TABLES_ROOTURL: string;
3
+ export declare const B6_TABLES_METABASE_ROOTURL: string;
4
+ export declare function getMeta(tableId: string, force?: boolean): Promise<any>;
5
+ export declare function getTablesGridSchema(tableId: string, mode: string, //edit/read/admin
6
+ { env }: {
7
+ env: any;
8
+ }): Promise<{
9
+ meta: any;
10
+ amisSchema: {
11
+ type: string;
12
+ id: string;
13
+ name: string;
14
+ data: {
15
+ _aggridTotalCount: string;
16
+ };
17
+ className: string;
18
+ body: ({
19
+ type: string;
20
+ body: {
21
+ type: string;
22
+ valign: string;
23
+ columns: ({
24
+ body: {
25
+ type: string;
26
+ valign: string;
27
+ className: string;
28
+ columns: ({
29
+ body: {
30
+ type: string;
31
+ className: string;
32
+ tpl: string;
33
+ };
34
+ md: string;
35
+ className: string;
36
+ columnClassName: string;
37
+ valign?: undefined;
38
+ } | {
39
+ body: {
40
+ type: string;
41
+ tpl: string;
42
+ inline: boolean;
43
+ wrapperComponent: string;
44
+ className: string;
45
+ }[];
46
+ md: string;
47
+ valign: string;
48
+ columnClassName: string;
49
+ className?: undefined;
50
+ })[];
51
+ }[];
52
+ md: string;
53
+ type?: undefined;
54
+ valign?: undefined;
55
+ className?: undefined;
56
+ columns?: undefined;
57
+ } | {
58
+ type: string;
59
+ valign: string;
60
+ className: string;
61
+ columns: ({
62
+ body: {
63
+ type: string;
64
+ items: ({
65
+ label: string;
66
+ type: string;
67
+ actionType: string;
68
+ onEvent: {
69
+ click: {
70
+ actions: {
71
+ ignoreError: boolean;
72
+ actionType: string;
73
+ script: string;
74
+ args: {};
75
+ }[];
76
+ };
77
+ };
78
+ } | {
79
+ type: string;
80
+ label: string;
81
+ actionType: string;
82
+ onEvent: {
83
+ click: {
84
+ actions: {
85
+ type: string;
86
+ actionType: string;
87
+ args: {
88
+ eventName: string;
89
+ };
90
+ }[];
91
+ };
92
+ };
93
+ })[];
94
+ visibleOn: string;
95
+ };
96
+ md: string;
97
+ } | {
98
+ body: {
99
+ type: string;
100
+ direction: string;
101
+ className: string;
102
+ visibleOn: string;
103
+ };
104
+ md: string;
105
+ } | {
106
+ body?: undefined;
107
+ md?: undefined;
108
+ } | {
109
+ body: {
110
+ type: string;
111
+ items: ({
112
+ label: string;
113
+ type: string;
114
+ actionType: string;
115
+ onEvent: {
116
+ click: {
117
+ actions: {
118
+ ignoreError: boolean;
119
+ actionType: string;
120
+ script: string;
121
+ args: {};
122
+ }[];
123
+ };
124
+ };
125
+ } | {
126
+ label: string;
127
+ type: string;
128
+ actionType: string;
129
+ onEvent: {
130
+ click: {
131
+ actions: ({
132
+ actionType: string;
133
+ dialog: {
134
+ title: string;
135
+ msg: string;
136
+ };
137
+ ignoreError?: undefined;
138
+ script?: undefined;
139
+ args?: undefined;
140
+ } | {
141
+ ignoreError: boolean;
142
+ actionType: string;
143
+ script: string;
144
+ args: {};
145
+ dialog?: undefined;
146
+ })[];
147
+ };
148
+ };
149
+ })[];
150
+ };
151
+ md: string;
152
+ })[];
153
+ body?: undefined;
154
+ md?: undefined;
155
+ })[];
156
+ className: string;
157
+ }[];
158
+ className: string;
159
+ } | {
160
+ type: string;
161
+ onDataFilter: (config: any, AgGrid: any, props: any, data: any, ref: any) => Promise<any>;
162
+ className: string;
163
+ style: {
164
+ height: string;
165
+ };
166
+ onEvent: {
167
+ setGridApi: {
168
+ weight: number;
169
+ actions: {
170
+ type: string;
171
+ actionType: string;
172
+ args: {
173
+ eventName: string;
174
+ };
175
+ data: {
176
+ gridApi: string;
177
+ gridContext: string;
178
+ };
179
+ }[];
180
+ };
181
+ editField: {
182
+ weight: number;
183
+ actions: {
184
+ type: string;
185
+ actionType: string;
186
+ args: {
187
+ eventName: string;
188
+ };
189
+ data: {
190
+ editingFieldId: string;
191
+ };
192
+ }[];
193
+ };
194
+ deleteField: {
195
+ weight: number;
196
+ actions: {
197
+ type: string;
198
+ actionType: string;
199
+ args: {
200
+ eventName: string;
201
+ };
202
+ data: {
203
+ deletingFieldId: string;
204
+ };
205
+ }[];
206
+ };
207
+ sortFields: {
208
+ weight: number;
209
+ actions: {
210
+ type: string;
211
+ actionType: string;
212
+ args: {
213
+ eventName: string;
214
+ };
215
+ data: {
216
+ sortedFields: string;
217
+ };
218
+ }[];
219
+ };
220
+ setTotalCount: {
221
+ weight: number;
222
+ actions: {
223
+ type: string;
224
+ actionType: string;
225
+ args: {
226
+ eventName: string;
227
+ };
228
+ data: {
229
+ totalCount: string;
230
+ };
231
+ }[];
232
+ };
233
+ };
234
+ })[];
235
+ onEvent: {
236
+ "@b6tables.addRecord": {
237
+ actions: {
238
+ actionType: string;
239
+ args: {
240
+ msgType: string;
241
+ msg: string;
242
+ position: string;
243
+ };
244
+ }[];
245
+ };
246
+ };
247
+ };
248
+ }>;
@@ -1,3 +1,4 @@
1
1
  export * from './components';
2
+ export * from './amis';
2
3
  import "ag-grid-community/styles/ag-grid.css";
3
4
  import "ag-grid-community/styles/ag-theme-quartz.css";
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
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.11",
4
+ "version": "6.3.12-beta.10",
5
5
  "main": "dist/ag-grid.cjs.js",
6
6
  "module": "dist/ag-grid.esm.js",
7
7
  "unpkg": "dist/ag-grid.umd.js",
@@ -50,10 +50,10 @@
50
50
  "dependencies": {
51
51
  "@ag-grid-community/locale": "^32.3.3",
52
52
  "@rollup/plugin-replace": "^5.0.2",
53
- "@steedos-widgets/amis-lib": "6.3.11",
53
+ "@steedos-widgets/amis-lib": "6.3.12-beta.10",
54
54
  "ag-grid-community": "~32.3.3",
55
55
  "ag-grid-enterprise": "~32.3.3",
56
56
  "ag-grid-react": "~32.3.3"
57
57
  },
58
- "gitHead": "856170d590303b7e5a717fb167bddb9c042c6749"
58
+ "gitHead": "1805811dca8b72abb0873c1539194cb5c4520c8f"
59
59
  }