| 12345678910 |
- /**
- * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
- *
- * @version v1.15.0
- * @homepage https://bootstrap-table.com
- * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
- * @license MIT
- */
- (function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):(a=a||self,b(a.jQuery))})(this,function(a){'use strict';var c=Math.max,d=Math.min,e=Math.ceil;function b(a,b){return b={exports:{}},a(b,b.exports),b.exports}a=a&&a.hasOwnProperty("default")?a["default"]:a;var g,h,i,j=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function");return a},k=function(d,e,f){return(j(d),void 0===e)?d:0===f?function(){return d.call(e)}:1===f?function(b){return d.call(e,b)}:2===f?function(c,a){return d.call(e,c,a)}:3===f?function(f,a,b){return d.call(e,f,a,b)}:function(){return d.apply(e,arguments)}},l=function(a){try{return!!a()}catch(a){return!0}},m={}.toString,n=function(a){return m.call(a).slice(8,-1)},o="".split,p=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return"String"==n(a)?o.call(a,""):Object(a)}:Object,q=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a},r=function(a){return Object(q(a))},s=Math.floor,t=function(a){return isNaN(a=+a)?0:(0<a?s:e)(a)},u=function(a){return 0<a?d(t(a),9007199254740991):0},v=function(a){return"object"==typeof a?null!==a:"function"==typeof a},w=Array.isArray||function(a){return"Array"==n(a)},x="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),y=!l(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),z=x.document,A=v(z)&&v(z.createElement),B=function(a){return A?z.createElement(a):{}},C=!y&&!l(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a}),D=function(a){if(!v(a))throw TypeError(a+" is not an object");return a},E=function(a,b){if(!v(a))return a;var c,d;if(b&&"function"==typeof(c=a.toString)&&!v(d=c.call(a)))return d;if("function"==typeof(c=a.valueOf)&&!v(d=c.call(a)))return d;if(!b&&"function"==typeof(c=a.toString)&&!v(d=c.call(a)))return d;throw TypeError("Can't convert object to primitive value")},F=Object.defineProperty,G=y?F:function(a,b,c){if(D(a),b=E(b,!0),D(c),C)try{return F(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported");return"value"in c&&(a[b]=c.value),a},f={f:G},H=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}},I=y?function(a,b,c){return f.f(a,b,H(1,c))}:function(a,b,c){return a[b]=c,a},J=function(a,b){try{I(x,a,b)}catch(c){x[a]=b}return b},K=b(function(a){var b=x["__core-js_shared__"]||J("__core-js_shared__",{});(a.exports=function(a,c){return b[a]||(b[a]=c===void 0?{}:c)})("versions",[]).push({version:"3.0.0",mode:"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),L=0,M=Math.random(),N=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++L+M).toString(36))},O=!l(function(){}),P=K("wks"),Q=x.Symbol,R=function(a){return P[a]||(P[a]=O&&Q[a]||(O?Q:N)("Symbol."+a))},S=R("species"),T=function(a,b){var c;return w(a)&&(c=a.constructor,"function"==typeof c&&(c===Array||w(c.prototype))?c=void 0:v(c)&&(c=c[S],null===c&&(c=void 0))),new(void 0===c?Array:c)(0===b?0:b)},U=R("species"),V=function(a){return!l(function(){var b=[],c=b.constructor={};return c[U]=function(){return{foo:1}},1!==b[a](Boolean).foo})},W={}.propertyIsEnumerable,X=Object.getOwnPropertyDescriptor,Y=X&&!W.call({1:2},1),Z=Y?function(a){var b=X(this,a);return!!b&&b.enumerable}:W,_={f:Z},aa=function(a){return p(q(a))},ba={}.hasOwnProperty,ca=function(a,b){return ba.call(a,b)},da=Object.getOwnPropertyDescriptor,ea=y?da:function(a,b){if(a=aa(a),b=E(b,!0),C)try{return da(a,b)}catch(a){}return ca(a,b)?H(!_.f.call(a,b),a[b]):void 0},fa={f:ea},ga=K("native-function-to-string",Function.toString),ha=x.WeakMap,ia="function"==typeof ha&&/native code/.test(ga.call(ha)),ja=K("keys"),ka=function(a){return ja[a]||(ja[a]=N(a))},la={},ma=x.WeakMap,na=function(a){return i(a)?h(a):g(a,{})};if(ia){var oa=new ma,pa=oa.get,qa=oa.has,ra=oa.set;g=function(a,b){return ra.call(oa,a,b),b},h=function(a){return pa.call(oa,a)||{}},i=function(a){return qa.call(oa,a)}}else{var sa=ka("state");la[sa]=!0,g=function(a,b){return I(a,sa,b),b},h=function(a){return ca(a,sa)?a[sa]:{}},i=function(a){return ca(a,sa)}}var ta={set:g,get:h,has:i,enforce:na,getterFor:function(a){return function(b){var c;if(!v(b)||(c=h(b)).type!==a)throw TypeError("Incompatible receiver, "+a+" required");return c}}},ua=b(function(a){var b=ta.get,c=ta.enforce,d=(ga+"").split("toString");K("inspectSource",function(a){return ga.call(a)}),(a.exports=function(a,b,e,f){var g=!!f&&!!f.unsafe,h=!!f&&!!f.enumerable,i=!!f&&!!f.noTargetGet;return("function"==typeof e&&("string"==typeof b&&!ca(e,"name")&&I(e,"name",b),c(e).source=d.join("string"==typeof b?b:"")),a===x)?void(h?a[b]=e:J(b,e)):void(g?!i&&a[b]&&(h=!0):delete a[b],h?a[b]=e:I(a,b,e))})(Function.prototype,"toString",function(){return"function"==typeof this&&b(this).source||ga.call(this)})}),va=function(a,b){var e=t(a);return 0>e?c(e+b,0):d(e,b)},wa=function(a){return function(b,c,d){var e,f=aa(b),g=u(f.length),h=va(d,g);if(a&&c!=c){for(;g>h;)if(e=f[h++],e!=e)return!0;}else for(;g>h;h++)if((a||h in f)&&f[h]===c)return a||h||0;return!a&&-1}},xa=wa(!1),ya=function(a,b){var c,d=aa(a),e=0,f=[];for(c in d)!ca(la,c)&&ca(d,c)&&f.push(c);for(;b.length>e;)ca(d,c=b[e++])&&(~xa(f,c)||f.push(c));return f},za=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Aa=Object.getOwnPropertyNames||function(a){return ya(a,za)},Ba={f:Aa},Ca=Object.getOwnPropertySymbols,Da={f:Ca},Ea=x.Reflect,Fa=Ea&&Ea.ownKeys||function(a){var b=Ba.f(D(a)),c=Da.f;return c?b.concat(c(a)):b},Ga=function(a,b){for(var c,d=Fa(b),e=f.f,g=fa.f,h=0;h<d.length;h++)c=d[h],ca(a,c)||e(a,c,g(b,c))},Ha=/#|\.prototype\./,Ia=function(a,b){var c=Ka[Ja(a)];return!(c!=Ma)||c!=La&&("function"==typeof b?l(b):!!b)},Ja=Ia.normalize=function(a){return(a+"").replace(Ha,".").toLowerCase()},Ka=Ia.data={},La=Ia.NATIVE="N",Ma=Ia.POLYFILL="P",Na=fa.f,Oa=function(a,b){var c,d,e,f,g,h,i=a.target,j=a.global,k=a.stat;if(d=j?x:k?x[i]||J(i,{}):(x[i]||{}).prototype,d)for(e in b){if(g=b[e],a.noTargetGet?(h=Na(d,e),f=h&&h.value):f=d[e],c=Ia(j?e:i+(k?".":"#")+e,a.forced),!c&&void 0!==f){if(typeof g==typeof f)continue;Ga(g,f)}(a.sham||f&&f.sham)&&I(g,"sham",!0),ua(d,e,g,a)}},Pa=function(a,b){var c=1==a,d=4==a,e=6==a,f=b||T;return function(b,g,h){for(var i,j,l=r(b),m=p(l),n=k(g,h,3),o=u(m.length),q=0,s=c?f(b,o):2==a?f(b,0):void 0;o>q;q++)if((5==a||e||q in m)&&(i=m[q],j=n(i,q,l),a))if(c)s[q]=j;else if(j)switch(a){case 3:return!0;case 5:return i;case 6:return q;case 2:s.push(i);}else if(d)return!1;return e?-1:3==a||d?d:s}}(2),Qa=V("filter");Oa({target:"Array",proto:!0,forced:!Qa},{filter:function(a){return Pa(this,a,arguments[1])}});var Ra=wa(!1),Sa=[].indexOf,Ta=!!Sa&&0>1/[1].indexOf(1,-0),Ua=function(a,b){var c=[][a];return!c||!l(function(){c.call(null,b||function(){throw Error()},1)})}("indexOf");Oa({target:"Array",proto:!0,forced:Ta||Ua},{indexOf:function(a){return Ta?Sa.apply(this,arguments)||0:Ra(this,a,arguments[1])}});var Va=function(a,b,c){var d=E(b);d in a?f.f(a,d,H(0,c)):a[d]=c},Wa=R("species"),Xa=[].slice,Ya=V("slice");Oa({target:"Array",proto:!0,forced:!Ya},{slice:function(a,b){var d,e,f,g=aa(this),h=u(g.length),i=va(a,h),j=va(void 0===b?h:b,h);if(w(g)&&(d=g.constructor,"function"==typeof d&&(d===Array||w(d.prototype))?d=void 0:v(d)&&(d=d[Wa],null===d&&(d=void 0)),d===Array||void 0===d))return Xa.call(g,i,j);for(e=new(void 0===d?Array:d)(c(j-i,0)),f=0;i<j;i++,f++)i in g&&Va(e,f,g[i]);return e.length=f,e}});var Za="[\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]",$a=RegExp("^"+Za+Za+"*"),_a=RegExp(Za+Za+"*$"),ab=function(a,b){return a=q(a)+"",1&b&&(a=a.replace($a,"")),2&b&&(a=a.replace(_a,"")),a},bb=x.parseInt,cb=/^[-+]?0[xX]/,db=8!==bb("\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF08")||22!==bb("\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF0x16"),eb=db?function(a,b){var c=ab(a+"",3);return bb(c,b>>>0||(cb.test(c)?16:10))}:bb;Oa({global:!0,forced:parseInt!=eb},{parseInt:eb});var fb=a.fn.bootstrapTable.utils;a.extend(a.fn.bootstrapTable.defaults,{usePipeline:!1,pipelineSize:1e3,onCachedDataHit:function(){return!1},onCachedDataReset:function(){return!1}}),a.extend(a.fn.bootstrapTable.Constructor.EVENTS,{"cached-data-hit.bs.table":"onCachedDataHit","cached-data-reset.bs.table":"onCachedDataReset"});var gb=a.fn.bootstrapTable.Constructor,hb=gb.prototype.init,ib=gb.prototype.initServer,jb=gb.prototype.onSearch,kb=gb.prototype.onSort,lb=gb.prototype.onPageListChange;gb.prototype.init=function(){this.initPipeline();for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];hb.apply(this,Array.prototype.slice.apply(b))},gb.prototype.initPipeline=function(){this.cacheRequestJSON={},this.cacheWindows=[],this.currWindow=0,this.resetCache=!0},gb.prototype.onSearch=function(){this.options.usePipeline&&(this.resetCache=!0),jb.apply(this,Array.prototype.slice.apply(arguments))},gb.prototype.onSort=function(){this.options.usePipeline&&(this.resetCache=!0),kb.apply(this,Array.prototype.slice.apply(arguments))},gb.prototype.onPageListChange=function(b){var c=a(b.currentTarget),d=parseInt(c.text());this.options.pipelineSize=this.calculatePipelineSize(this.options.pipelineSize,d),this.resetCache=!0,lb.apply(this,Array.prototype.slice.apply(arguments))},gb.prototype.calculatePipelineSize=function(a,b){return 0===b?0:e(a/b)*b},gb.prototype.setCacheWindows=function(){this.cacheWindows=[];for(var a,c=this.options.totalRows/this.options.pipelineSize,d=0;d<=c;d++)a=d*this.options.pipelineSize,this.cacheWindows[d]={lower:a,upper:a+this.options.pipelineSize-1}},gb.prototype.setCurrWindow=function(a){this.currWindow=0;for(var b=0;b<this.cacheWindows.length;b++)if(this.cacheWindows[b].lower<=a&&a<=this.cacheWindows[b].upper){this.currWindow=b;break}},gb.prototype.drawFromCache=function(b,c){var d=a.extend(!0,{},this.cacheRequestJSON),e=b-this.cacheWindows[this.currWindow].lower;return d.rows=d.rows.slice(e,e+c),d},gb.prototype.initServer=function(b,c,d){var e={},f=this.header.fields.indexOf(this.options.sortName),g={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder},h=null;if(this.header.sortNames[f]&&(g.sortName=this.header.sortNames[f]),this.options.pagination&&"server"===this.options.sidePagination&&(g.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,g.pageNumber=this.options.pageNumber),d||this.options.url||this.options.ajax){var i=!0;if("limit"===this.options.queryParamsType&&(g={searchText:g.searchText,sortName:g.sortName,sortOrder:g.sortOrder},this.options.pagination&&"server"===this.options.sidePagination))if(g.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,g.offset=(this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)*(this.options.pageNumber-1),!this.options.usePipeline)0===g.limit&&delete g.limit;else if(!this.cacheWindows.length)i=!0,g.drawOffset=g.offset;else{var j=this.cacheWindows[this.currWindow];this.resetCache||g.offset<j.lower||g.offset>j.upper?(i=!0,this.setCurrWindow(g.offset),g.drawOffset=g.offset,g.offset=this.cacheWindows[this.currWindow].lower):i=!1}if(this.resetCache&&(i=!0,this.resetCache=!1),this.options.usePipeline&&i&&(g.drawLimit=g.limit,g.limit=this.options.pipelineSize),!i){var k=this.drawFromCache(g.offset,g.limit);return this.load(k),this.trigger("load-success",k),void this.trigger("cached-data-hit",k)}if(a.isEmptyObject(this.filterColumnsPartial)||(g.filter=JSON.stringify(this.filterColumnsPartial,null)),e=fb.calculateObjectValue(this.options,this.options.queryParams,[g],e),a.extend(e,c||{}),!1!==e){b||this.$tableLoading.show();var l=this;h=a.extend({},fb.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:d||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(e):e,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(c){c=fb.calculateObjectValue(l.options,l.options.responseHandler,[c],c),l.options.usePipeline&&(l.cacheRequestJSON=a.extend(!0,{},c),l.options.totalRows=c[l.options.totalField],l.setCacheWindows(),l.setCurrWindow(g.drawOffset),c=l.drawFromCache(g.drawOffset,g.drawLimit),l.trigger("cached-data-reset",c)),l.load(c),l.trigger("load-success",c),b||l.$tableLoading.hide()},error:function(a){var c=[];"server"===l.options.sidePagination&&(c={},c[l.options.totalField]=0,c[l.options.dataField]=[]),l.load(c),l.trigger("load-error",a.status,a),b||l.$tableLoading.hide()}}),this.options.ajax?fb.calculateObjectValue(this,this.options.ajax,[h],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=a.ajax(h))}}}});
|