Socket
Socket
Sign inDemoInstall

bootstrap-table

Package Overview
Dependencies
0
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.13.3 to 1.13.4

site/_includes/icons/facebook.svg

2

bootstrap-table.jquery.json
{
"name": "bootstrap-table",
"version": "1.13.3",
"version": "1.13.4",
"title": "Bootstrap Table",

@@ -5,0 +5,0 @@ "description": "An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features.",

ChangeLog
---------
### 1.13.4
- **New(sticky-header extension):** Rewrote sticky-header extension to ES6.
- **New(sticky-header extension):** Added to support bootstrap v4 and `theadClasses` option.
- **New(auto-refresh extension):** Icons update to font-awesome 5.
- **New(examples):** Added examples Algolia search.
- **Update(js):** Fixed `theadClasses` is not set when a `thead` exists.
- **Update(js):** Fixed table resize after mergeCell the first row.
- **Update(cookie extension):** Fixed cookie extension broken bug.
- **Update(cookie extension):** Fixed cookie extension unicode encode bug.
- **Update(package):** Added `sass` devDependencies.
### 1.13.3
- **New(js):** Supported full table classes of bootstrap v4.
- **New(css):** Rewrited bootstrap-table.css to scss.
- **New(accent-neutralise extension):** Rewrited accent-neutralise extension to ES6.
- **New(addrbar extension):** Rewrited addrbar extension to ES6 and supported attribute option.
- **New(css):** Rewrote bootstrap-table.css to scss.
- **New(accent-neutralise extension):** Rewrote accent-neutralise extension to ES6.
- **New(addrbar extension):** Rewrote addrbar extension to ES6 and supported attribute option.
- **New(group-by-v2 extension):** New `groupByFormatter` option.

@@ -23,3 +35,3 @@ - **New(pipeline extension):** New pipeline extension `bootstrap-table-pipeline`.

- **New(js):** Added `paginationSuccessivelySize`, `paginationPagesBySide` and `paginationUseIntermediate` pagination options.
- **New(cookie extension):** Rewrited cookie extension to ES6.
- **New(cookie extension):** Rewrote cookie extension to ES6.
- **New(cookie extension):** Saved `filterBy` method.

@@ -26,0 +38,0 @@ - **New(filter-control extension):** Added `placeholder` as a empty option to the select controls.

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

@@ -130,3 +130,3 @@ (function (global, factory) {

* @webSite: http://djhvscf.github.io/Blog
* @version: v1.0.0
* @update: zhixin wen <wenzhixin2010@gmail.com>
*/

@@ -133,0 +133,0 @@

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

@@ -129,6 +129,6 @@ (function (global, factory) {

* @author: general
* @version: 1.0.0
* @website: note.generals.space
* @email: generals.space@gmail.com
* @github: https://github.com/generals-space/bootstrap-table-addrbar
* @update: zhixin wen <wenzhixin2010@gmail.com>
*/

@@ -135,0 +135,0 @@

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

@@ -35,3 +35,3 @@ (function (global, factory) {

$.extend($.fn.bootstrapTable.defaults.icons, {
autoRefresh: 'glyphicon-time icon-time'
autoRefresh: $.fn.bootstrapTable.utils.bootstrapVersion === 4 ? 'fa-clock' : 'glyphicon-time icon-time'
});

@@ -38,0 +38,0 @@

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -10,2 +10,2 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableAutoRefresh={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.extend(a.fn.bootstrapTable.defaults,{autoRefresh:!1,autoRefreshInterval:60,autoRefreshSilent:!0,autoRefreshStatus:!0,autoRefreshFunction:null}),a.extend(a.fn.bootstrapTable.defaults.icons,{autoRefresh:'glyphicon-time icon-time'}),a.extend(a.fn.bootstrapTable.locales,{formatAutoRefresh:function(){return'Auto Refresh'}}),a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales);var b=a.fn.bootstrapTable.Constructor,c=b.prototype.init,d=b.prototype.initToolbar,e=a.fn.bootstrapTable.utils.sprintf;b.prototype.init=function(){if(c.apply(this,Array.prototype.slice.apply(arguments)),this.options.autoRefresh&&this.options.autoRefreshStatus){var a=this;this.options.autoRefreshFunction=setInterval(function(){a.refresh({silent:a.options.autoRefreshSilent})},1e3*this.options.autoRefreshInterval)}},b.prototype.initToolbar=function(){if(d.apply(this,Array.prototype.slice.apply(arguments)),this.options.autoRefresh){var b=this.$toolbar.find('>.btn-group'),c=b.find('.auto-refresh');c.length||(c=a([e('<button class="btn btn-default auto-refresh %s" ',this.options.autoRefreshStatus?'enabled':''),'type="button" ',e('title="%s">',this.options.formatAutoRefresh()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.autoRefresh),'</button>'].join('')).appendTo(b),c.on('click',a.proxy(this.toggleAutoRefresh,this)))}},b.prototype.toggleAutoRefresh=function(){if(this.options.autoRefresh){if(this.options.autoRefreshStatus)clearInterval(this.options.autoRefreshFunction),this.$toolbar.find('>.btn-group').find('.auto-refresh').removeClass('enabled');else{var a=this;this.options.autoRefreshFunction=setInterval(function(){a.refresh({silent:a.options.autoRefreshSilent})},1e3*this.options.autoRefreshInterval),this.$toolbar.find('>.btn-group').find('.auto-refresh').addClass('enabled')}this.options.autoRefreshStatus=!this.options.autoRefreshStatus}}})(jQuery)});
(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableAutoRefresh={exports:{}}.exports}})(this,function(){'use strict';(function(a){a.extend(a.fn.bootstrapTable.defaults,{autoRefresh:!1,autoRefreshInterval:60,autoRefreshSilent:!0,autoRefreshStatus:!0,autoRefreshFunction:null}),a.extend(a.fn.bootstrapTable.defaults.icons,{autoRefresh:4===a.fn.bootstrapTable.utils.bootstrapVersion?'fa-clock':'glyphicon-time icon-time'}),a.extend(a.fn.bootstrapTable.locales,{formatAutoRefresh:function(){return'Auto Refresh'}}),a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales);var b=a.fn.bootstrapTable.Constructor,c=b.prototype.init,d=b.prototype.initToolbar,e=a.fn.bootstrapTable.utils.sprintf;b.prototype.init=function(){if(c.apply(this,Array.prototype.slice.apply(arguments)),this.options.autoRefresh&&this.options.autoRefreshStatus){var a=this;this.options.autoRefreshFunction=setInterval(function(){a.refresh({silent:a.options.autoRefreshSilent})},1e3*this.options.autoRefreshInterval)}},b.prototype.initToolbar=function(){if(d.apply(this,Array.prototype.slice.apply(arguments)),this.options.autoRefresh){var b=this.$toolbar.find('>.btn-group'),c=b.find('.auto-refresh');c.length||(c=a([e('<button class="btn btn-default auto-refresh %s" ',this.options.autoRefreshStatus?'enabled':''),'type="button" ',e('title="%s">',this.options.formatAutoRefresh()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.autoRefresh),'</button>'].join('')).appendTo(b),c.on('click',a.proxy(this.toggleAutoRefresh,this)))}},b.prototype.toggleAutoRefresh=function(){if(this.options.autoRefresh){if(this.options.autoRefreshStatus)clearInterval(this.options.autoRefreshFunction),this.$toolbar.find('>.btn-group').find('.auto-refresh').removeClass('enabled');else{var a=this;this.options.autoRefreshFunction=setInterval(function(){a.refresh({silent:a.options.autoRefreshSilent})},1e3*this.options.autoRefreshInterval),this.$toolbar.find('>.btn-group').find('.auto-refresh').addClass('enabled')}this.options.autoRefreshStatus=!this.options.autoRefreshStatus}}})(jQuery)});

