@@ -47,6 +47,9 @@ const dataViews = [
47
47
id : 0 ,
48
48
name : 'Tutti i contatti' ,
49
49
kind : 'table' ,
50
+ state : {
51
+ hiddenColumns : [ 'cover' , 'avatar' ] ,
52
+ } ,
50
53
fields : [
51
54
'id' ,
52
55
'member' ,
@@ -59,188 +62,35 @@ const dataViews = [
59
62
'createdAt' ,
60
63
'addField' ,
61
64
] ,
62
- state : [
63
- {
64
- colId : 'id' ,
65
- hide : false ,
66
- aggFunc : null ,
67
- width : 60 ,
68
- pivotIndex : null ,
69
- pinned : 'left' ,
70
- rowGroupIndex : null ,
71
- } ,
72
- {
73
- colId : 'cover' ,
74
- hide : true ,
75
- aggFunc : null ,
76
- width : 200 ,
77
- pivotIndex : null ,
78
- pinned : null ,
79
- rowGroupIndex : null ,
80
- } ,
81
- {
82
- colId : 'avatar' ,
83
- hide : true ,
84
- aggFunc : null ,
85
- width : 200 ,
86
- pivotIndex : null ,
87
- pinned : null ,
88
- rowGroupIndex : null ,
89
- } ,
90
- {
91
- colId : 'member' ,
92
- hide : false ,
93
- aggFunc : null ,
94
- width : 359 ,
95
- pivotIndex : null ,
96
- pinned : 'left' ,
97
- rowGroupIndex : null ,
98
- } ,
99
- {
100
- colId : 'displayName' ,
101
- hide : true ,
102
- aggFunc : null ,
103
- width : 200 ,
104
- pivotIndex : null ,
105
- pinned : null ,
106
- rowGroupIndex : null ,
107
- } ,
108
- {
109
- colId : 'amount' ,
110
- hide : false ,
111
- aggFunc : 'sum' ,
112
- width : 224 ,
113
- pivotIndex : null ,
114
- pinned : null ,
115
- rowGroupIndex : null ,
116
- } ,
117
- {
118
- colId : 'country' ,
119
- hide : false ,
120
- aggFunc : null ,
121
- width : 369 ,
122
- pivotIndex : null ,
123
- pinned : null ,
124
- rowGroupIndex : null ,
125
- } ,
126
- {
127
- colId : 'percent' ,
128
- hide : true ,
129
- aggFunc : 'avg' ,
130
- width : 200 ,
131
- pivotIndex : null ,
132
- pinned : null ,
133
- rowGroupIndex : null ,
134
- } ,
135
- {
136
- colId : 'createdAt' ,
137
- hide : false ,
138
- aggFunc : null ,
139
- width : 211 ,
140
- pivotIndex : null ,
141
- pinned : null ,
142
- rowGroupIndex : null ,
143
- } ,
144
- {
145
- colId : 'updatedAt' ,
146
- hide : true ,
147
- aggFunc : null ,
148
- width : 200 ,
149
- pivotIndex : null ,
150
- pinned : null ,
151
- rowGroupIndex : null ,
152
- } ,
153
- {
154
- colId : 'gender' ,
155
- hide : false ,
156
- aggFunc : null ,
157
- width : 162 ,
158
- pivotIndex : null ,
159
- pinned : null ,
160
- rowGroupIndex : null ,
161
- } ,
162
- {
163
- colId : 'firstName' ,
164
- hide : false ,
165
- aggFunc : null ,
166
- width : 177 ,
167
- pivotIndex : null ,
168
- pinned : null ,
169
- rowGroupIndex : null ,
170
- } ,
171
- {
172
- colId : 'donationCampaign' ,
173
- hide : true ,
174
- aggFunc : null ,
175
- width : 200 ,
176
- pivotIndex : null ,
177
- pinned : null ,
178
- rowGroupIndex : null ,
179
- } ,
180
- {
181
- colId : 'phone' ,
182
- hide : false ,
183
- aggFunc : null ,
184
- width : 288 ,
185
- pivotIndex : null ,
186
- pinned : null ,
187
- rowGroupIndex : null ,
188
- } ,
189
- {
190
- colId : 'paymentMethod' ,
191
- hide : false ,
192
- aggFunc : null ,
193
- width : 227 ,
194
- pivotIndex : null ,
195
- pinned : null ,
196
- rowGroupIndex : null ,
197
- } ,
198
- {
199
- colId : 'custom-field-1' ,
200
- hide : true ,
201
- aggFunc : null ,
202
- width : 200 ,
203
- pivotIndex : null ,
204
- pinned : null ,
205
- rowGroupIndex : null ,
206
- } ,
207
- {
208
- colId : 'addField' ,
209
- hide : false ,
210
- aggFunc : null ,
211
- width : 140 ,
212
- pivotIndex : null ,
213
- pinned : null ,
214
- rowGroupIndex : null ,
215
- } ,
216
- ] ,
217
- filterModel : null ,
218
65
} ,
219
66
{
220
67
id : 1 ,
221
68
name : 'Bigger donations' ,
222
69
kind : 'table' ,
223
- fields : [
224
- 'country' ,
225
- 'paymentMethod' ,
226
- 'member' ,
227
- 'amount' ,
228
- 'firstName' ,
229
- 'gender' ,
230
- 'phone' ,
231
- 'addField' ,
232
- 'createdAt' ,
233
- ] ,
234
- // groupers: [{ colId: 'country' }],
235
- sorters : [ { colId : 'amount' , sort : 'desc' } ] ,
70
+ state : {
71
+ hiddenColumns : [ 'cover' ] ,
72
+ sortBy : [ { id : 'amount' , desc : true } ] ,
73
+ } ,
236
74
filterModel : { amount : { type : 'greaterThan' , filter : 100 } } ,
237
75
} ,
238
76
{
239
77
id : 2 ,
240
78
name : 'Galleria contatti' ,
241
79
kind : 'gallery' ,
242
- fields : [ 'avatar' , 'cover' , 'member' , 'amount' ] ,
243
- sorters : [ { colId : 'amount' , sort : 'desc' } ] ,
80
+ state : {
81
+ hiddenColumns : [
82
+ 'displayName' ,
83
+ 'firstName' ,
84
+ 'country' ,
85
+ 'percent' ,
86
+ 'phone' ,
87
+ 'createdAt' ,
88
+ 'updatedAt' ,
89
+ 'paymentMethod' ,
90
+ 'custom-field-1' ,
91
+ ] ,
92
+ sortBy : [ { id : 'amount' , desc : true } ] ,
93
+ } ,
244
94
} ,
245
95
{
246
96
id : 3 ,
0 commit comments