innoboxrr-vue-datatable 1.3.2 → 1.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innoboxrr-vue-datatable",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Datatable para vue3",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/DataTable.vue CHANGED
@@ -16,7 +16,7 @@
16
16
  v-if="action.policy"
17
17
  :name="action.params.to.name"
18
18
  :params="{...action.params.to.params, ...extraParams}"
19
- :query="action.params.to.query ? {...action.params.to.query} : null"
19
+ :query="action.params.to.query ? {...action.params.to.query, ...extraQuery} : {...extraQuery}"
20
20
  :icon="action.icon"
21
21
  :text="action.name" />
22
22
  <disabled-link-component
@@ -38,6 +38,9 @@
38
38
  </li>
39
39
  </nav-dropdown-component>
40
40
  </div>
41
+ <div v-else>
42
+ <div class="uk-width-expand"></div>
43
+ </div>
41
44
  <div v-if="hasFilter" class="uk-width-auto">
42
45
  <div class="uk-grid-divider uk-child-width-expand uk-text-center" uk-grid>
43
46
  <div>
@@ -85,6 +88,7 @@
85
88
  :actions="hasActions"
86
89
  :data-table="dataTable"
87
90
  :extra-params="extraParams"
91
+ :extra-query="extraQuery"
88
92
  :show-table-header="showTableHeader"
89
93
  :data-table-components="dataTableComponents"
90
94
  @sortColumn="sortColumn"
@@ -164,6 +168,10 @@
164
168
  type: Object,
165
169
  default: {}
166
170
  },
171
+ extraQuery: {
172
+ type: Object,
173
+ default: {}
174
+ },
167
175
  hideColumns: {
168
176
  type: Array,
169
177
  default: []
@@ -59,7 +59,7 @@
59
59
  v-if="action.policy"
60
60
  :name="action.params.to.name"
61
61
  :params="{...action.params.to.params, ...extraParams}"
62
- :query="action.params.to.query ? {...action.params.to.query} : null"
62
+ :query="action.params.to.query ? {...action.params.to.query, ...extraQuery} : {...extraQuery}"
63
63
  :icon="action.icon"
64
64
  :text="action.name" />
65
65
  <disabled-link-component
@@ -122,6 +122,10 @@
122
122
  type: Object,
123
123
  default: {}
124
124
  },
125
+ extraQuery: {
126
+ type: Object,
127
+ default: {}
128
+ },
125
129
  showTableHeader: {
126
130
  type: Boolean,
127
131
  default: true,