@@ -92,4 +92,2 @@ (function (global, factory) {

* @webSite: http://djhvscf.github.io/Blog
* @version: v1.2.4
*
* @update zhixin wen <wenzhixin2010@gmail.com>

@@ -154,3 +152,3 @@ */

case 'cookieStorage':
document.cookie = [cookieName, '=', cookieValue, '; expires=' + UtilsCookie.calculateExpiration(that.options.cookieExpire), that.options.cookiePath ? '; path=' + that.options.cookiePath : '', that.options.cookieDomain ? '; domain=' + that.options.cookieDomain : '', that.options.cookieSecure ? '; secure' : ''].join('');
document.cookie = [cookieName, '=', encodeURIComponent(cookieValue), '; expires=' + UtilsCookie.calculateExpiration(that.options.cookieExpire), that.options.cookiePath ? '; path=' + that.options.cookiePath : '', that.options.cookieDomain ? '; domain=' + that.options.cookieDomain : '', that.options.cookieSecure ? '; secure' : ''].join('');
break;

@@ -184,3 +182,3 @@ case 'localStorage':

var parts = value.split('; ' + cookieName + '=');
return parts.length === 2 ? parts.pop().split(';').shift() : null;
return parts.length === 2 ? decodeURIComponent(parts.pop().split(';').shift()) : null;
case 'localStorage':

@@ -353,5 +351,6 @@ return localStorage.getItem(cookieName);

value: function initServer() {
var bootstrapTable = this;
if (bootstrapTable.options.cookie && bootstrapTable.options.filterControl && !bootstrapTable.options.filterControlValuesLoaded) {
var cookie = JSON.parse(UtilsCookie.getCookie(bootstrapTable, bootstrapTable.options.cookieIdTable, UtilsCookie.cookieIds.filterControl));
var _get2;
if (this.options.cookie && this.options.filterControl && !this.options.filterControlValuesLoaded) {
var cookie = JSON.parse(UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.filterControl));
if (cookie) {

@@ -361,3 +360,8 @@ return;

}
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initServer', this).call(this);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
(_get2 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initServer', this)).call.apply(_get2, [this].concat(args));
}

@@ -367,3 +371,9 @@ }, {

value: function initTable() {
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initTable', this).call(this);
var _get3;
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
(_get3 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initTable', this)).call.apply(_get3, [this].concat(args));
this.initCookie();

@@ -374,4 +384,9 @@ }

value: function onSort() {
var event = arguments.length <= 0 ? undefined : arguments[0];
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onSort', this).call(this, event);
var _get4;
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
(_get4 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onSort', this)).call.apply(_get4, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder);

@@ -383,6 +398,10 @@ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName);

value: function onPageNumber() {
var event = arguments.length <= 0 ? undefined : arguments[0];
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPageNumber', this).call(this, event);
var _get5;
for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
args[_key4] = arguments[_key4];
}
(_get5 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPageNumber', this)).call.apply(_get5, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
return false;
}

@@ -392,7 +411,11 @@ }, {

value: function onPageListChange() {
var event = arguments.length <= 0 ? undefined : arguments[0];
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPageListChange', this).call(this, event);
var _get6;
for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
args[_key5] = arguments[_key5];
}
(_get6 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPageListChange', this)).call.apply(_get6, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize);
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
return false;
}

@@ -402,6 +425,10 @@ }, {

value: function onPagePre() {
var event = arguments.length <= 0 ? undefined : arguments[0];
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPagePre', this).call(this, event);
var _get7;
for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
args[_key6] = arguments[_key6];
}
(_get7 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPagePre', this)).call.apply(_get7, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
return false;
}

@@ -411,6 +438,10 @@ }, {

value: function onPageNext() {
var event = arguments.length <= 0 ? undefined : arguments[0];
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPageNext', this).call(this, event);
var _get8;
for (var _len7 = arguments.length, args = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
args[_key7] = arguments[_key7];
}
(_get8 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onPageNext', this)).call.apply(_get8, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
return false;
}

@@ -420,4 +451,10 @@ }, {

value: function toggleColumn() {
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'toggleColumn', this).call(this);
var _get9;
for (var _len8 = arguments.length, args = Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
args[_key8] = arguments[_key8];
}
(_get9 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'toggleColumn', this)).call.apply(_get9, [this].concat(args));
var visibleColumns = [];

@@ -436,3 +473,3 @@

value: function selectPage(page) {
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'selectPage', this).call(this);
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'selectPage', this).call(this, page);
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, page);

@@ -442,11 +479,6 @@ }

key: 'onSearch',
value: function onSearch() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
value: function onSearch(event) {
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onSearch', this).call(this, event);
var target = Array.prototype.slice.apply(args);
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'onSearch', this).call(this, this, target);
if ($(target[0].currentTarget).parent().hasClass('search')) {
if ($(event.currentTarget).parent().hasClass('search')) {
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.searchText, this.searchText);

@@ -459,3 +491,9 @@ }

value: function filterBy() {
_get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'filterBy', this).call(this);
var _get10;
for (var _len9 = arguments.length, args = Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
args[_key9] = arguments[_key9];
}
(_get10 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'filterBy', this)).call.apply(_get10, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.filterBy, JSON.stringify(this.filterColumns));

@@ -462,0 +500,0 @@ }

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -10,2 +10,2 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableCookie={exports:{}}.exports}})(this,function(){'use strict';function a(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function b(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function c(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var d=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function a(b,c,d){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,c);if(e===void 0){var f=Object.getPrototypeOf(b);return null===f?void 0:a(f,c,d)}if('value'in e)return e.value;var g=e.get;return void 0===g?void 0:g.call(d)};(function(f){var g={cookieIds:{sortOrder:'bs.table.sortOrder',sortName:'bs.table.sortName',pageNumber:'bs.table.pageNumber',pageList:'bs.table.pageList',columns:'bs.table.columns',searchText:'bs.table.searchText',filterControl:'bs.table.filterControl',filterBy:'bs.table.filterBy'},getCurrentHeader:function(a){var b=a.$header;return a.options.height&&(b=a.$tableHeader),b},getCurrentSearchControls:function(a){var b='select, input';return a.options.height&&(b='table select, table input'),b},cookieEnabled:function(){return!!navigator.cookieEnabled},inArrayCookiesEnabled:function(a,b){for(var c=-1,d=0;d<b.length;d++)if(a.toLowerCase()===b[d].toLowerCase()){c=d;break}return c},setCookie:function(a,b,c){if(a.options.cookie&&g.cookieEnabled()&&''!==a.options.cookieIdTable&&-1!==g.inArrayCookiesEnabled(b,a.options.cookiesEnabled)){switch(b=a.options.cookieIdTable+'.'+b,a.options.cookieStorage){case'cookieStorage':document.cookie=[b,'=',c,'; expires='+g.calculateExpiration(a.options.cookieExpire),a.options.cookiePath?'; path='+a.options.cookiePath:'',a.options.cookieDomain?'; domain='+a.options.cookieDomain:'',a.options.cookieSecure?'; secure':''].join('');break;case'localStorage':localStorage.setItem(b,c);break;case'sessionStorage':sessionStorage.setItem(b,c);break;default:return!1;}return!0}},getCookie:function(a,b,c){if(!c)return null;if(-1===g.inArrayCookiesEnabled(c,a.options.cookiesEnabled))return null;switch(c=b+'.'+c,a.options.cookieStorage){case'cookieStorage':var d='; '+document.cookie,e=d.split('; '+c+'=');return 2===e.length?e.pop().split(';').shift():null;case'localStorage':return localStorage.getItem(c);case'sessionStorage':return sessionStorage.getItem(c);default:return null;}},deleteCookie:function(a,b,c){switch(c=b+'.'+c,a.options.cookieStorage){case'cookieStorage':document.cookie=[encodeURIComponent(c),'=','; expires=Thu, 01 Jan 1970 00:00:00 GMT',a.options.cookiePath?'; path='+a.options.cookiePath:'',a.options.cookieDomain?'; domain='+a.options.cookieDomain:''].join('');break;case'localStorage':localStorage.removeItem(c);break;case'sessionStorage':sessionStorage.removeItem(c);break;default:return!1;}return!0},calculateExpiration:function(a){var b=a.replace(/[0-9]*/,'');switch(a=a.replace(/[A-Za-z]{1,2}/,''),b.toLowerCase()){case's':a=+a;break;case'mi':a*=60;break;case'h':a=60*(60*a);break;case'd':a=60*(60*(24*a));break;case'm':a=60*(60*(24*(30*a)));break;case'y':a=60*(60*(24*(365*a)));break;default:a=void 0;}if(!a)return'';var c=new Date;return c.setTime(c.getTime()+1e3*a),c.toGMTString()},initCookieFilters:function(a){setTimeout(function(){var b=JSON.parse(g.getCookie(a,a.options.cookieIdTable,g.cookieIds.filterControl));if(!a.options.filterControlValuesLoaded&&b){var c={},d=g.getCurrentHeader(a),e=g.getCurrentSearchControls(a),h=function(a,b){f(b).each(function(b,d){''!==d.text&&(f(a).val(d.text),c[d.field]=d.text)})};d.find(e).each(function(){var a=f(this).closest('[data-field]').data('field'),c=b.filter(function(b){return b.field===a});h(this,c)}),a.initColumnSearch(c),a.options.filterControlValuesLoaded=!0,a.initServer()}},250)}};f.extend(f.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:'2h',cookiePath:null,cookieDomain:null,cookieSecure:null,cookieIdTable:'',cookiesEnabled:['bs.table.sortOrder','bs.table.sortName','bs.table.pageNumber','bs.table.pageList','bs.table.columns','bs.table.searchText','bs.table.filterControl','bs.table.filterBy'],cookieStorage:'cookieStorage',filterControls:[],filterControlValuesLoaded:!1}),f.fn.bootstrapTable.methods.push('getCookies'),f.fn.bootstrapTable.methods.push('deleteCookie'),f.extend(f.fn.bootstrapTable.utils,{setCookie:g.setCookie,getCookie:g.getCookie}),f.BootstrapTable=function(h){function i(){return a(this,i),b(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return c(i,h),d(i,[{key:'init',value:function(){var a=JSON.parse(g.getCookie(this,this.options.cookieIdTable,g.cookieIds.filterBy));if(this.filterColumns=a?a:{},this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled='string'==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace('[','').replace(']','').replace(/ /g,'').toLowerCase().split(','):this.options.cookiesEnabled,this.options.filterControl){var b=this;this.$el.on('column-search.bs.table',function(a,c,d){for(var e=!0,f=0;f<b.options.filterControls.length;f++)if(b.options.filterControls[f].field===c){b.options.filterControls[f].text=d,e=!1;break}e&&b.options.filterControls.push({field:c,text:d}),g.setCookie(b,g.cookieIds.filterControl,JSON.stringify(b.options.filterControls))}).on('created-controls.bs.table',g.initCookieFilters(b))}e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'init',this).call(this)}},{key:'initServer',value:function(){var a=this;if(a.options.cookie&&a.options.filterControl&&!a.options.filterControlValuesLoaded){var b=JSON.parse(g.getCookie(a,a.options.cookieIdTable,g.cookieIds.filterControl));if(b)return}e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'initServer',this).call(this)}},{key:'initTable',value:function(){e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'initTable',this).call(this),this.initCookie()}},{key:'onSort',value:function(){var a=0>=arguments.length?void 0:arguments[0];e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onSort',this).call(this,a),g.setCookie(this,g.cookieIds.sortOrder,this.options.sortOrder),g.setCookie(this,g.cookieIds.sortName,this.options.sortName)}},{key:'onPageNumber',value:function(){var a=0>=arguments.length?void 0:arguments[0];return e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPageNumber',this).call(this,a),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber),!1}},{key:'onPageListChange',value:function(){var a=0>=arguments.length?void 0:arguments[0];return e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPageListChange',this).call(this,a),g.setCookie(this,g.cookieIds.pageList,this.options.pageSize),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber),!1}},{key:'onPagePre',value:function(){var a=0>=arguments.length?void 0:arguments[0];return e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPagePre',this).call(this,a),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber),!1}},{key:'onPageNext',value:function(){var a=0>=arguments.length?void 0:arguments[0];return e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPageNext',this).call(this,a),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber),!1}},{key:'toggleColumn',value:function(){e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'toggleColumn',this).call(this);var a=[];f.each(this.columns,function(b,c){c.visible&&a.push(c.field)}),g.setCookie(this,g.cookieIds.columns,JSON.stringify(a))}},{key:'selectPage',value:function(a){e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'selectPage',this).call(this),g.setCookie(this,g.cookieIds.pageNumber,a)}},{key:'onSearch',value:function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];var d=Array.prototype.slice.apply(b);e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onSearch',this).call(this,this,d),f(d[0].currentTarget).parent().hasClass('search')&&g.setCookie(this,g.cookieIds.searchText,this.searchText),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber)}},{key:'filterBy',value:function(){e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'filterBy',this).call(this),g.setCookie(this,g.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:'initCookie',value:function(){if(this.options.cookie){if(''===this.options.cookieIdTable||''===this.options.cookieExpire||!g.cookieEnabled())return console.error('Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies.'),void(this.options.cookie=!1);var a=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.sortOrder),b=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.sortName),c=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.pageNumber),d=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.pageList),e=JSON.parse(g.getCookie(this,this.options.cookieIdTable,g.cookieIds.columns)),h=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.searchText);this.options.sortOrder=a?a:this.options.sortOrder,this.options.sortName=b?b:this.options.sortName,this.options.pageNumber=c?+c:this.options.pageNumber,this.options.pageSize=d?d===this.options.formatAllRows()?d:+d:this.options.pageSize,this.options.searchText=h?h:'',e&&f.each(this.columns,function(a,b){b.visible=-1!==f.inArray(b.field,e)})}}},{key:'getCookies',value:function(){var a=this,b={};return f.each(g.cookieIds,function(c,d){b[c]=g.getCookie(a,a.options.cookieIdTable,d),'columns'===c&&(b[c]=JSON.parse(b[c]))}),b}},{key:'deleteCookie',value:function(a){''!==a&&g.cookieEnabled()&&g.deleteCookie(this,this.options.cookieIdTable,g.cookieIds[a])}}]),i}(f.BootstrapTable)})(jQuery)});
(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableCookie={exports:{}}.exports}})(this,function(){'use strict';function a(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function b(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function c(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var d=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function a(b,c,d){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,c);if(e===void 0){var f=Object.getPrototypeOf(b);return null===f?void 0:a(f,c,d)}if('value'in e)return e.value;var g=e.get;return void 0===g?void 0:g.call(d)};(function(f){var g={cookieIds:{sortOrder:'bs.table.sortOrder',sortName:'bs.table.sortName',pageNumber:'bs.table.pageNumber',pageList:'bs.table.pageList',columns:'bs.table.columns',searchText:'bs.table.searchText',filterControl:'bs.table.filterControl',filterBy:'bs.table.filterBy'},getCurrentHeader:function(a){var b=a.$header;return a.options.height&&(b=a.$tableHeader),b},getCurrentSearchControls:function(a){var b='select, input';return a.options.height&&(b='table select, table input'),b},cookieEnabled:function(){return!!navigator.cookieEnabled},inArrayCookiesEnabled:function(a,b){for(var c=-1,d=0;d<b.length;d++)if(a.toLowerCase()===b[d].toLowerCase()){c=d;break}return c},setCookie:function(a,b,c){if(a.options.cookie&&g.cookieEnabled()&&''!==a.options.cookieIdTable&&-1!==g.inArrayCookiesEnabled(b,a.options.cookiesEnabled)){switch(b=a.options.cookieIdTable+'.'+b,a.options.cookieStorage){case'cookieStorage':document.cookie=[b,'=',encodeURIComponent(c),'; expires='+g.calculateExpiration(a.options.cookieExpire),a.options.cookiePath?'; path='+a.options.cookiePath:'',a.options.cookieDomain?'; domain='+a.options.cookieDomain:'',a.options.cookieSecure?'; secure':''].join('');break;case'localStorage':localStorage.setItem(b,c);break;case'sessionStorage':sessionStorage.setItem(b,c);break;default:return!1;}return!0}},getCookie:function(a,b,c){if(!c)return null;if(-1===g.inArrayCookiesEnabled(c,a.options.cookiesEnabled))return null;switch(c=b+'.'+c,a.options.cookieStorage){case'cookieStorage':var d='; '+document.cookie,e=d.split('; '+c+'=');return 2===e.length?decodeURIComponent(e.pop().split(';').shift()):null;case'localStorage':return localStorage.getItem(c);case'sessionStorage':return sessionStorage.getItem(c);default:return null;}},deleteCookie:function(a,b,c){switch(c=b+'.'+c,a.options.cookieStorage){case'cookieStorage':document.cookie=[encodeURIComponent(c),'=','; expires=Thu, 01 Jan 1970 00:00:00 GMT',a.options.cookiePath?'; path='+a.options.cookiePath:'',a.options.cookieDomain?'; domain='+a.options.cookieDomain:''].join('');break;case'localStorage':localStorage.removeItem(c);break;case'sessionStorage':sessionStorage.removeItem(c);break;default:return!1;}return!0},calculateExpiration:function(a){var b=a.replace(/[0-9]*/,'');switch(a=a.replace(/[A-Za-z]{1,2}/,''),b.toLowerCase()){case's':a=+a;break;case'mi':a*=60;break;case'h':a=60*(60*a);break;case'd':a=60*(60*(24*a));break;case'm':a=60*(60*(24*(30*a)));break;case'y':a=60*(60*(24*(365*a)));break;default:a=void 0;}if(!a)return'';var c=new Date;return c.setTime(c.getTime()+1e3*a),c.toGMTString()},initCookieFilters:function(a){setTimeout(function(){var b=JSON.parse(g.getCookie(a,a.options.cookieIdTable,g.cookieIds.filterControl));if(!a.options.filterControlValuesLoaded&&b){var c={},d=g.getCurrentHeader(a),e=g.getCurrentSearchControls(a),h=function(a,b){f(b).each(function(b,d){''!==d.text&&(f(a).val(d.text),c[d.field]=d.text)})};d.find(e).each(function(){var a=f(this).closest('[data-field]').data('field'),c=b.filter(function(b){return b.field===a});h(this,c)}),a.initColumnSearch(c),a.options.filterControlValuesLoaded=!0,a.initServer()}},250)}};f.extend(f.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:'2h',cookiePath:null,cookieDomain:null,cookieSecure:null,cookieIdTable:'',cookiesEnabled:['bs.table.sortOrder','bs.table.sortName','bs.table.pageNumber','bs.table.pageList','bs.table.columns','bs.table.searchText','bs.table.filterControl','bs.table.filterBy'],cookieStorage:'cookieStorage',filterControls:[],filterControlValuesLoaded:!1}),f.fn.bootstrapTable.methods.push('getCookies'),f.fn.bootstrapTable.methods.push('deleteCookie'),f.extend(f.fn.bootstrapTable.utils,{setCookie:g.setCookie,getCookie:g.getCookie}),f.BootstrapTable=function(h){function i(){return a(this,i),b(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return c(i,h),d(i,[{key:'init',value:function(){var a=JSON.parse(g.getCookie(this,this.options.cookieIdTable,g.cookieIds.filterBy));if(this.filterColumns=a?a:{},this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled='string'==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace('[','').replace(']','').replace(/ /g,'').toLowerCase().split(','):this.options.cookiesEnabled,this.options.filterControl){var b=this;this.$el.on('column-search.bs.table',function(a,c,d){for(var e=!0,f=0;f<b.options.filterControls.length;f++)if(b.options.filterControls[f].field===c){b.options.filterControls[f].text=d,e=!1;break}e&&b.options.filterControls.push({field:c,text:d}),g.setCookie(b,g.cookieIds.filterControl,JSON.stringify(b.options.filterControls))}).on('created-controls.bs.table',g.initCookieFilters(b))}e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'init',this).call(this)}},{key:'initServer',value:function(){var a;if(this.options.cookie&&this.options.filterControl&&!this.options.filterControlValuesLoaded){var f=JSON.parse(g.getCookie(this,this.options.cookieIdTable,g.cookieIds.filterControl));if(f)return}for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'initServer',this)).call.apply(a,[this].concat(c))}},{key:'initTable',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'initTable',this)).call.apply(a,[this].concat(c)),this.initCookie()}},{key:'onSort',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onSort',this)).call.apply(a,[this].concat(c)),g.setCookie(this,g.cookieIds.sortOrder,this.options.sortOrder),g.setCookie(this,g.cookieIds.sortName,this.options.sortName)}},{key:'onPageNumber',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPageNumber',this)).call.apply(a,[this].concat(c)),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber)}},{key:'onPageListChange',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPageListChange',this)).call.apply(a,[this].concat(c)),g.setCookie(this,g.cookieIds.pageList,this.options.pageSize),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber)}},{key:'onPagePre',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPagePre',this)).call.apply(a,[this].concat(c)),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber)}},{key:'onPageNext',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onPageNext',this)).call.apply(a,[this].concat(c)),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber)}},{key:'toggleColumn',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'toggleColumn',this)).call.apply(a,[this].concat(c));var h=[];f.each(this.columns,function(a,b){b.visible&&h.push(b.field)}),g.setCookie(this,g.cookieIds.columns,JSON.stringify(h))}},{key:'selectPage',value:function(a){e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'selectPage',this).call(this,a),g.setCookie(this,g.cookieIds.pageNumber,a)}},{key:'onSearch',value:function(a){e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'onSearch',this).call(this,a),f(a.currentTarget).parent().hasClass('search')&&g.setCookie(this,g.cookieIds.searchText,this.searchText),g.setCookie(this,g.cookieIds.pageNumber,this.options.pageNumber)}},{key:'filterBy',value:function(){for(var a,b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'filterBy',this)).call.apply(a,[this].concat(c)),g.setCookie(this,g.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:'initCookie',value:function(){if(this.options.cookie){if(''===this.options.cookieIdTable||''===this.options.cookieExpire||!g.cookieEnabled())return console.error('Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies.'),void(this.options.cookie=!1);var a=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.sortOrder),b=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.sortName),c=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.pageNumber),d=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.pageList),e=JSON.parse(g.getCookie(this,this.options.cookieIdTable,g.cookieIds.columns)),h=g.getCookie(this,this.options.cookieIdTable,g.cookieIds.searchText);this.options.sortOrder=a?a:this.options.sortOrder,this.options.sortName=b?b:this.options.sortName,this.options.pageNumber=c?+c:this.options.pageNumber,this.options.pageSize=d?d===this.options.formatAllRows()?d:+d:this.options.pageSize,this.options.searchText=h?h:'',e&&f.each(this.columns,function(a,b){b.visible=-1!==f.inArray(b.field,e)})}}},{key:'getCookies',value:function(){var a=this,b={};return f.each(g.cookieIds,function(c,d){b[c]=g.getCookie(a,a.options.cookieIdTable,d),'columns'===c&&(b[c]=JSON.parse(b[c]))}),b}},{key:'deleteCookie',value:function(a){''!==a&&g.cookieEnabled()&&g.deleteCookie(this,this.options.cookieIdTable,g.cookieIds[a])}}]),i}(f.BootstrapTable)})(jQuery)});
/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

(function (global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
factory();
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.bootstrapTableStickyHeader = mod.exports;
}
})(this, function () {
'use strict';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var _createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
function _possibleConstructorReturn(self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
}
var _get = function get(object, property, receiver) {
if (object === null) object = Function.prototype;
var desc = Object.getOwnPropertyDescriptor(object, property);
if (desc === undefined) {
var parent = Object.getPrototypeOf(object);
if (parent === null) {
return undefined;
} else {
return get(parent, property, receiver);
}
} else if ("value" in desc) {
return desc.value;
} else {
var mod = {
exports: {}
};
factory();
global.bootstrapTableStickyHeader = mod.exports;
var getter = desc.get;
if (getter === undefined) {
return undefined;
}
return getter.call(receiver);
}
})(this, function () {
'use strict';
};
/**
* @author vincent loh <vincent.ml@gmail.com>
* @version: v1.1.0
* https://github.com/vinzloh/bootstrap-table/
* Sticky header for bootstrap-table
* @update J Manuel Corona <jmcg92@gmail.com>
*/
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
(function ($) {
'use strict';
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}
var sprintf = $.fn.bootstrapTable.utils.sprintf;
$.extend($.fn.bootstrapTable.defaults, {
stickyHeader: false
});
/**
* @author vincent loh <vincent.ml@gmail.com>
* @update J Manuel Corona <jmcg92@gmail.com>
* @update zhixin wen <wenzhixin2010@gmail.com>
*/
var bootstrapVersion = 3;
try {
bootstrapVersion = parseInt($.fn.dropdown.Constructor.VERSION, 10);
} catch (e) {}
var hidden_class = bootstrapVersion > 3 ? 'd-none' : 'hidden';
(function ($) {
var Utils = $.fn.bootstrapTable.utils;
var BootstrapTable = $.fn.bootstrapTable.Constructor,
_initHeader = BootstrapTable.prototype.initHeader;
$.extend($.fn.bootstrapTable.defaults, {
stickyHeader: false,
stickyHeaderOffsetY: 0
});
BootstrapTable.prototype.initHeader = function () {
var that = this;
_initHeader.apply(this, Array.prototype.slice.apply(arguments));
var hiddenClass = Utils.bootstrapVersion === 4 ? 'd-none' : 'hidden';
if (!this.options.stickyHeader) {
return;
}
$.BootstrapTable = function (_$$BootstrapTable) {
_inherits(_class, _$$BootstrapTable);
var table = this.$tableBody.find('table'),
table_id = table.attr('id'),
header_id = table.attr('id') + '-sticky-header',
sticky_header_container_id = header_id + '-sticky-header-container',
anchor_begin_id = header_id + '_sticky_anchor_begin',
anchor_end_id = header_id + '_sticky_anchor_end';
// add begin and end anchors to track table position
function _class() {
_classCallCheck(this, _class);
table.before(sprintf('<div id="%s" class="%s"></div>', sticky_header_container_id, hidden_class));
table.before(sprintf('<div id="%s"></div>', anchor_begin_id));
table.after(sprintf('<div id="%s"></div>', anchor_end_id));
return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
}
table.find('thead').attr('id', header_id);
_createClass(_class, [{
key: 'initHeader',
value: function initHeader() {
var _get2,
_this2 = this;
// clone header just once, to be used as sticky header
// deep clone header. using source header affects tbody>td width
this.$stickyHeader = $($('#' + header_id).clone(true, true));
// avoid id conflict
this.$stickyHeader.removeAttr('id');
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
// render sticky on window scroll or resize
$(window).on('resize.' + table_id, table, render_sticky_header);
$(window).on('scroll.' + table_id, table, render_sticky_header);
// render sticky when table scroll left-right
table.closest('.fixed-table-container').find('.fixed-table-body').on('scroll.' + table_id, table, match_position_x);
(_get2 = _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initHeader', this)).call.apply(_get2, [this].concat(args));
this.$el.on('all.bs.table', function (e) {
that.$stickyHeader = $($('#' + header_id).clone(true, true));
that.$stickyHeader.removeAttr('id');
if (!this.options.stickyHeader) {
return;
}
this.$el.before('<div class="sticky-header-container"></div>');
this.$el.before('<div class="sticky_anchor_begin"></div>');
this.$el.after('<div class="sticky_anchor_end"></div>');
this.$header.addClass('sticky-header');
// clone header just once, to be used as sticky header
// deep clone header, using source header affects tbody>td width
this.$stickyContainer = this.$tableBody.find('.sticky-header-container');
this.$stickyBegin = this.$tableBody.find('.sticky_anchor_begin');
this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end');
this.$stickyHeader = this.$header.clone(true, true);
// render sticky on window scroll or resize
$(window).on('resize.sticky-header-table', function () {
return _this2.renderStickyHeader();
});
$(window).on('scroll.sticky-header-table', function () {
return _this2.renderStickyHeader();
});
this.$tableBody.off('scroll').on('scroll', function () {
return _this2.matchPositionX();
});
}
}, {
key: 'renderStickyHeader',
value: function renderStickyHeader() {
var _this3 = this;
var top = $(window).scrollTop();
// top anchor scroll position, minus header height
var start = this.$stickyBegin.offset().top - this.options.stickyHeaderOffsetY;
// bottom anchor scroll position, minus header height, minus sticky height
var end = this.$stickyEnd.offset().top - this.options.stickyHeaderOffsetY - this.$header.height();
// show sticky when top anchor touches header, and when bottom anchor not exceeded
if (top > start && top <= end) {
// ensure clone and source column widths are the same
this.$stickyHeader.find('tr:eq(0)').find('th').each(function (index, el) {
$(el).css('min-width', _this3.$header.find('tr:eq(0)').find('th').eq(index).css('width'));
});
// match bootstrap table style
this.$stickyContainer.removeClass(hiddenClass).addClass('fix-sticky fixed-table-container');
// stick it in position
this.$stickyContainer.css('top', this.options.stickyHeaderOffsetY + 'px');
// create scrollable container for header
this.$stickyTable = $('<table/>');
this.$stickyTable.addClass(this.options.classes);
// append cloned header to dom
this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader));
// match clone and source header positions when left-right scroll
this.matchPositionX();
} else {
this.$stickyContainer.removeClass('fix-sticky').addClass(hiddenClass);
}
}
}, {
key: 'matchPositionX',
value: function matchPositionX() {
this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft());
}
}]);
function render_sticky_header(event) {
var table = event.data;
var table_header_id = table.find('thead').attr('id');
// console.log('render_sticky_header for > '+table_header_id);
if (table.length < 1 || $('#' + table_id).length < 1) {
// turn off window listeners
$(window).off('resize.' + table_id);
$(window).off('scroll.' + table_id);
table.closest('.fixed-table-container').find('.fixed-table-body').off('scroll.' + table_id);
return;
}
// get header height
var header_height = '0';
if (that.options.stickyHeaderOffsetY) header_height = that.options.stickyHeaderOffsetY.replace('px', '');
// window scroll top
var t = $(window).scrollTop();
// top anchor scroll position, minus header height
var e = $("#" + anchor_begin_id).offset().top - header_height;
// bottom anchor scroll position, minus header height, minus sticky height
var e_end = $("#" + anchor_end_id).offset().top - header_height - $('#' + table_header_id).css('height').replace('px', '');
// show sticky when top anchor touches header, and when bottom anchor not exceeded
if (t > e && t <= e_end) {
// ensure clone and source column widths are the same
$.each(that.$stickyHeader.find('tr').eq(0).find('th'), function (index, item) {
$(item).css('min-width', $('#' + table_header_id + ' tr').eq(0).find('th').eq(index).css('width'));
});
// match bootstrap table style
$("#" + sticky_header_container_id).removeClass(hidden_class).addClass("fix-sticky fixed-table-container");
// stick it in position
$("#" + sticky_header_container_id).css('top', header_height + 'px');
// create scrollable container for header
var scrollable_div = $('<div style="position:absolute;width:100%;overflow-x:hidden;" />');
// append cloned header to dom
$("#" + sticky_header_container_id).html(scrollable_div.append(that.$stickyHeader));
// match clone and source header positions when left-right scroll
match_position_x(event);
} else {
// hide sticky
$("#" + sticky_header_container_id).removeClass("fix-sticky").addClass(hidden_class);
}
}
function match_position_x(event) {
var table = event.data;
var table_header_id = table.find('thead').attr('id');
// match clone and source header positions when left-right scroll
$("#" + sticky_header_container_id).css('width', +table.closest('.fixed-table-body').css('width').replace('px', '') + 1);
$("#" + sticky_header_container_id + " thead").parent().scrollLeft(Math.abs($('#' + table_header_id).position().left));
}
};
})(jQuery);
return _class;
}($.BootstrapTable);
})(jQuery);
});
/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -10,2 +10,2 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableStickyHeader={exports:{}}.exports}})(this,function(){'use strict';(function(a){var b=a.fn.bootstrapTable.utils.sprintf;a.extend(a.fn.bootstrapTable.defaults,{stickyHeader:!1});var c=3;try{c=parseInt(a.fn.dropdown.Constructor.VERSION,10)}catch(a){}var d=3<c?'d-none':'hidden',e=a.fn.bootstrapTable.Constructor,f=e.prototype.initHeader;e.prototype.initHeader=function(){function c(b){var c=b.data,f=c.find('thead').attr('id');if(1>c.length||1>a('#'+i).length)return a(window).off('resize.'+i),a(window).off('scroll.'+i),void c.closest('.fixed-table-container').find('.fixed-table-body').off('scroll.'+i);var h='0';g.options.stickyHeaderOffsetY&&(h=g.options.stickyHeaderOffsetY.replace('px',''));var j=a(window).scrollTop(),n=a('#'+l).offset().top-h,o=a('#'+m).offset().top-h-a('#'+f).css('height').replace('px','');if(j>n&&j<=o){a.each(g.$stickyHeader.find('tr').eq(0).find('th'),function(b,c){a(c).css('min-width',a('#'+f+' tr').eq(0).find('th').eq(b).css('width'))}),a('#'+k).removeClass(d).addClass('fix-sticky fixed-table-container'),a('#'+k).css('top',h+'px');var p=a('<div style="position:absolute;width:100%;overflow-x:hidden;" />');a('#'+k).html(p.append(g.$stickyHeader)),e(b)}else a('#'+k).removeClass('fix-sticky').addClass(d)}function e(b){var c=b.data,d=c.find('thead').attr('id');a('#'+k).css('width',+c.closest('.fixed-table-body').css('width').replace('px','')+1),a('#'+k+' thead').parent().scrollLeft(Math.abs(a('#'+d).position().left))}var g=this;if(f.apply(this,Array.prototype.slice.apply(arguments)),!!this.options.stickyHeader){var h=this.$tableBody.find('table'),i=h.attr('id'),j=h.attr('id')+'-sticky-header',k=j+'-sticky-header-container',l=j+'_sticky_anchor_begin',m=j+'_sticky_anchor_end';h.before(b('<div id="%s" class="%s"></div>',k,d)),h.before(b('<div id="%s"></div>',l)),h.after(b('<div id="%s"></div>',m)),h.find('thead').attr('id',j),this.$stickyHeader=a(a('#'+j).clone(!0,!0)),this.$stickyHeader.removeAttr('id'),a(window).on('resize.'+i,h,c),a(window).on('scroll.'+i,h,c),h.closest('.fixed-table-container').find('.fixed-table-body').on('scroll.'+i,h,e),this.$el.on('all.bs.table',function(){g.$stickyHeader=a(a('#'+j).clone(!0,!0)),g.$stickyHeader.removeAttr('id')})}}})(jQuery)});
(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableStickyHeader={exports:{}}.exports}})(this,function(){'use strict';function a(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function b(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function c(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var d=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function a(b,c,d){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,c);if(e===void 0){var f=Object.getPrototypeOf(b);return null===f?void 0:a(f,c,d)}if('value'in e)return e.value;var g=e.get;return void 0===g?void 0:g.call(d)};(function(f){var g=f.fn.bootstrapTable.utils;f.extend(f.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0});var h=4===g.bootstrapVersion?'d-none':'hidden';f.BootstrapTable=function(g){function i(){return a(this,i),b(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return c(i,g),d(i,[{key:'initHeader',value:function(){for(var a,b=this,c=arguments.length,d=Array(c),g=0;g<c;g++)d[g]=arguments[g];(a=e(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),'initHeader',this)).call.apply(a,[this].concat(d)),this.options.stickyHeader&&(this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass('sticky-header'),this.$stickyContainer=this.$tableBody.find('.sticky-header-container'),this.$stickyBegin=this.$tableBody.find('.sticky_anchor_begin'),this.$stickyEnd=this.$tableBody.find('.sticky_anchor_end'),this.$stickyHeader=this.$header.clone(!0,!0),f(window).on('resize.sticky-header-table',function(){return b.renderStickyHeader()}),f(window).on('scroll.sticky-header-table',function(){return b.renderStickyHeader()}),this.$tableBody.off('scroll').on('scroll',function(){return b.matchPositionX()}))}},{key:'renderStickyHeader',value:function(){var a=this,b=f(window).scrollTop(),c=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,d=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();b>c&&b<=d?(this.$stickyHeader.find('tr:eq(0)').find('th').each(function(b,c){f(c).css('min-width',a.$header.find('tr:eq(0)').find('th').eq(b).css('width'))}),this.$stickyContainer.removeClass(h).addClass('fix-sticky fixed-table-container'),this.$stickyContainer.css('top',this.options.stickyHeaderOffsetY+'px'),this.$stickyTable=f('<table/>'),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()):this.$stickyContainer.removeClass('fix-sticky').addClass(h)}},{key:'matchPositionX',value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}]),i}(f.BootstrapTable)})(jQuery)});
/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.13.3
* @version v1.13.4
* @homepage https://bootstrap-table.com

@@ -6,0 +6,0 @@ * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)

{
"name": "bootstrap-table",
"description": "An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).",
"version": "1.13.3",
"version": "1.13.4",
"main": "./dist/bootstrap-table.js",

@@ -17,3 +17,4 @@ "directories": {

"headr": "^0.0.4",
"npm-run-all": "^4.1.5"
"npm-run-all": "^4.1.5",
"sass": "^1.16.1"
},

@@ -20,0 +21,0 @@ "scripts": {

@@ -411,2 +411,4 @@ ---

- **Example:** [Query Params](https://examples.bootstrap-table.com/#options/query-params.html)
## queryParamsType

@@ -424,2 +426,4 @@

- **Example:** [Query Params Type](https://examples.bootstrap-table.com/#options/query-params-type.html)
## responseHandler

@@ -426,0 +430,0 @@

@@ -9,4 +9,3 @@ ---

This is an extension for [Bootstrap table](http://github.com/wenzhixin/bootstrap-table) module which provides a sticky header for the table when scrolling. </br>
You must include the bootstrap-table-sticky-header.css file in order to get the appropriate style
This is an extension which provides a sticky header for the table when scrolling.

@@ -19,2 +18,6 @@ ## Usage

## Example
[Sticky Header](https://examples.bootstrap-table.com/#extensions/sticky-header.html)
## Options

@@ -34,8 +37,8 @@

- **type:** `String`
- **type:** `Number`
- **Detail:**
Set the Y offset from the top of the window to pin the sticky header. If there is a fixed navigation bar with a height of 60px, this value would be `60px`.
Set the Y offset from the top of the window to pin the sticky header. If there is a fixed navigation bar with a height of 60px, this value would be `60`.
- **Default:** `undefined`
- **Default:** `0`

@@ -19,14 +19,14 @@ ---

## CDN
## UNPKG
The folks over at [CDNJS](http://www.cdnjs.com/libraries/bootstrap-table) and [bootcss](http://open.bootcss.com/bootstrap-table/) graciously provide CDN support for CSS and JavaScript of Bootstrap table. Just use these CDN links.
The folks over at [UNPKG](https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/) graciously provide CDN support for CSS and JavaScript of Bootstrap table. Just use these links.
{% highlight html %}
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/bootstrap-table.min.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/bootstrap-table.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/bootstrap-table.min.js"></script>
<!-- Latest compiled and minified Locales -->
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/locale/bootstrap-table-zh-CN.min.js"></script>
{% endhighlight %}

@@ -33,0 +33,0 @@

@@ -21,3 +21,3 @@ ---

{% highlight html %}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/bootstrap-table.min.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/bootstrap-table.min.css">
{% endhighlight %}

@@ -30,3 +30,3 @@

{% highlight html %}
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/bootstrap-table.min.js"></script>
{% endhighlight %}

@@ -59,3 +59,3 @@

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/bootstrap-table.min.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/bootstrap-table.min.css">

@@ -92,3 +92,3 @@ <title>Hello, Bootstrap Table!</title>

<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.6.2/core.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/{{ site.current_version }}/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@{{ site.current_version }}/dist/bootstrap-table.min.js"></script>
</body>

@@ -95,0 +95,0 @@ </html>

@@ -10,13 +10,9 @@ ---

Bootstrap Table is a free plug-in which is made in my spare time.
Bootstrap Table is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support Bootstrap Table development via the following methods:
If your project gets the help from Bootstrap Table, you can donate to Bootstrap Table.
With your help, I believe that I will continue to strive to let Bootstrap Table be better.
<table class="table donate">
<tbody>
<tr>
<td><h2>Share The Love</h2></td>
<td><img src="{{ site.base_url }}/assets/images/paypalLogo.png"></td>
<td>{%- include icons/opencollective.svg class="navbar-nav-svg" -%}</td>
<td><img src="{{ site.base_url }}/assets/images/alipayLogo.png"></td>

@@ -27,2 +23,30 @@ <td><img src="{{ site.base_url }}/assets/images/weixinLogo.png"></td>

<td>
<span style="color: silver;">Share on: </span>
<div id="share-buttons">
<a class="github" href="{{ site.repo }}" target="_blank" title="Star this on GitHub">
{% include icons/github.svg %}
</a>
<a class="twitter" href="http://twitter.com/home?status={{ site.url }}" target="_blank" title="Share this on Twitter">
{% include icons/twitter.svg %}
</a>
<a class="facebook" href="http://www.facebook.com/share.php?u={{ site.url }}" target="_blank" title="Share this on Facebook">
{% include icons/facebook.svg %}
</a>
<a class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ site.url }}&amp;title=&amp;summary=&amp;source=" target="_blank" title="Share this on Linkedin">
{% include icons/linkedin.svg %}
</a>
<a class="mail" href="mailto:?&amp;body={{ site.url }}" target="_blank" title="Share this through Email">
{% include icons/mail.svg %}
</a>
</div>
<p class="share-desc">
If you like Bootstrap Table, but you do not have any money to spare, please share the love by posting something about this website on social media. You can use the buttons above. They will share the homepage. Thank you, you are the best!
</p>
</td>
<td>
<a class="paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDHP676FQDUT6">

@@ -32,5 +56,2 @@ <img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif">

</td>
<td>
<a class="btn btn-primary" href="https://opencollective.com/bootstrap-table">Contribute</a>
</td>
<td><img src="{{ site.base_url }}/assets/images/alipay.jpg"></td>

@@ -41,1 +62,3 @@ <td><img src="{{ site.base_url }}/assets/images/weixin.png"></td>

</table>
{% include opencollective.html %}

@@ -7,2 +7,16 @@ ---

## Bootstrap Table 1.13.4
<span class="post-date">05 Feb 2019</span>
- **New(sticky-header extension):** Rewrote sticky-header extension to ES6.
- **New(sticky-header extension):** Added to support bootstrap v4 and `theadClasses` option.
- **New(auto-refresh extension):** Icons update to font-awesome 5.
- **New(examples):** Added examples Algolia search.
- **Update(js):** Fixed `theadClasses` is not set when a `thead` exists.
- **Update(js):** Fixed table resize after mergeCell the first row.
- **Update(cookie extension):** Fixed cookie extension broken bug.
- **Update(cookie extension):** Fixed cookie extension unicode encode bug.
- **Update(package):** Added `sass` devDependencies.
## Bootstrap Table 1.13.3

@@ -9,0 +23,0 @@

/**
* @author: Dennis Hernández
* @webSite: http://djhvscf.github.io/Blog
* @version: v1.0.0
* @update: zhixin wen <wenzhixin2010@gmail.com>
*/

@@ -6,0 +6,0 @@

/**
* @author: general
* @version: 1.0.0
* @website: note.generals.space
* @email: generals.space@gmail.com
* @github: https://github.com/generals-space/bootstrap-table-addrbar
* @update: zhixin wen <wenzhixin2010@gmail.com>
*/

@@ -8,0 +8,0 @@

@@ -20,3 +20,3 @@ /**

$.extend($.fn.bootstrapTable.defaults.icons, {
autoRefresh: 'glyphicon-time icon-time'
autoRefresh: $.fn.bootstrapTable.utils.bootstrapVersion === 4 ? 'fa-clock' : 'glyphicon-time icon-time'
});

@@ -23,0 +23,0 @@

/**
* @author: Dennis Hernández
* @webSite: http://djhvscf.github.io/Blog
* @version: v1.2.4
*
* @update zhixin wen <wenzhixin2010@gmail.com>

@@ -66,3 +64,3 @@ */

document.cookie = [
cookieName, '=', cookieValue,
cookieName, '=', encodeURIComponent(cookieValue),
`; expires=${UtilsCookie.calculateExpiration(that.options.cookieExpire)}`,

@@ -101,3 +99,3 @@ that.options.cookiePath ? `; path=${that.options.cookiePath}` : '',

const parts = value.split(`; ${cookieName}=`)
return parts.length === 2 ? parts.pop().split(';').shift() : null
return parts.length === 2 ? decodeURIComponent(parts.pop().split(';').shift()) : null
case 'localStorage':

@@ -269,6 +267,9 @@ return localStorage.getItem(cookieName)

initServer () {
const bootstrapTable = this
if (bootstrapTable.options.cookie && bootstrapTable.options.filterControl && !bootstrapTable.options.filterControlValuesLoaded) {
const cookie = JSON.parse(UtilsCookie.getCookie(bootstrapTable, bootstrapTable.options.cookieIdTable, UtilsCookie.cookieIds.filterControl))
initServer (...args) {
if (
this.options.cookie &&
this.options.filterControl &&
!this.options.filterControlValuesLoaded
) {
const cookie = JSON.parse(UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.filterControl))
if (cookie) {

@@ -278,7 +279,7 @@ return

}
super.initServer()
super.initServer(...args)
}
initTable () {
super.initTable()
initTable (...args) {
super.initTable(...args)
this.initCookie()

@@ -288,4 +289,3 @@ }

onSort (...args) {
const event = args[0]
super.onSort(event)
super.onSort(...args)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder)

@@ -296,32 +296,24 @@ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName)

onPageNumber (...args) {
const event = args[0]
super.onPageNumber(event)
super.onPageNumber(...args)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber)
return false
}
onPageListChange (...args) {
const event = args[0]
super.onPageListChange(event)
super.onPageListChange(...args)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber)
return false
}
onPagePre (...args) {
const event = args[0]
super.onPagePre(event)
super.onPagePre(...args)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber)
return false
}
onPageNext (...args) {
const event = args[0]
super.onPageNext(event)
super.onPageNext(...args)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber)
return false
}
toggleColumn () {
super.toggleColumn()
toggleColumn (...args) {
super.toggleColumn(...args)

@@ -340,11 +332,10 @@ const visibleColumns = []

selectPage (page) {
super.selectPage()
super.selectPage(page)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, page)
}
onSearch (...args) {
const target = Array.prototype.slice.apply(args)
super.onSearch(this, target)
onSearch (event) {
super.onSearch(event)
if ($(target[0].currentTarget).parent().hasClass('search')) {
if ($(event.currentTarget).parent().hasClass('search')) {
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.searchText, this.searchText)

@@ -355,4 +346,4 @@ }

filterBy () {
super.filterBy()
filterBy (...args) {
super.filterBy(...args)
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.filterBy, JSON.stringify(this.filterColumns))

@@ -359,0 +350,0 @@ }

/**
* @author vincent loh <vincent.ml@gmail.com>
* @version: v1.1.0
* https://github.com/vinzloh/bootstrap-table/
* Sticky header for bootstrap-table
* @update J Manuel Corona <jmcg92@gmail.com>
* @update zhixin wen <wenzhixin2010@gmail.com>
*/
(function ($) {
'use strict';
($ => {
const Utils = $.fn.bootstrapTable.utils
var sprintf = $.fn.bootstrapTable.utils.sprintf;
$.extend($.fn.bootstrapTable.defaults, {
stickyHeader: false
});
var bootstrapVersion = 3;
try {
bootstrapVersion = parseInt($.fn.dropdown.Constructor.VERSION, 10);
} catch (e) { }
var hidden_class = bootstrapVersion > 3 ? 'd-none' : 'hidden';
$.extend($.fn.bootstrapTable.defaults, {
stickyHeader: false,
stickyHeaderOffsetY: 0
})
var BootstrapTable = $.fn.bootstrapTable.Constructor,
_initHeader = BootstrapTable.prototype.initHeader;
const hiddenClass = Utils.bootstrapVersion === 4 ? 'd-none' : 'hidden'
BootstrapTable.prototype.initHeader = function () {
var that = this;
_initHeader.apply(this, Array.prototype.slice.apply(arguments));
$.BootstrapTable = class extends $.BootstrapTable {
initHeader (...args) {
super.initHeader(...args)
if (!this.options.stickyHeader) {
return;
}
if (!this.options.stickyHeader) {
return
}
var table = this.$tableBody.find('table'),
table_id = table.attr('id'),
header_id = table.attr('id') + '-sticky-header',
sticky_header_container_id = header_id +'-sticky-header-container',
anchor_begin_id = header_id +'_sticky_anchor_begin',
anchor_end_id = header_id +'_sticky_anchor_end';
// add begin and end anchors to track table position
this.$el.before('<div class="sticky-header-container"></div>')
this.$el.before('<div class="sticky_anchor_begin"></div>')
this.$el.after('<div class="sticky_anchor_end"></div>')
this.$header.addClass('sticky-header')
table.before(sprintf('<div id="%s" class="%s"></div>', sticky_header_container_id, hidden_class));
table.before(sprintf('<div id="%s"></div>', anchor_begin_id));
table.after(sprintf('<div id="%s"></div>', anchor_end_id));
// clone header just once, to be used as sticky header
// deep clone header, using source header affects tbody>td width
this.$stickyContainer = this.$tableBody.find('.sticky-header-container')
this.$stickyBegin = this.$tableBody.find('.sticky_anchor_begin')
this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end')
this.$stickyHeader = this.$header.clone(true, true)
table.find('thead').attr('id', header_id);
// render sticky on window scroll or resize
$(window).on('resize.sticky-header-table', () => this.renderStickyHeader())
$(window).on('scroll.sticky-header-table', () => this.renderStickyHeader())
this.$tableBody.off('scroll').on('scroll', () => this.matchPositionX())
}
// clone header just once, to be used as sticky header
// deep clone header. using source header affects tbody>td width
this.$stickyHeader = $($('#'+header_id).clone(true, true));
// avoid id conflict
this.$stickyHeader.removeAttr('id');
renderStickyHeader () {
const top = $(window).scrollTop()
// top anchor scroll position, minus header height
const start = this.$stickyBegin.offset().top - this.options.stickyHeaderOffsetY
// bottom anchor scroll position, minus header height, minus sticky height
const end = this.$stickyEnd.offset().top - this.options.stickyHeaderOffsetY - this.$header.height()
// show sticky when top anchor touches header, and when bottom anchor not exceeded
if (top > start && top <= end) {
// ensure clone and source column widths are the same
this.$stickyHeader.find('tr:eq(0)').find('th').each((index, el) => {
$(el).css('min-width', this.$header.find('tr:eq(0)').find('th').eq(index).css('width'))
})
// match bootstrap table style
this.$stickyContainer.removeClass(hiddenClass).addClass('fix-sticky fixed-table-container')
// stick it in position
this.$stickyContainer.css('top', `${this.options.stickyHeaderOffsetY}px`)
// create scrollable container for header
this.$stickyTable = $('<table/>')
this.$stickyTable.addClass(this.options.classes)
// append cloned header to dom
this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader))
// match clone and source header positions when left-right scroll
this.matchPositionX()
} else {
this.$stickyContainer.removeClass('fix-sticky').addClass(hiddenClass)
}
}
// render sticky on window scroll or resize
$(window).on('resize.'+table_id, table, render_sticky_header);
$(window).on('scroll.'+table_id, table, render_sticky_header);
// render sticky when table scroll left-right
table.closest('.fixed-table-container').find('.fixed-table-body').on('scroll.'+table_id, table, match_position_x);
matchPositionX () {
this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())
}
}
this.$el.on('all.bs.table', function (e) {
that.$stickyHeader = $($('#'+header_id).clone(true, true));
that.$stickyHeader.removeAttr('id');
});
function render_sticky_header(event) {
var table = event.data;
var table_header_id = table.find('thead').attr('id');
// console.log('render_sticky_header for > '+table_header_id);
if (table.length < 1 || $('#'+table_id).length < 1){
// turn off window listeners
$(window).off('resize.'+table_id);
$(window).off('scroll.'+table_id);
table.closest('.fixed-table-container').find('.fixed-table-body').off('scroll.'+table_id);
return;
}
// get header height
var header_height = '0';
if (that.options.stickyHeaderOffsetY) header_height = that.options.stickyHeaderOffsetY.replace('px','');
// window scroll top
var t = $(window).scrollTop();
// top anchor scroll position, minus header height
var e = $("#"+anchor_begin_id).offset().top - header_height;
// bottom anchor scroll position, minus header height, minus sticky height
var e_end = $("#"+anchor_end_id).offset().top - header_height - $('#'+table_header_id).css('height').replace('px','');
// show sticky when top anchor touches header, and when bottom anchor not exceeded
if (t > e && t <= e_end) {
// ensure clone and source column widths are the same
$.each( that.$stickyHeader.find('tr').eq(0).find('th'), function (index, item) {
$(item).css('min-width', $('#'+table_header_id+' tr').eq(0).find('th').eq(index).css('width'));
});
// match bootstrap table style
$("#"+sticky_header_container_id).removeClass(hidden_class).addClass("fix-sticky fixed-table-container") ;
// stick it in position
$("#"+sticky_header_container_id).css('top', header_height + 'px');
// create scrollable container for header
var scrollable_div = $('<div style="position:absolute;width:100%;overflow-x:hidden;" />');
// append cloned header to dom
$("#"+sticky_header_container_id).html(scrollable_div.append(that.$stickyHeader));
// match clone and source header positions when left-right scroll
match_position_x(event);
} else {
// hide sticky
$("#"+sticky_header_container_id).removeClass("fix-sticky").addClass(hidden_class);
}
}
function match_position_x(event){
var table = event.data;
var table_header_id = table.find('thead').attr('id');
// match clone and source header positions when left-right scroll
$("#"+sticky_header_container_id).css(
'width', +table.closest('.fixed-table-body').css('width').replace('px', '') + 1
);
$("#"+sticky_header_container_id+" thead").parent().scrollLeft(Math.abs($('#'+table_header_id).position().left));
}
};
})(jQuery);
})(jQuery)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc