11 lines
13 KiB
JavaScript
11 lines
13 KiB
JavaScript
/**
|
|
* 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.18.1
|
|
* @homepage https://bootstrap-table.com
|
|
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
|
|
* @license MIT
|
|
*/
|
|
|
|
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=n(t),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,n){return t(n={exports:{}},n.exports),n.exports}var i=function(t){return t&&t.Math==Math&&t},u=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!a.call({1:2},1)?function(t){var n=l(this,t);return!!n&&n.enumerable}:a},p=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},y={}.toString,d=function(t){return y.call(t).slice(8,-1)},h="".split,v=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,n){if(!m(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!m(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!m(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!m(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},O={}.hasOwnProperty,j=function(t,n){return O.call(t,n)},S=u.document,T=m(S)&&m(S.createElement),P=function(t){return T?S.createElement(t):{}},E=!f&&!c((function(){return 7!=Object.defineProperty(P("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,A={f:f?x:function(t,n){if(t=g(t),n=w(n,!0),E)try{return x(t,n)}catch(t){}if(j(t,n))return p(!s.f.call(t,n),t[n])}},_=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},C=Object.defineProperty,R={f:f?C:function(t,n,e){if(_(t),n=w(n,!0),_(e),E)try{return C(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},k=f?function(t,n,e){return R.f(t,n,p(1,e))}:function(t,n,e){return t[n]=e,t},M=function(t,n){try{k(u,t,n)}catch(e){u[t]=n}return n},I="__core-js_shared__",F=u[I]||M(I,{}),N=Function.toString;"function"!=typeof F.inspectSource&&(F.inspectSource=function(t){return N.call(t)});var D,L,q,z=F.inspectSource,G=u.WeakMap,J="function"==typeof G&&/native code/.test(z(G)),W=o((function(t){(t.exports=function(t,n){return F[t]||(F[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,K=Math.random(),Q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+K).toString(36)},V=W("keys"),X=function(t){return V[t]||(V[t]=Q(t))},Y={},$=u.WeakMap;if(J){var H=new $,U=H.get,Z=H.has,tt=H.set;D=function(t,n){return tt.call(H,t,n),n},L=function(t){return U.call(H,t)||{}},q=function(t){return Z.call(H,t)}}else{var nt=X("state");Y[nt]=!0,D=function(t,n){return k(t,nt,n),n},L=function(t){return j(t,nt)?t[nt]:{}},q=function(t){return j(t,nt)}}var et,rt,ot={set:D,get:L,has:q,enforce:function(t){return q(t)?L(t):D(t,{})},getterFor:function(t){return function(n){var e;if(!m(n)||(e=L(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},it=o((function(t){var n=ot.get,e=ot.enforce,r=String(String).split("String");(t.exports=function(t,n,o,i){var c=!!i&&!!i.unsafe,f=!!i&&!!i.enumerable,a=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof n||j(o,"name")||k(o,"name",n),e(o).source=r.join("string"==typeof n?n:"")),t!==u?(c?!a&&t[n]&&(f=!0):delete t[n],f?t[n]=o:k(t,n,o)):f?t[n]=o:M(n,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&n(this).source||z(this)}))})),ut=u,ct=function(t){return"function"==typeof t?t:void 0},ft=function(t,n){return arguments.length<2?ct(ut[t])||ct(u[t]):ut[t]&&ut[t][n]||u[t]&&u[t][n]},at=Math.ceil,lt=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?lt:at)(t)},pt=Math.min,yt=function(t){return t>0?pt(st(t),9007199254740991):0},dt=Math.max,ht=Math.min,vt=function(t){return function(n,e,r){var o,i=g(n),u=yt(i.length),c=function(t,n){var e=st(t);return e<0?dt(e+n,0):ht(e,n)}(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},bt={includes:vt(!0),indexOf:vt(!1)}.indexOf,gt=function(t,n){var e,r=g(t),o=0,i=[];for(e in r)!j(Y,e)&&j(r,e)&&i.push(e);for(;n.length>o;)j(r,e=n[o++])&&(~bt(i,e)||i.push(e));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wt=mt.concat("length","prototype"),Ot={f:Object.getOwnPropertyNames||function(t){return gt(t,wt)}},jt={f:Object.getOwnPropertySymbols},St=ft("Reflect","ownKeys")||function(t){var n=Ot.f(_(t)),e=jt.f;return e?n.concat(e(t)):n},Tt=function(t,n){for(var e=St(n),r=R.f,o=A.f,i=0;i<e.length;i++){var u=e[i];j(t,u)||r(t,u,o(n,u))}},Pt=/#|\.prototype\./,Et=function(t,n){var e=At[xt(t)];return e==Ct||e!=_t&&("function"==typeof n?c(n):!!n)},xt=Et.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},At=Et.data={},_t=Et.NATIVE="N",Ct=Et.POLYFILL="P",Rt=Et,kt=A.f,Mt=function(t,n){var e,r,o,i,c,f=t.target,a=t.global,l=t.stat;if(e=a?u:l?u[f]||M(f,{}):(u[f]||{}).prototype)for(r in n){if(i=n[r],o=t.noTargetGet?(c=kt(e,r))&&c.value:e[r],!Rt(a?r:f+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Tt(i,o)}(t.sham||o&&o.sham)&&k(i,"sham",!0),it(e,r,i,t)}},It=Array.isArray||function(t){return"Array"==d(t)},Ft=function(t){return Object(b(t))},Nt=function(t,n,e){var r=w(n);r in t?R.f(t,r,p(0,e)):t[r]=e},Dt=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),Lt=Dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qt=W("wks"),zt=u.Symbol,Gt=Lt?zt:zt&&zt.withoutSetter||Q,Jt=function(t){return j(qt,t)||(Dt&&j(zt,t)?qt[t]=zt[t]:qt[t]=Gt("Symbol."+t)),qt[t]},Wt=Jt("species"),Bt=function(t,n){var e;return It(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!It(e.prototype)?m(e)&&null===(e=e[Wt])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===n?0:n)},Kt=ft("navigator","userAgent")||"",Qt=u.process,Vt=Qt&&Qt.versions,Xt=Vt&&Vt.v8;Xt?rt=(et=Xt.split("."))[0]+et[1]:Kt&&(!(et=Kt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Kt.match(/Chrome\/(\d+)/))&&(rt=et[1]);var Yt,$t=rt&&+rt,Ht=Jt("species"),Ut=Jt("isConcatSpreadable"),Zt=9007199254740991,tn="Maximum allowed index exceeded",nn=$t>=51||!c((function(){var t=[];return t[Ut]=!1,t.concat()[0]!==t})),en=(Yt="concat",$t>=51||!c((function(){var t=[];return(t.constructor={})[Ht]=function(){return{foo:1}},1!==t[Yt](Boolean).foo}))),rn=function(t){if(!m(t))return!1;var n=t[Ut];return void 0!==n?!!n:It(t)};Mt({target:"Array",proto:!0,forced:!nn||!en},{concat:function(t){var n,e,r,o,i,u=Ft(this),c=Bt(u,0),f=0;for(n=-1,r=arguments.length;n<r;n++)if(rn(i=-1===n?u:arguments[n])){if(f+(o=yt(i.length))>Zt)throw TypeError(tn);for(e=0;e<o;e++,f++)e in i&&Nt(c,f,i[e])}else{if(f>=Zt)throw TypeError(tn);Nt(c,f++,i)}return c.length=f,c}});var on,un=function(t,n,e){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}},cn=[].push,fn=function(t){var n=1==t,e=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,f,a,l){for(var s,p,y=Ft(c),d=v(y),h=un(f,a,3),b=yt(d.length),g=0,m=l||Bt,w=n?m(c,b):e?m(c,0):void 0;b>g;g++)if((u||g in d)&&(p=h(s=d[g],g,y),t))if(n)w[g]=p;else if(p)switch(t){case 3:return!0;case 5:return s;case 6:return g;case 2:cn.call(w,s)}else if(o)return!1;return i?-1:r||o?o:w}},an={forEach:fn(0),map:fn(1),filter:fn(2),some:fn(3),every:fn(4),find:fn(5),findIndex:fn(6)},ln=Object.keys||function(t){return gt(t,mt)},sn=f?Object.defineProperties:function(t,n){_(t);for(var e,r=ln(n),o=r.length,i=0;o>i;)R.f(t,e=r[i++],n[e]);return t},pn=ft("document","documentElement"),yn=X("IE_PROTO"),dn=function(){},hn=function(t){return"<script>"+t+"</"+"script>"},vn=function(){try{on=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;vn=on?function(t){t.write(hn("")),t.close();var n=t.parentWindow.Object;return t=null,n}(on):((n=P("iframe")).style.display="none",pn.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(hn("document.F=Object")),t.close(),t.F);for(var e=mt.length;e--;)delete vn.prototype[mt[e]];return vn()};Y[yn]=!0;var bn=Object.create||function(t,n){var e;return null!==t?(dn.prototype=_(t),e=new dn,dn.prototype=null,e[yn]=t):e=vn(),void 0===n?e:sn(e,n)},gn=Jt("unscopables"),mn=Array.prototype;null==mn[gn]&&R.f(mn,gn,{configurable:!0,value:bn(null)});var wn,On=Object.defineProperty,jn={},Sn=function(t){throw t},Tn=an.find,Pn="find",En=!0,xn=function(t,n){if(j(jn,t))return jn[t];n||(n={});var e=[][t],r=!!j(n,"ACCESSORS")&&n.ACCESSORS,o=j(n,0)?n[0]:Sn,i=j(n,1)?n[1]:void 0;return jn[t]=!!e&&!c((function(){if(r&&!f)return!0;var t={length:-1};r?On(t,1,{enumerable:!0,get:Sn}):t[1]=1,e.call(t,o,i)}))}(Pn);function An(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function _n(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cn(t){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rn(t,n){return(Rn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function kn(t,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function Mn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=Cn(t);if(n){var o=Cn(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return kn(this,e)}}function In(t,n,e){return(In="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,e){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=Cn(t)););return t}(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(e):o.value}})(t,n,e||t)}Pn in[]&&Array(1).find((function(){En=!1})),Mt({target:"Array",proto:!0,forced:En||!xn},{find:function(t){return Tn(this,t,arguments.length>1?arguments[1]:void 0)}}),wn=Pn,mn[gn][wn]=!0;var Fn=e.default.fn.bootstrapTable.utils;e.default.extend(e.default.fn.bootstrapTable.defaults,{showJumpTo:!1}),e.default.extend(e.default.fn.bootstrapTable.locales,{formatJumpTo:function(){return"GO"}}),e.default.extend(e.default.fn.bootstrapTable.defaults,e.default.fn.bootstrapTable.locales),e.default.BootstrapTable=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Rn(t,n)}(u,t);var n,r,o,i=Mn(u);function u(){return An(this,u),i.apply(this,arguments)}return n=u,(r=[{key:"initPagination",value:function(){for(var t,n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if((t=In(Cn(u.prototype),"initPagination",this)).call.apply(t,[this].concat(o)),this.options.showJumpTo){var c=this.$pagination.find("> .pagination"),f=c.find(".page-jump-to");if(!f.length){var a=(f=e.default(Fn.sprintf(this.constants.html.inputGroup,'<input type="number"\n class="'.concat(this.constants.classes.input).concat(Fn.sprintf(" %s%s",this.constants.classes.inputPrefix,this.options.iconSize),'"\n value="').concat(this.options.pageNumber,'"\n min="1"\n max="').concat(this.totalPages,'">'),'<button class="'.concat(this.constants.buttonsClass,'" type="button">\n ').concat(this.options.formatJumpTo(),"\n </button>"))).addClass("page-jump-to").appendTo(c)).find("input");f.find("button").click((function(){n.selectPage(+a.val())})),a.keyup((function(t){""!==a.val()&&(13!==t.keyCode?+a.val()<+a.attr("min")?a.val(a.attr("min")):+a.val()>+a.attr("max")&&a.val(a.attr("max")):n.selectPage(+a.val()))})),a.blur((function(){""===a.val()&&a.val(n.options.pageNumber)}))}}}}])&&_n(n.prototype,r),o&&_n(n,o),u}(e.default.BootstrapTable)}));
|