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