Skip to content

Commit

Permalink
docs built
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Jan 17, 2021
1 parent 9d54e94 commit 4e490fd
Show file tree
Hide file tree
Showing 65 changed files with 376 additions and 228 deletions.
2 changes: 1 addition & 1 deletion dist/vue-good-table.cjs.css

Large diffs are not rendered by default.

96 changes: 71 additions & 25 deletions dist/vue-good-table.cjs.js
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.
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -7664,6 +7675,9 @@ var script$1 = {
rtl: {
"default": false
},
perPageDropdownEnabled: {
"default": true
},
customRowsPerPageDropdown: {
"default": function _default() {
return [];
Expand Down Expand Up @@ -7697,6 +7711,7 @@ var script$1 = {
},
data: function data() {
return {
id: this.getId(),
currentPage: 1,
prevPage: 0,
currentPerPage: 10,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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: [{
Expand All @@ -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"
Expand All @@ -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: {
Expand Down Expand Up @@ -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: {
Expand All @@ -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()));
}
}
};
Expand All @@ -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
},
Expand Down Expand Up @@ -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 */

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -13744,6 +13774,7 @@ var script$6 = {
enabled: false,
perPage: 10,
perPageDropdown: null,
perPageDropdownEnabled: true,
position: 'bottom',
dropdownAllowAll: true,
mode: 'records' // or pages
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -14733,6 +14765,10 @@ var script$6 = {
}
}

if (typeof perPageDropdownEnabled === 'boolean') {
this.perPageDropdownEnabled = perPageDropdownEnabled;
}

if (typeof dropdownAllowAll === 'boolean') {
this.paginateDropdownAllowAll = dropdownAllowAll;
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 4e490fd

Please sign in to comment.