quasar-factory-lib 0.1.19 → 0.1.20
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.
- package/dist/components/Table/Table.vue.d.ts +1 -0
- package/dist/layouts/PdaLayout.vue.d.ts +21 -269
- package/dist/pages/TablePage.vue.d.ts +1 -0
- package/dist/quasar-factory-lib.js +372 -367
- package/dist/quasar-factory-lib.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +9 -2
- package/src/layouts/PdaLayout.vue +123 -752
|
@@ -84,7 +84,6 @@ import NavBarSkeleton from '../components/NavBarSkeleton/NavBarSkeleton.vue'
|
|
|
84
84
|
import TableRowsCounter from'../components/TableRowsCounter/TableRowsCounter.vue'
|
|
85
85
|
import AlertLabelsWithError from '../components/AlertLabelsWithError/AlertLabelsWithError.vue'
|
|
86
86
|
import setTableHeight from '../components/Table/utils/setTableHeight'
|
|
87
|
-
// import infiniteScroll from '../components/Table/utils/infiniteScroll'
|
|
88
87
|
import { tableStore } from '../store/table.js'
|
|
89
88
|
export default {
|
|
90
89
|
components: {
|
|
@@ -101,757 +100,134 @@ export default {
|
|
|
101
100
|
store: tableStore(),
|
|
102
101
|
tableStyle: '',
|
|
103
102
|
columns: [
|
|
103
|
+
{
|
|
104
|
+
name: 'id',
|
|
105
|
+
label: '#',
|
|
106
|
+
field: 'id',
|
|
107
|
+
required: true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'name',
|
|
111
|
+
required: true,
|
|
112
|
+
label: 'Dessert (100g serving)',
|
|
113
|
+
align: 'left',
|
|
114
|
+
field: row => row.name,
|
|
115
|
+
format: val => `${val}`,
|
|
116
|
+
sortable: true
|
|
117
|
+
},
|
|
118
|
+
{ name: 'calories', align: 'center', label: 'Calories', field: 'calories', sortable: true },
|
|
119
|
+
{ name: 'fat', label: 'Fat (g)', field: 'fat', sortable: true },
|
|
120
|
+
{ name: 'carbs', label: 'Carbs (g)', field: 'carbs' },
|
|
121
|
+
{ name: 'protein', label: 'Protein (g)', field: 'protein' },
|
|
122
|
+
{ name: 'sodium', label: 'Sodium (mg)', field: 'sodium' },
|
|
123
|
+
{ name: 'calcium', label: 'Calcium (%)', field: 'calcium', sortable: true, sort: (a, b) => parseInt(a, 10) - parseInt(b, 10) },
|
|
124
|
+
{ name: 'iron', label: 'Iron (%)', field: 'iron', sortable: true, sort: (a, b) => parseInt(a, 10) - parseInt(b, 10) }
|
|
125
|
+
],
|
|
126
|
+
rows: [],
|
|
127
|
+
showSkeleton: false,
|
|
128
|
+
buttonsList: [],
|
|
129
|
+
seed: [
|
|
104
130
|
{
|
|
105
|
-
name: '
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
name: 'name',
|
|
114
|
-
required: true,
|
|
115
|
-
label: 'Dessert (100g serving)',
|
|
116
|
-
align: 'left',
|
|
117
|
-
sortable: true,
|
|
118
|
-
type: 'string',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'date',
|
|
122
|
-
required: true,
|
|
123
|
-
label: 'Fecha',
|
|
124
|
-
align: 'left',
|
|
125
|
-
sortable: true,
|
|
126
|
-
type: 'date'
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: 'available',
|
|
130
|
-
required: true,
|
|
131
|
-
label: 'Available',
|
|
132
|
-
align: 'left',
|
|
133
|
-
sortable: true,
|
|
134
|
-
showBasicCheckbox: true,
|
|
135
|
-
type: 'boolean',
|
|
136
|
-
checkBoxDataCy: 'checkbox'
|
|
131
|
+
name: 'Frozen Yogurt',
|
|
132
|
+
calories: 159,
|
|
133
|
+
fat: 6.0,
|
|
134
|
+
carbs: 24,
|
|
135
|
+
protein: 4.0,
|
|
136
|
+
sodium: 87,
|
|
137
|
+
calcium: '14%',
|
|
138
|
+
iron: '1%'
|
|
137
139
|
},
|
|
138
140
|
{
|
|
139
|
-
name: '
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
name: 'Ice cream sandwich',
|
|
142
|
+
calories: 237,
|
|
143
|
+
fat: 9.0,
|
|
144
|
+
carbs: 37,
|
|
145
|
+
protein: 4.3,
|
|
146
|
+
sodium: 129,
|
|
147
|
+
calcium: '8%',
|
|
148
|
+
iron: '1%'
|
|
146
149
|
},
|
|
147
150
|
{
|
|
148
|
-
name: '
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
popupEditDataCy: '',
|
|
157
|
-
mask: '#####',
|
|
158
|
-
showSelectNumberOptions: false,
|
|
159
|
-
popupEditInputtype: 'number',
|
|
160
|
-
type: 'number'
|
|
151
|
+
name: 'Eclair',
|
|
152
|
+
calories: 262,
|
|
153
|
+
fat: 16.0,
|
|
154
|
+
carbs: 23,
|
|
155
|
+
protein: 6.0,
|
|
156
|
+
sodium: 337,
|
|
157
|
+
calcium: '6%',
|
|
158
|
+
iron: '7%'
|
|
161
159
|
},
|
|
162
160
|
{
|
|
163
|
-
name: '
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
btnColor: 'primary',
|
|
172
|
-
type: 'number'
|
|
161
|
+
name: 'Cupcake',
|
|
162
|
+
calories: 305,
|
|
163
|
+
fat: 3.7,
|
|
164
|
+
carbs: 67,
|
|
165
|
+
protein: 4.3,
|
|
166
|
+
sodium: 413,
|
|
167
|
+
calcium: '3%',
|
|
168
|
+
iron: '8%'
|
|
173
169
|
},
|
|
174
170
|
{
|
|
175
|
-
name: '
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
type: 'string'
|
|
171
|
+
name: 'Gingerbread',
|
|
172
|
+
calories: 356,
|
|
173
|
+
fat: 16.0,
|
|
174
|
+
carbs: 49,
|
|
175
|
+
protein: 3.9,
|
|
176
|
+
sodium: 327,
|
|
177
|
+
calcium: '7%',
|
|
178
|
+
iron: '16%'
|
|
184
179
|
},
|
|
185
180
|
{
|
|
186
|
-
name: '
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
checkBoxColorCaseTrue: 'positive',
|
|
195
|
-
checkBoxColorCaseFalse: 'negative',
|
|
196
|
-
checkBoxDataCy: '',
|
|
197
|
-
type: 'boolean'
|
|
181
|
+
name: 'Jelly bean',
|
|
182
|
+
calories: 375,
|
|
183
|
+
fat: 0.0,
|
|
184
|
+
carbs: 94,
|
|
185
|
+
protein: 0.0,
|
|
186
|
+
sodium: 50,
|
|
187
|
+
calcium: '0%',
|
|
188
|
+
iron: '0%'
|
|
198
189
|
},
|
|
199
190
|
{
|
|
200
|
-
name: '
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
popupEditInputtype: 'text',
|
|
209
|
-
popupEditDataCy: '',
|
|
210
|
-
showInputPopupEdit: true,
|
|
211
|
-
type: 'string'
|
|
191
|
+
name: 'Lollipop',
|
|
192
|
+
calories: 392,
|
|
193
|
+
fat: 0.2,
|
|
194
|
+
carbs: 98,
|
|
195
|
+
protein: 0,
|
|
196
|
+
sodium: 38,
|
|
197
|
+
calcium: '0%',
|
|
198
|
+
iron: '2%'
|
|
212
199
|
},
|
|
213
200
|
{
|
|
214
|
-
name: '
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
201
|
+
name: 'Honeycomb',
|
|
202
|
+
calories: 408,
|
|
203
|
+
fat: 3.2,
|
|
204
|
+
carbs: 87,
|
|
205
|
+
protein: 6.5,
|
|
206
|
+
sodium: 562,
|
|
207
|
+
calcium: '0%',
|
|
208
|
+
iron: '45%'
|
|
218
209
|
},
|
|
219
210
|
{
|
|
220
|
-
name: '
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
211
|
+
name: 'Donut',
|
|
212
|
+
calories: 452,
|
|
213
|
+
fat: 25.0,
|
|
214
|
+
carbs: 51,
|
|
215
|
+
protein: 4.9,
|
|
216
|
+
sodium: 326,
|
|
217
|
+
calcium: '2%',
|
|
218
|
+
iron: '22%'
|
|
225
219
|
},
|
|
226
220
|
{
|
|
227
|
-
name: '
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
name: 'KitKat',
|
|
222
|
+
calories: 518,
|
|
223
|
+
fat: 26.0,
|
|
224
|
+
carbs: 65,
|
|
225
|
+
protein: 7,
|
|
226
|
+
sodium: 54,
|
|
227
|
+
calcium: '12%',
|
|
228
|
+
iron: '6%'
|
|
232
229
|
}
|
|
233
|
-
]
|
|
234
|
-
rows:[],
|
|
235
|
-
rowsData: [
|
|
236
|
-
{
|
|
237
|
-
id: 1,
|
|
238
|
-
name: 'Frozen Yogurt',
|
|
239
|
-
booleanIcon: true,
|
|
240
|
-
available: true,
|
|
241
|
-
calories: 159,
|
|
242
|
-
fat: 6.0,
|
|
243
|
-
carbs: 24,
|
|
244
|
-
checked: false,
|
|
245
|
-
protein: 4.0,
|
|
246
|
-
sodium: 87,
|
|
247
|
-
calcium: '14%',
|
|
248
|
-
iron: '1%'
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
id: 2,
|
|
252
|
-
name: 'Ice cream sandwich',
|
|
253
|
-
booleanIcon: true,
|
|
254
|
-
available: false,
|
|
255
|
-
calories: 237,
|
|
256
|
-
fat: 9.0,
|
|
257
|
-
carbs: 37,
|
|
258
|
-
checked: false,
|
|
259
|
-
protein: 4.3,
|
|
260
|
-
sodium: 129,
|
|
261
|
-
calcium: '8%',
|
|
262
|
-
iron: '1%'
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
id: 3,
|
|
266
|
-
name: 'Eclair',
|
|
267
|
-
booleanIcon: true,
|
|
268
|
-
available: true,
|
|
269
|
-
calories: 262,
|
|
270
|
-
fat: 16.0,
|
|
271
|
-
carbs: 23,
|
|
272
|
-
checked: false,
|
|
273
|
-
protein: 6.0,
|
|
274
|
-
sodium: 337,
|
|
275
|
-
calcium: '6%',
|
|
276
|
-
iron: '7%'
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
id: 4,
|
|
280
|
-
name: 'Cupcake',
|
|
281
|
-
booleanIcon: false,
|
|
282
|
-
available: false,
|
|
283
|
-
calories: 305,
|
|
284
|
-
fat: 3.7,
|
|
285
|
-
carbs: 67,
|
|
286
|
-
checked: false,
|
|
287
|
-
protein: 4.3,
|
|
288
|
-
sodium: 413,
|
|
289
|
-
calcium: '3%',
|
|
290
|
-
iron: '8%'
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
id: 5,
|
|
294
|
-
name: 'Gingerbread',
|
|
295
|
-
booleanIcon: true,
|
|
296
|
-
available: true,
|
|
297
|
-
calories: 356,
|
|
298
|
-
fat: 16.0,
|
|
299
|
-
carbs: 49,
|
|
300
|
-
checked: false,
|
|
301
|
-
protein: 3.9,
|
|
302
|
-
sodium: 327,
|
|
303
|
-
calcium: '7%',
|
|
304
|
-
iron: '16%'
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
id: 5,
|
|
308
|
-
name: 'Jelly bean',
|
|
309
|
-
booleanIcon: false,
|
|
310
|
-
available: false,
|
|
311
|
-
calories: 375,
|
|
312
|
-
fat: 0.0,
|
|
313
|
-
carbs: 94,
|
|
314
|
-
checked: true,
|
|
315
|
-
protein: 0.0,
|
|
316
|
-
sodium: 50,
|
|
317
|
-
calcium: '0%',
|
|
318
|
-
iron: '0%'
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
id: 6,
|
|
322
|
-
name: 'Lollipop',
|
|
323
|
-
booleanIcon: true,
|
|
324
|
-
available: true,
|
|
325
|
-
calories: 392,
|
|
326
|
-
fat: 0.2,
|
|
327
|
-
carbs: 98,
|
|
328
|
-
checked: false,
|
|
329
|
-
protein: 0,
|
|
330
|
-
sodium: 38,
|
|
331
|
-
calcium: '0%',
|
|
332
|
-
iron: '2%'
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
id: 7,
|
|
336
|
-
name: 'Honeycomb',
|
|
337
|
-
booleanIcon: true,
|
|
338
|
-
available: false,
|
|
339
|
-
calories: 408,
|
|
340
|
-
fat: 3.2,
|
|
341
|
-
carbs: 87,
|
|
342
|
-
checked: true,
|
|
343
|
-
protein: 6.5,
|
|
344
|
-
sodium: 562,
|
|
345
|
-
calcium: '0%',
|
|
346
|
-
iron: '45%'
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
id: 8,
|
|
350
|
-
name: 'Donut',
|
|
351
|
-
booleanIcon: true,
|
|
352
|
-
available: true,
|
|
353
|
-
calories: 452,
|
|
354
|
-
fat: 25.0,
|
|
355
|
-
carbs: 51,
|
|
356
|
-
checked: false,
|
|
357
|
-
protein: 4.9,
|
|
358
|
-
sodium: 326,
|
|
359
|
-
calcium: '2%',
|
|
360
|
-
iron: '22%'
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
id: 9,
|
|
364
|
-
name: 'KitKat',
|
|
365
|
-
booleanIcon: false,
|
|
366
|
-
available: false,
|
|
367
|
-
calories: 518,
|
|
368
|
-
fat: 26.0,
|
|
369
|
-
carbs: 65,
|
|
370
|
-
checked: true,
|
|
371
|
-
protein: 7,
|
|
372
|
-
sodium: 54,
|
|
373
|
-
calcium: '12%',
|
|
374
|
-
iron: '6%'
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
id: 10,
|
|
378
|
-
name: 'Frozen Yogurt',
|
|
379
|
-
booleanIcon: true,
|
|
380
|
-
available: true,
|
|
381
|
-
calories: 159,
|
|
382
|
-
fat: 6.0,
|
|
383
|
-
carbs: 24,
|
|
384
|
-
checked: false,
|
|
385
|
-
protein: 4.0,
|
|
386
|
-
sodium: 87,
|
|
387
|
-
calcium: '14%',
|
|
388
|
-
iron: '1%'
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
id: 11,
|
|
392
|
-
name: 'Ice cream sandwich',
|
|
393
|
-
booleanIcon: true,
|
|
394
|
-
available: false,
|
|
395
|
-
calories: 237,
|
|
396
|
-
fat: 9.0,
|
|
397
|
-
carbs: 37,
|
|
398
|
-
checked: false,
|
|
399
|
-
protein: 4.3,
|
|
400
|
-
sodium: 129,
|
|
401
|
-
calcium: '8%',
|
|
402
|
-
iron: '1%'
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
id: 12,
|
|
406
|
-
name: 'Eclair',
|
|
407
|
-
booleanIcon: true,
|
|
408
|
-
available: true,
|
|
409
|
-
calories: 262,
|
|
410
|
-
fat: 16.0,
|
|
411
|
-
carbs: 23,
|
|
412
|
-
checked: false,
|
|
413
|
-
protein: 6.0,
|
|
414
|
-
sodium: 337,
|
|
415
|
-
calcium: '6%',
|
|
416
|
-
iron: '7%'
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
id: 13,
|
|
420
|
-
name: 'Cupcake',
|
|
421
|
-
booleanIcon: false,
|
|
422
|
-
available: false,
|
|
423
|
-
calories: 305,
|
|
424
|
-
fat: 3.7,
|
|
425
|
-
carbs: 67,
|
|
426
|
-
checked: false,
|
|
427
|
-
protein: 4.3,
|
|
428
|
-
sodium: 413,
|
|
429
|
-
calcium: '3%',
|
|
430
|
-
iron: '8%'
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
id: 14,
|
|
434
|
-
name: 'Gingerbread',
|
|
435
|
-
booleanIcon: true,
|
|
436
|
-
available: true,
|
|
437
|
-
calories: 356,
|
|
438
|
-
fat: 16.0,
|
|
439
|
-
carbs: 49,
|
|
440
|
-
checked: false,
|
|
441
|
-
protein: 3.9,
|
|
442
|
-
sodium: 327,
|
|
443
|
-
calcium: '7%',
|
|
444
|
-
iron: '16%'
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
id: 15,
|
|
448
|
-
name: 'Jelly bean',
|
|
449
|
-
booleanIcon: false,
|
|
450
|
-
available: false,
|
|
451
|
-
calories: 375,
|
|
452
|
-
fat: 0.0,
|
|
453
|
-
carbs: 94,
|
|
454
|
-
checked: true,
|
|
455
|
-
protein: 0.0,
|
|
456
|
-
sodium: 50,
|
|
457
|
-
calcium: '0%',
|
|
458
|
-
iron: '0%'
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
id: 16,
|
|
462
|
-
name: 'Lollipop',
|
|
463
|
-
booleanIcon: true,
|
|
464
|
-
available: true,
|
|
465
|
-
calories: 392,
|
|
466
|
-
fat: 0.2,
|
|
467
|
-
carbs: 98,
|
|
468
|
-
checked: false,
|
|
469
|
-
protein: 0,
|
|
470
|
-
sodium: 38,
|
|
471
|
-
calcium: '0%',
|
|
472
|
-
iron: '2%'
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
id: 17,
|
|
476
|
-
name: 'Honeycomb',
|
|
477
|
-
booleanIcon: true,
|
|
478
|
-
available: false,
|
|
479
|
-
calories: 408,
|
|
480
|
-
fat: 3.2,
|
|
481
|
-
carbs: 87,
|
|
482
|
-
checked: true,
|
|
483
|
-
protein: 6.5,
|
|
484
|
-
sodium: 562,
|
|
485
|
-
calcium: '0%',
|
|
486
|
-
iron: '45%'
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
id: 18,
|
|
490
|
-
name: 'Donut',
|
|
491
|
-
booleanIcon: true,
|
|
492
|
-
available: true,
|
|
493
|
-
calories: 452,
|
|
494
|
-
fat: 25.0,
|
|
495
|
-
carbs: 51,
|
|
496
|
-
checked: false,
|
|
497
|
-
protein: 4.9,
|
|
498
|
-
sodium: 326,
|
|
499
|
-
calcium: '2%',
|
|
500
|
-
iron: '22%'
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
id: 19,
|
|
504
|
-
name: 'KitKat',
|
|
505
|
-
booleanIcon: false,
|
|
506
|
-
available: false,
|
|
507
|
-
calories: 518,
|
|
508
|
-
fat: 26.0,
|
|
509
|
-
carbs: 65,
|
|
510
|
-
checked: true,
|
|
511
|
-
protein: 7,
|
|
512
|
-
sodium: 54,
|
|
513
|
-
calcium: '12%',
|
|
514
|
-
iron: '6%'
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
id: 20,
|
|
518
|
-
name: 'KitKat',
|
|
519
|
-
booleanIcon: false,
|
|
520
|
-
available: false,
|
|
521
|
-
calories: 518,
|
|
522
|
-
fat: 26.0,
|
|
523
|
-
carbs: 65,
|
|
524
|
-
checked: true,
|
|
525
|
-
protein: 7,
|
|
526
|
-
sodium: 54,
|
|
527
|
-
calcium: '12%',
|
|
528
|
-
iron: '6%'
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
id: 21,
|
|
532
|
-
name: 'KitKat',
|
|
533
|
-
booleanIcon: false,
|
|
534
|
-
available: false,
|
|
535
|
-
calories: 518,
|
|
536
|
-
fat: 26.0,
|
|
537
|
-
carbs: 65,
|
|
538
|
-
checked: true,
|
|
539
|
-
protein: 7,
|
|
540
|
-
sodium: 54,
|
|
541
|
-
calcium: '12%',
|
|
542
|
-
iron: '6%'
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
id: 22,
|
|
546
|
-
name: 'Frozen Yogurt',
|
|
547
|
-
booleanIcon: true,
|
|
548
|
-
available: true,
|
|
549
|
-
calories: 159,
|
|
550
|
-
fat: 6.0,
|
|
551
|
-
carbs: 24,
|
|
552
|
-
checked: false,
|
|
553
|
-
protein: 4.0,
|
|
554
|
-
sodium: 87,
|
|
555
|
-
calcium: '14%',
|
|
556
|
-
iron: '1%'
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
id: 23,
|
|
560
|
-
name: 'Ice cream sandwich',
|
|
561
|
-
booleanIcon: true,
|
|
562
|
-
available: false,
|
|
563
|
-
calories: 237,
|
|
564
|
-
fat: 9.0,
|
|
565
|
-
carbs: 37,
|
|
566
|
-
checked: false,
|
|
567
|
-
protein: 4.3,
|
|
568
|
-
sodium: 129,
|
|
569
|
-
calcium: '8%',
|
|
570
|
-
iron: '1%'
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
id: 24,
|
|
574
|
-
name: 'Eclair',
|
|
575
|
-
booleanIcon: true,
|
|
576
|
-
available: true,
|
|
577
|
-
calories: 262,
|
|
578
|
-
fat: 16.0,
|
|
579
|
-
carbs: 23,
|
|
580
|
-
checked: false,
|
|
581
|
-
protein: 6.0,
|
|
582
|
-
sodium: 337,
|
|
583
|
-
calcium: '6%',
|
|
584
|
-
iron: '7%'
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
id: 25,
|
|
588
|
-
name: 'Cupcake',
|
|
589
|
-
booleanIcon: false,
|
|
590
|
-
available: false,
|
|
591
|
-
calories: 305,
|
|
592
|
-
fat: 3.7,
|
|
593
|
-
carbs: 67,
|
|
594
|
-
checked: false,
|
|
595
|
-
protein: 4.3,
|
|
596
|
-
sodium: 413,
|
|
597
|
-
calcium: '3%',
|
|
598
|
-
iron: '8%'
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
id: 26,
|
|
602
|
-
name: 'Gingerbread',
|
|
603
|
-
booleanIcon: true,
|
|
604
|
-
available: true,
|
|
605
|
-
calories: 356,
|
|
606
|
-
fat: 16.0,
|
|
607
|
-
carbs: 49,
|
|
608
|
-
checked: false,
|
|
609
|
-
protein: 3.9,
|
|
610
|
-
sodium: 327,
|
|
611
|
-
calcium: '7%',
|
|
612
|
-
iron: '16%'
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
id: 27,
|
|
616
|
-
name: 'Jelly bean',
|
|
617
|
-
booleanIcon: false,
|
|
618
|
-
available: false,
|
|
619
|
-
calories: 375,
|
|
620
|
-
fat: 0.0,
|
|
621
|
-
carbs: 94,
|
|
622
|
-
checked: true,
|
|
623
|
-
protein: 0.0,
|
|
624
|
-
sodium: 50,
|
|
625
|
-
calcium: '0%',
|
|
626
|
-
iron: '0%'
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
id: 28,
|
|
630
|
-
name: 'Lollipop',
|
|
631
|
-
booleanIcon: true,
|
|
632
|
-
available: true,
|
|
633
|
-
calories: 392,
|
|
634
|
-
fat: 0.2,
|
|
635
|
-
carbs: 98,
|
|
636
|
-
checked: false,
|
|
637
|
-
protein: 0,
|
|
638
|
-
sodium: 38,
|
|
639
|
-
calcium: '0%',
|
|
640
|
-
iron: '2%'
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
id: 29,
|
|
644
|
-
name: 'Honeycomb',
|
|
645
|
-
booleanIcon: true,
|
|
646
|
-
available: false,
|
|
647
|
-
calories: 408,
|
|
648
|
-
fat: 3.2,
|
|
649
|
-
carbs: 87,
|
|
650
|
-
checked: true,
|
|
651
|
-
protein: 6.5,
|
|
652
|
-
sodium: 562,
|
|
653
|
-
calcium: '0%',
|
|
654
|
-
iron: '45%'
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
id: 30,
|
|
658
|
-
name: 'Donut',
|
|
659
|
-
booleanIcon: true,
|
|
660
|
-
available: true,
|
|
661
|
-
calories: 452,
|
|
662
|
-
fat: 25.0,
|
|
663
|
-
carbs: 51,
|
|
664
|
-
checked: false,
|
|
665
|
-
protein: 4.9,
|
|
666
|
-
sodium: 326,
|
|
667
|
-
calcium: '2%',
|
|
668
|
-
iron: '22%'
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
id: 31,
|
|
672
|
-
name: 'KitKat',
|
|
673
|
-
booleanIcon: false,
|
|
674
|
-
available: false,
|
|
675
|
-
calories: 518,
|
|
676
|
-
fat: 26.0,
|
|
677
|
-
carbs: 65,
|
|
678
|
-
checked: true,
|
|
679
|
-
protein: 7,
|
|
680
|
-
sodium: 54,
|
|
681
|
-
calcium: '12%',
|
|
682
|
-
iron: '6%'
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
id: 32,
|
|
686
|
-
name: 'Frozen Yogurt',
|
|
687
|
-
booleanIcon: true,
|
|
688
|
-
available: true,
|
|
689
|
-
calories: 159,
|
|
690
|
-
fat: 6.0,
|
|
691
|
-
carbs: 24,
|
|
692
|
-
checked: false,
|
|
693
|
-
protein: 4.0,
|
|
694
|
-
sodium: 87,
|
|
695
|
-
calcium: '14%',
|
|
696
|
-
iron: '1%'
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
id: 33,
|
|
700
|
-
name: 'Ice cream sandwich',
|
|
701
|
-
booleanIcon: true,
|
|
702
|
-
available: false,
|
|
703
|
-
calories: 237,
|
|
704
|
-
fat: 9.0,
|
|
705
|
-
carbs: 37,
|
|
706
|
-
checked: false,
|
|
707
|
-
protein: 4.3,
|
|
708
|
-
sodium: 129,
|
|
709
|
-
calcium: '8%',
|
|
710
|
-
iron: '1%'
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
id: 34,
|
|
714
|
-
name: 'Eclair',
|
|
715
|
-
booleanIcon: true,
|
|
716
|
-
available: true,
|
|
717
|
-
calories: 262,
|
|
718
|
-
fat: 16.0,
|
|
719
|
-
carbs: 23,
|
|
720
|
-
checked: false,
|
|
721
|
-
protein: 6.0,
|
|
722
|
-
sodium: 337,
|
|
723
|
-
calcium: '6%',
|
|
724
|
-
iron: '7%'
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
id: 35,
|
|
728
|
-
name: 'Cupcake',
|
|
729
|
-
booleanIcon: false,
|
|
730
|
-
available: false,
|
|
731
|
-
calories: 305,
|
|
732
|
-
fat: 3.7,
|
|
733
|
-
carbs: 67,
|
|
734
|
-
checked: false,
|
|
735
|
-
protein: 4.3,
|
|
736
|
-
sodium: 413,
|
|
737
|
-
calcium: '3%',
|
|
738
|
-
iron: '8%'
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
id: 36,
|
|
742
|
-
name: 'Gingerbread',
|
|
743
|
-
booleanIcon: true,
|
|
744
|
-
available: true,
|
|
745
|
-
calories: 356,
|
|
746
|
-
fat: 16.0,
|
|
747
|
-
carbs: 49,
|
|
748
|
-
checked: false,
|
|
749
|
-
protein: 3.9,
|
|
750
|
-
sodium: 327,
|
|
751
|
-
calcium: '7%',
|
|
752
|
-
iron: '16%'
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
id: 37,
|
|
756
|
-
name: 'Jelly bean',
|
|
757
|
-
booleanIcon: false,
|
|
758
|
-
available: false,
|
|
759
|
-
calories: 375,
|
|
760
|
-
fat: 0.0,
|
|
761
|
-
carbs: 94,
|
|
762
|
-
checked: true,
|
|
763
|
-
protein: 0.0,
|
|
764
|
-
sodium: 50,
|
|
765
|
-
calcium: '0%',
|
|
766
|
-
iron: '0%'
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
id: 38,
|
|
770
|
-
name: 'Lollipop',
|
|
771
|
-
booleanIcon: true,
|
|
772
|
-
available: true,
|
|
773
|
-
calories: 392,
|
|
774
|
-
fat: 0.2,
|
|
775
|
-
carbs: 98,
|
|
776
|
-
checked: false,
|
|
777
|
-
protein: 0,
|
|
778
|
-
sodium: 38,
|
|
779
|
-
calcium: '0%',
|
|
780
|
-
iron: '2%'
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
id: 39,
|
|
784
|
-
name: 'Honeycomb',
|
|
785
|
-
booleanIcon: true,
|
|
786
|
-
available: false,
|
|
787
|
-
calories: 408,
|
|
788
|
-
fat: 3.2,
|
|
789
|
-
carbs: 87,
|
|
790
|
-
checked: true,
|
|
791
|
-
protein: 6.5,
|
|
792
|
-
sodium: 562,
|
|
793
|
-
calcium: '0%',
|
|
794
|
-
iron: '45%'
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
id: 40,
|
|
798
|
-
name: 'Donut',
|
|
799
|
-
booleanIcon: true,
|
|
800
|
-
available: true,
|
|
801
|
-
calories: 452,
|
|
802
|
-
fat: 25.0,
|
|
803
|
-
carbs: 51,
|
|
804
|
-
checked: false,
|
|
805
|
-
protein: 4.9,
|
|
806
|
-
sodium: 326,
|
|
807
|
-
calcium: '2%',
|
|
808
|
-
iron: '22%'
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
id: 41,
|
|
812
|
-
name: 'KitKat',
|
|
813
|
-
booleanIcon: false,
|
|
814
|
-
available: false,
|
|
815
|
-
calories: 518,
|
|
816
|
-
fat: 26.0,
|
|
817
|
-
carbs: 65,
|
|
818
|
-
checked: true,
|
|
819
|
-
protein: 7,
|
|
820
|
-
sodium: 54,
|
|
821
|
-
calcium: '12%',
|
|
822
|
-
iron: '6%'
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
id: 42,
|
|
826
|
-
name: 'KitKat',
|
|
827
|
-
booleanIcon: false,
|
|
828
|
-
available: false,
|
|
829
|
-
calories: 518,
|
|
830
|
-
fat: 26.0,
|
|
831
|
-
carbs: 65,
|
|
832
|
-
checked: true,
|
|
833
|
-
protein: 7,
|
|
834
|
-
sodium: 54,
|
|
835
|
-
calcium: '12%',
|
|
836
|
-
iron: '6%'
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
id: 43,
|
|
840
|
-
name: 'KitKat',
|
|
841
|
-
booleanIcon: false,
|
|
842
|
-
available: false,
|
|
843
|
-
calories: 518,
|
|
844
|
-
fat: 26.0,
|
|
845
|
-
carbs: 65,
|
|
846
|
-
checked: true,
|
|
847
|
-
protein: 7,
|
|
848
|
-
sodium: 54,
|
|
849
|
-
calcium: '12%',
|
|
850
|
-
iron: '6%'
|
|
851
|
-
}
|
|
852
|
-
],
|
|
853
|
-
showSkeleton: false,
|
|
854
|
-
buttonsList: []
|
|
230
|
+
]
|
|
855
231
|
}
|
|
856
232
|
},
|
|
857
233
|
computed: {
|
|
@@ -859,25 +235,16 @@ export default {
|
|
|
859
235
|
return this.$q.screen.width <= this.tabletMaxWidth
|
|
860
236
|
}
|
|
861
237
|
},
|
|
862
|
-
|
|
238
|
+
watch: {
|
|
863
239
|
'$q.screen.width' (): void {
|
|
864
240
|
setTimeout(() => {
|
|
865
241
|
this.tableStyle = setTableHeight.setTableHeight()
|
|
866
|
-
|
|
867
|
-
// infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
242
|
+
|
|
868
243
|
}, 500)
|
|
869
|
-
},
|
|
870
|
-
showSkeleton (val: boolean) {
|
|
871
|
-
if (!val) {
|
|
872
|
-
setTimeout(() => {
|
|
873
|
-
this.tableStyle = setTableHeight.setTableHeight()
|
|
874
|
-
// this.$refs.table.handleInfiniteScrollTableCompositionAPi()
|
|
875
|
-
// infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
876
|
-
}, 500)
|
|
877
|
-
}
|
|
878
244
|
}
|
|
879
245
|
},
|
|
880
246
|
mounted () {
|
|
247
|
+
this.tableStyle = setTableHeight.setTableHeight()
|
|
881
248
|
this.showSkeleton = true
|
|
882
249
|
this.store.cleanTableFilter()
|
|
883
250
|
this.getRows()
|
|
@@ -885,15 +252,9 @@ export default {
|
|
|
885
252
|
},
|
|
886
253
|
methods: {
|
|
887
254
|
getRows () {
|
|
888
|
-
this.rows = this.
|
|
255
|
+
this.rows = this.generateRows()
|
|
889
256
|
setTimeout(()=> {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
this.$nextTick(() =>{
|
|
893
|
-
this.$refs.table.enableDragAndDrop = true
|
|
894
|
-
|
|
895
|
-
})
|
|
896
|
-
this.showSkeleton = false
|
|
257
|
+
this.showSkeleton = false
|
|
897
258
|
}, 1000)
|
|
898
259
|
},
|
|
899
260
|
onUpdateBasicCheckboxValue (rows: object []) {
|
|
@@ -939,6 +300,16 @@ export default {
|
|
|
939
300
|
icon: 'cancel',
|
|
940
301
|
spinner: false
|
|
941
302
|
})
|
|
303
|
+
},
|
|
304
|
+
generateRows () {
|
|
305
|
+
let generatedRows = [] as object[]
|
|
306
|
+
for (let i = 0; i < 200; i++) {
|
|
307
|
+
generatedRows = generatedRows.concat(this.seed.slice(0).map(r => ({ ...r })))
|
|
308
|
+
}
|
|
309
|
+
generatedRows.forEach((row, id) => {
|
|
310
|
+
row.id = id
|
|
311
|
+
})
|
|
312
|
+
return generatedRows
|
|
942
313
|
}
|
|
943
314
|
}
|
|
944
315
|
}
|