From e89a43342bd1123a2cd95afefded90021fa84077 Mon Sep 17 00:00:00 2001 From: Andrei Hrabouski Date: Thu, 12 Apr 2018 12:46:10 +0300 Subject: [PATCH] Datatables - data and api mode improvements (#159) * feat(datatable): add css class, update vuetable-2 version * feat(datatable): datamode - accept data as property * fix(datatable): default per page fix * feat(datatable): datamode - data as prop, advanced filtering * feat(datatable): api mode - filters, http-fetch and http-options * feat(datatable): additional button slot * feat(datatable): filterable fields to computed * feat(datatable): optional search field * fix(datatable): data mode pagination path --- package.json | 2 +- .../DataVisualisation.vue | 25 ++- .../data-visualisation-tab/TableData.js} | 14 +- src/components/tables/Table.vue | 18 +- .../vuestic-datatable/VuesticDataTable.vue | 198 ++++++++++++------ .../datatable-components/FilterBar.vue | 7 +- .../datatable-components/ItemsPerPage.vue | 6 + 7 files changed, 175 insertions(+), 95 deletions(-) rename src/{vuestic-theme/vuestic-components/vuestic-datatable/data/local-data.js => components/dashboard/data-visualisation-tab/TableData.js} (99%) diff --git a/package.json b/package.json index df05e8ac1..1360aecd1 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "vue-slider-component": "2.3.3", "vue-toasted": "^1.1.24", "vue2-circle-progress": "^1.0.3", - "vuetable-2": "1.7.0", + "vuetable-2": "1.7.5", "vuex": "^3.0.1", "vuex-i18n": "^1.7.0", "vuex-router-sync": "5.0.0" diff --git a/src/components/dashboard/data-visualisation-tab/DataVisualisation.vue b/src/components/dashboard/data-visualisation-tab/DataVisualisation.vue index 09547d856..fc8228606 100644 --- a/src/components/dashboard/data-visualisation-tab/DataVisualisation.vue +++ b/src/components/dashboard/data-visualisation-tab/DataVisualisation.vue @@ -7,15 +7,15 @@
- - +
@@ -24,7 +24,7 @@