-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
376 additions
and
228 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* vue-good-table v2.21.2 | ||
* vue-good-table v2.21.3 | ||
* (c) 2018-present xaksis <[email protected]> | ||
* https://github.com/xaksis/vue-good-table | ||
* Released under the MIT License. | ||
|
@@ -7476,14 +7476,19 @@ var script = { | |
} | ||
}, | ||
data: function data() { | ||
return {}; | ||
return { | ||
id: this.getId() | ||
}; | ||
}, | ||
computed: { | ||
pageInfo: function pageInfo() { | ||
return "".concat(this.ofText, " ").concat(this.lastPage); | ||
} | ||
}, | ||
methods: { | ||
getId: function getId() { | ||
return "vgt-page-input-".concat(Math.floor(Math.random() * Date.now())); | ||
}, | ||
changePage: function changePage(event) { | ||
var value = parseInt(event.target.value, 10); //! invalid number | ||
|
||
|
@@ -7589,15 +7594,21 @@ var __vue_render__ = function __vue_render__() { | |
|
||
return _c('div', { | ||
staticClass: "footer__navigation__page-info" | ||
}, [_c('form', [_c('label', { | ||
}, [_c('form', { | ||
on: { | ||
"submit": function submit($event) { | ||
$event.preventDefault(); | ||
} | ||
} | ||
}, [_c('label', { | ||
staticClass: "page-info__label", | ||
attrs: { | ||
"for": "change-page-input" | ||
"for": _vm.id | ||
} | ||
}, [_c('span', [_vm._v(_vm._s(_vm.pageText))]), _vm._v(" "), _c('input', { | ||
staticClass: "footer__navigation__page-info__current-entry", | ||
attrs: { | ||
"id": "change-page-input", | ||
"id": _vm.id, | ||
"aria-describedby": "change-page-hint", | ||
"aria-controls": "vgb-table", | ||
"type": "text" | ||
|
@@ -7631,7 +7642,7 @@ var __vue_staticRenderFns__ = []; | |
var __vue_inject_styles__ = undefined; | ||
/* scoped */ | ||
|
||
var __vue_scope_id__ = "data-v-3cd6e31f"; | ||
var __vue_scope_id__ = "data-v-46bdd082"; | ||
/* module identifier */ | ||
|
||
var __vue_module_identifier__ = undefined; | ||
|
@@ -7664,6 +7675,9 @@ var script$1 = { | |
rtl: { | ||
"default": false | ||
}, | ||
perPageDropdownEnabled: { | ||
"default": true | ||
}, | ||
customRowsPerPageDropdown: { | ||
"default": function _default() { | ||
return []; | ||
|
@@ -7697,6 +7711,7 @@ var script$1 = { | |
}, | ||
data: function data() { | ||
return { | ||
id: this.getId(), | ||
currentPage: 1, | ||
prevPage: 0, | ||
currentPerPage: 10, | ||
|
@@ -7750,6 +7765,9 @@ var script$1 = { | |
} | ||
}, | ||
methods: { | ||
getId: function getId() { | ||
return "vgt-select-rpp-".concat(Math.floor(Math.random() * Date.now())); | ||
}, | ||
// Change current page | ||
changePage: function changePage(pageNumber) { | ||
var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
|
@@ -7844,12 +7862,12 @@ var __vue_render__$1 = function __vue_render__() { | |
|
||
return _c('div', { | ||
staticClass: "vgt-wrap__footer vgt-clearfix" | ||
}, [_c('div', { | ||
}, [_vm.perPageDropdownEnabled ? _c('div', { | ||
staticClass: "footer__row-count vgt-pull-left" | ||
}, [_c('form', [_c('label', { | ||
staticClass: "footer__row-count__label", | ||
attrs: { | ||
"for": "select-rows-per-page" | ||
"for": _vm.id | ||
} | ||
}, [_vm._v(_vm._s(_vm.rowsPerPageText) + ":")]), _vm._v(" "), _c('select', { | ||
directives: [{ | ||
|
@@ -7860,7 +7878,7 @@ var __vue_render__$1 = function __vue_render__() { | |
}], | ||
staticClass: "footer__row-count__select", | ||
attrs: { | ||
"id": "select-rows-per-page", | ||
"id": _vm.id, | ||
"autocomplete": "off", | ||
"name": "perPageSelect", | ||
"aria-controls": "vgt-table" | ||
|
@@ -7882,12 +7900,12 @@ var __vue_render__$1 = function __vue_render__() { | |
domProps: { | ||
"value": option | ||
} | ||
}, [_vm._v("\n " + _vm._s(option) + "\n ")]); | ||
}, [_vm._v("\n " + _vm._s(option) + "\n ")]); | ||
}), _vm._v(" "), _vm.paginateDropdownAllowAll ? _c('option', { | ||
domProps: { | ||
"value": _vm.total | ||
} | ||
}, [_vm._v(_vm._s(_vm.allText))]) : _vm._e()], 2)])]), _vm._v(" "), _c('div', { | ||
}, [_vm._v(_vm._s(_vm.allText))]) : _vm._e()], 2)])]) : _vm._e(), _vm._v(" "), _c('div', { | ||
staticClass: "footer__navigation vgt-pull-right" | ||
}, [_vm.mode === 'pages' ? _c('pagination-page-info', { | ||
attrs: { | ||
|
@@ -8019,13 +8037,13 @@ var __vue_component__$1 = /*#__PURE__*/normalizeComponent({ | |
// | ||
// | ||
// | ||
// | ||
var script$2 = { | ||
name: 'VgtGlobalSearch', | ||
props: ['value', 'searchEnabled', 'globalSearchPlaceholder'], | ||
data: function data() { | ||
return { | ||
globalSearchTerm: null | ||
globalSearchTerm: null, | ||
id: this.getId() | ||
}; | ||
}, | ||
computed: { | ||
|
@@ -8042,6 +8060,9 @@ var script$2 = { | |
}, | ||
entered: function entered(value) { | ||
this.$emit('on-enter', value); | ||
}, | ||
getId: function getId() { | ||
return "vgt-search-".concat(Math.floor(Math.random() * Date.now())); | ||
} | ||
} | ||
}; | ||
|
@@ -8064,11 +8085,22 @@ var __vue_render__$2 = function __vue_render__() { | |
}, [_vm.searchEnabled ? _c('form', { | ||
attrs: { | ||
"role": "search" | ||
}, | ||
on: { | ||
"submit": function submit($event) { | ||
$event.preventDefault(); | ||
} | ||
} | ||
}, [_vm._m(0), _vm._v(" "), _c('input', { | ||
}, [_c('label', { | ||
attrs: { | ||
"for": _vm.id | ||
} | ||
}, [_vm._m(0), _vm._v(" "), _c('span', { | ||
staticClass: "sr-only" | ||
}, [_vm._v("Search")])]), _vm._v(" "), _c('input', { | ||
staticClass: "vgt-input vgt-pull-left", | ||
attrs: { | ||
"id": "vgt-search", | ||
"id": _vm.id, | ||
"type": "text", | ||
"placeholder": null | ||
}, | ||
|
@@ -8099,20 +8131,14 @@ var __vue_staticRenderFns__$2 = [function () { | |
|
||
var _c = _vm._self._c || _h; | ||
|
||
return _c('label', { | ||
attrs: { | ||
"for": "vgt-search" | ||
} | ||
}, [_c('span', { | ||
return _c('span', { | ||
staticClass: "input__icon", | ||
attrs: { | ||
"aria-hidden": "true" | ||
} | ||
}, [_c('div', { | ||
staticClass: "magnifying-glass" | ||
})]), _vm._v(" "), _c('span', { | ||
staticClass: "sr-only" | ||
}, [_vm._v("Search")])]); | ||
})]); | ||
}]; | ||
/* style */ | ||
|
||
|
@@ -8194,6 +8220,10 @@ var script$3 = { | |
isDropdownArray: function isDropdownArray(column) { | ||
return this.isDropdown(column) && _typeof(column.filterOptions.filterDropdownItems[0]) !== 'object'; | ||
}, | ||
getClasses: function getClasses(column) { | ||
var firstClass = 'filter-th'; | ||
return column.filterOptions && column.filterOptions.styleClass ? [firstClass].concat(_toConsumableArray(column.filterOptions.styleClass.split(' '))).join(' ') : firstClass; | ||
}, | ||
// get column's defined placeholder or default one | ||
getPlaceholder: function getPlaceholder(column) { | ||
var placeholder = this.isFilterable(column) && column.filterOptions.placeholder || "Filter ".concat(column.label); | ||
|
@@ -8265,7 +8295,7 @@ var __vue_render__$3 = function __vue_render__() { | |
return _vm.hasFilterRow ? _c('tr', [_vm.lineNumbers ? _c('th') : _vm._e(), _vm._v(" "), _vm.selectable ? _c('th') : _vm._e(), _vm._v(" "), _vm._l(_vm.columns, function (column, index) { | ||
return !column.hidden ? _c('th', { | ||
key: index, | ||
staticClass: "filter-th" | ||
"class": _vm.getClasses(column) | ||
}, [_vm._t("column-filter", [_vm.isFilterable(column) ? _c('div', [!_vm.isDropdown(column) ? _c('input', { | ||
staticClass: "vgt-input", | ||
attrs: { | ||
|
@@ -8351,7 +8381,7 @@ var __vue_staticRenderFns__$3 = []; | |
var __vue_inject_styles__$3 = undefined; | ||
/* scoped */ | ||
|
||
var __vue_scope_id__$3 = "data-v-7fda9668"; | ||
var __vue_scope_id__$3 = "data-v-76ee74f4"; | ||
/* module identifier */ | ||
|
||
var __vue_module_identifier__$3 = undefined; | ||
|
@@ -13744,6 +13774,7 @@ var script$6 = { | |
enabled: false, | ||
perPage: 10, | ||
perPageDropdown: null, | ||
perPageDropdownEnabled: true, | ||
position: 'bottom', | ||
dropdownAllowAll: true, | ||
mode: 'records' // or pages | ||
|
@@ -14696,6 +14727,7 @@ var script$6 = { | |
perPage = _this$paginationOptio2.perPage, | ||
position = _this$paginationOptio2.position, | ||
perPageDropdown = _this$paginationOptio2.perPageDropdown, | ||
perPageDropdownEnabled = _this$paginationOptio2.perPageDropdownEnabled, | ||
dropdownAllowAll = _this$paginationOptio2.dropdownAllowAll, | ||
nextLabel = _this$paginationOptio2.nextLabel, | ||
prevLabel = _this$paginationOptio2.prevLabel, | ||
|
@@ -14733,6 +14765,10 @@ var script$6 = { | |
} | ||
} | ||
|
||
if (typeof perPageDropdownEnabled === 'boolean') { | ||
this.perPageDropdownEnabled = perPageDropdownEnabled; | ||
} | ||
|
||
if (typeof dropdownAllowAll === 'boolean') { | ||
this.paginateDropdownAllowAll = dropdownAllowAll; | ||
} | ||
|
@@ -14916,6 +14952,7 @@ var __vue_render__$6 = function __vue_render__() { | |
"nextText": _vm.nextText, | ||
"prevText": _vm.prevText, | ||
"rowsPerPageText": _vm.rowsPerPageText, | ||
"perPageDropdownEnabled": _vm.perPageDropdownEnabled, | ||
"customRowsPerPageDropdown": _vm.customRowsPerPageDropdown, | ||
"paginateDropdownAllowAll": _vm.paginateDropdownAllowAll, | ||
"ofText": _vm.ofText, | ||
|
@@ -15006,6 +15043,14 @@ var __vue_render__$6 = function __vue_render__() { | |
"column": props.column | ||
})]; | ||
} | ||
}, { | ||
key: "column-filter", | ||
fn: function fn(props) { | ||
return [_vm._t("column-filter", null, { | ||
"column": props.column, | ||
"updateFilters": props.updateFilters | ||
})]; | ||
} | ||
}], null, true) | ||
})], 1) : _vm._e()]), _vm._v(" "), _c('div', { | ||
"class": { | ||
|
@@ -15205,6 +15250,7 @@ var __vue_render__$6 = function __vue_render__() { | |
"nextText": _vm.nextText, | ||
"prevText": _vm.prevText, | ||
"rowsPerPageText": _vm.rowsPerPageText, | ||
"perPageDropdownEnabled": _vm.perPageDropdownEnabled, | ||
"customRowsPerPageDropdown": _vm.customRowsPerPageDropdown, | ||
"paginateDropdownAllowAll": _vm.paginateDropdownAllowAll, | ||
"ofText": _vm.ofText, | ||
|
Oops, something went wrong.