bootstrap-table
Version:
An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
11 lines (9 loc) • 16.1 kB
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.22.2
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,e(o.key),o)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=o(t);if(e){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},a.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){return t&&t.Math===Math&&t},p=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof l&&l)||s("object"==typeof l&&l)||function(){return this}()||Function("return this")(),y={},b=function(t){try{return!!t()}catch(t){return!0}},v=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=g,d=Function.prototype.call,m=h?d.bind(d):function(){return d.apply(d,arguments)},w={},O={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S=j&&!O.call({1:2},1);w.f=S?function(t){var e=j(this,t);return!!e&&e.enumerable}:O;var P,T,E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=g,_=Function.prototype,x=_.call,M=A&&_.bind.bind(x,x),R=A?M:function(t){return function(){return x.apply(t,arguments)}},D=R,F=D({}.toString),I=D("".slice),k=function(t){return I(F(t),8,-1)},C=b,L=k,z=Object,N=R("".split),B=C((function(){return!z("z").propertyIsEnumerable(0)}))?function(t){return"String"===L(t)?N(t,""):z(t)}:z,U=function(t){return null==t},q=U,G=TypeError,H=function(t){if(q(t))throw new G("Can't call method on "+t);return t},W=B,K=H,Q=function(t){return W(K(t))},V="object"==typeof document&&document.all,X={all:V,IS_HTMLDDA:void 0===V&&void 0!==V},Y=X.all,$=X.IS_HTMLDDA?function(t){return"function"==typeof t||t===Y}:function(t){return"function"==typeof t},J=$,Z=X.all,tt=X.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:J(t)||t===Z}:function(t){return"object"==typeof t?null!==t:J(t)},et=p,nt=$,rt=function(t){return nt(t)?t:void 0},ot=function(t,e){return arguments.length<2?rt(et[t]):et[t]&&et[t][e]},it=R({}.isPrototypeOf),ut=p,ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ft=ut.process,at=ut.Deno,lt=ft&&ft.versions||at&&at.version,st=lt&<.v8;st&&(T=(P=st.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!T&&ct&&(!(P=ct.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ct.match(/Chrome\/(\d+)/))&&(T=+P[1]);var pt=T,yt=pt,bt=b,vt=p.String,gt=!!Object.getOwnPropertySymbols&&!bt((function(){var t=Symbol("symbol detection");return!vt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),ht=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dt=ot,mt=$,wt=it,Ot=Object,jt=ht?function(t){return"symbol"==typeof t}:function(t){var e=dt("Symbol");return mt(e)&&wt(e.prototype,Ot(t))},St=String,Pt=$,Tt=function(t){try{return St(t)}catch(t){return"Object"}},Et=TypeError,At=function(t){if(Pt(t))return t;throw new Et(Tt(t)+" is not a function")},_t=U,xt=m,Mt=$,Rt=tt,Dt=TypeError,Ft={exports:{}},It=p,kt=Object.defineProperty,Ct=function(t,e){try{kt(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e},Lt=Ct,zt="__core-js_shared__",Nt=p[zt]||Lt(zt,{}),Bt=Nt;(Ft.exports=function(t,e){return Bt[t]||(Bt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ut=Ft.exports,qt=H,Gt=Object,Ht=function(t){return Gt(qt(t))},Wt=Ht,Kt=R({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return Kt(Wt(t),e)},Vt=R,Xt=0,Yt=Math.random(),$t=Vt(1..toString),Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+$t(++Xt+Yt,36)},Zt=Ut,te=Qt,ee=Jt,ne=gt,re=ht,oe=p.Symbol,ie=Zt("wks"),ue=re?oe.for||oe:oe&&oe.withoutSetter||ee,ce=function(t){return te(ie,t)||(ie[t]=ne&&te(oe,t)?oe[t]:ue("Symbol."+t)),ie[t]},fe=m,ae=tt,le=jt,se=function(t,e){var n=t[e];return _t(n)?void 0:At(n)},pe=function(t,e){var n,r;if("string"===e&&Mt(n=t.toString)&&!Rt(r=xt(n,t)))return r;if(Mt(n=t.valueOf)&&!Rt(r=xt(n,t)))return r;if("string"!==e&&Mt(n=t.toString)&&!Rt(r=xt(n,t)))return r;throw new Dt("Can't convert object to primitive value")},ye=TypeError,be=ce("toPrimitive"),ve=function(t,e){if(!ae(t)||le(t))return t;var n,r=se(t,be);if(r){if(void 0===e&&(e="default"),n=fe(r,t,e),!ae(n)||le(n))return n;throw new ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),pe(t,e)},ge=jt,he=function(t){var e=ve(t,"string");return ge(e)?e:e+""},de=tt,me=p.document,we=de(me)&&de(me.createElement),Oe=function(t){return we?me.createElement(t):{}},je=!v&&!b((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Se=v,Pe=m,Te=w,Ee=E,Ae=Q,_e=he,xe=Qt,Me=je,Re=Object.getOwnPropertyDescriptor;y.f=Se?Re:function(t,e){if(t=Ae(t),e=_e(e),Me)try{return Re(t,e)}catch(t){}if(xe(t,e))return Ee(!Pe(Te.f,t,e),t[e])};var De={},Fe=v&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ie=tt,ke=String,Ce=TypeError,Le=function(t){if(Ie(t))return t;throw new Ce(ke(t)+" is not an object")},ze=v,Ne=je,Be=Fe,Ue=Le,qe=he,Ge=TypeError,He=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ke="enumerable",Qe="configurable",Ve="writable";De.f=ze?Be?function(t,e,n){if(Ue(t),e=qe(e),Ue(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ve in n&&!n.writable){var r=We(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Qe in n?n.configurable:r.configurable,enumerable:Ke in n?n.enumerable:r.enumerable,writable:!1})}return He(t,e,n)}:He:function(t,e,n){if(Ue(t),e=qe(e),Ue(n),Ne)try{return He(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Ge("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Xe=De,Ye=E,$e=v?function(t,e,n){return Xe.f(t,e,Ye(1,n))}:function(t,e,n){return t[e]=n,t},Je={exports:{}},Ze=v,tn=Qt,en=Function.prototype,nn=Ze&&Object.getOwnPropertyDescriptor,rn=tn(en,"name"),on={EXISTS:rn,PROPER:rn&&"something"===function(){}.name,CONFIGURABLE:rn&&(!Ze||Ze&&nn(en,"name").configurable)},un=$,cn=Nt,fn=R(Function.toString);un(cn.inspectSource)||(cn.inspectSource=function(t){return fn(t)});var an,ln,sn,pn=cn.inspectSource,yn=$,bn=p.WeakMap,vn=yn(bn)&&/native code/.test(String(bn)),gn=Jt,hn=Ut("keys"),dn={},mn=vn,wn=p,On=tt,jn=$e,Sn=Qt,Pn=Nt,Tn=function(t){return hn[t]||(hn[t]=gn(t))},En=dn,An="Object already initialized",_n=wn.TypeError,xn=wn.WeakMap;if(mn||Pn.state){var Mn=Pn.state||(Pn.state=new xn);Mn.get=Mn.get,Mn.has=Mn.has,Mn.set=Mn.set,an=function(t,e){if(Mn.has(t))throw new _n(An);return e.facade=t,Mn.set(t,e),e},ln=function(t){return Mn.get(t)||{}},sn=function(t){return Mn.has(t)}}else{var Rn=Tn("state");En[Rn]=!0,an=function(t,e){if(Sn(t,Rn))throw new _n(An);return e.facade=t,jn(t,Rn,e),e},ln=function(t){return Sn(t,Rn)?t[Rn]:{}},sn=function(t){return Sn(t,Rn)}}var Dn={set:an,get:ln,has:sn,enforce:function(t){return sn(t)?ln(t):an(t,{})},getterFor:function(t){return function(e){var n;if(!On(e)||(n=ln(e)).type!==t)throw new _n("Incompatible receiver, "+t+" required");return n}}},Fn=R,In=b,kn=$,Cn=Qt,Ln=v,zn=on.CONFIGURABLE,Nn=pn,Bn=Dn.enforce,Un=Dn.get,qn=String,Gn=Object.defineProperty,Hn=Fn("".slice),Wn=Fn("".replace),Kn=Fn([].join),Qn=Ln&&!In((function(){return 8!==Gn((function(){}),"length",{value:8}).length})),Vn=String(String).split("String"),Xn=Je.exports=function(t,e,n){"Symbol("===Hn(qn(e),0,7)&&(e="["+Wn(qn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Cn(t,"name")||zn&&t.name!==e)&&(Ln?Gn(t,"name",{value:e,configurable:!0}):t.name=e),Qn&&n&&Cn(n,"arity")&&t.length!==n.arity&&Gn(t,"length",{value:n.arity});try{n&&Cn(n,"constructor")&&n.constructor?Ln&&Gn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Bn(t);return Cn(r,"source")||(r.source=Kn(Vn,"string"==typeof e?e:"")),t};Function.prototype.toString=Xn((function(){return kn(this)&&Un(this).source||Nn(this)}),"toString");var Yn=Je.exports,$n=$,Jn=De,Zn=Yn,tr=Ct,er={},nr=Math.ceil,rr=Math.floor,or=Math.trunc||function(t){var e=+t;return(e>0?rr:nr)(e)},ir=function(t){var e=+t;return e!=e||0===e?0:or(e)},ur=ir,cr=Math.max,fr=Math.min,ar=ir,lr=Math.min,sr=function(t){return t>0?lr(ar(t),9007199254740991):0},pr=function(t){return sr(t.length)},yr=Q,br=function(t,e){var n=ur(t);return n<0?cr(n+e,0):fr(n,e)},vr=pr,gr=function(t){return function(e,n,r){var o,i=yr(e),u=vr(i),c=br(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},hr={includes:gr(!0),indexOf:gr(!1)},dr=Qt,mr=Q,wr=hr.indexOf,Or=dn,jr=R([].push),Sr=function(t,e){var n,r=mr(t),o=0,i=[];for(n in r)!dr(Or,n)&&dr(r,n)&&jr(i,n);for(;e.length>o;)dr(r,n=e[o++])&&(~wr(i,n)||jr(i,n));return i},Pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tr=Sr,Er=Pr.concat("length","prototype");er.f=Object.getOwnPropertyNames||function(t){return Tr(t,Er)};var Ar={};Ar.f=Object.getOwnPropertySymbols;var _r=ot,xr=er,Mr=Ar,Rr=Le,Dr=R([].concat),Fr=_r("Reflect","ownKeys")||function(t){var e=xr.f(Rr(t)),n=Mr.f;return n?Dr(e,n(t)):e},Ir=Qt,kr=Fr,Cr=y,Lr=De,zr=b,Nr=$,Br=/#|\.prototype\./,Ur=function(t,e){var n=Gr[qr(t)];return n===Wr||n!==Hr&&(Nr(e)?zr(e):!!e)},qr=Ur.normalize=function(t){return String(t).replace(Br,".").toLowerCase()},Gr=Ur.data={},Hr=Ur.NATIVE="N",Wr=Ur.POLYFILL="P",Kr=Ur,Qr=p,Vr=y.f,Xr=$e,Yr=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if($n(n)&&Zn(n,i,r),r.global)o?t[e]=n:tr(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Jn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},$r=Ct,Jr=function(t,e,n){for(var r=kr(e),o=Lr.f,i=Cr.f,u=0;u<r.length;u++){var c=r[u];Ir(t,c)||n&&Ir(n,c)||o(t,c,i(e,c))}},Zr=Kr,to=function(t,e){var n,r,o,i,u,c=t.target,f=t.global,a=t.stat;if(n=f?Qr:a?Qr[c]||$r(c,{}):(Qr[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=Vr(n,r))&&u.value:n[r],!Zr(f?r:c+(a?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jr(i,o)}(t.sham||o&&o.sham)&&Xr(i,"sham",!0),Yr(n,r,i,t)}},eo=Sr,no=Pr,ro=Object.keys||function(t){return eo(t,no)},oo=v,io=R,uo=m,co=b,fo=ro,ao=Ar,lo=w,so=Ht,po=B,yo=Object.assign,bo=Object.defineProperty,vo=io([].concat),go=!yo||co((function(){if(oo&&1!==yo({b:1},yo(bo({},"a",{enumerable:!0,get:function(){bo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==yo({},t)[n]||fo(yo({},e)).join("")!==r}))?function(t,e){for(var n=so(t),r=arguments.length,o=1,i=ao.f,u=lo.f;r>o;)for(var c,f=po(arguments[o++]),a=i?vo(fo(f),i(f)):fo(f),l=a.length,s=0;l>s;)c=a[s++],oo&&!uo(u,f,c)||(n[c]=f[c]);return n}:yo,ho=go;to({target:"Object",stat:!0,arity:2,forced:Object.assign!==ho},{assign:ho});var mo=k,wo=Array.isArray||function(t){return"Array"===mo(t)},Oo=TypeError,jo=he,So=De,Po=E,To={};To[ce("toStringTag")]="z";var Eo="[object z]"===String(To),Ao=$,_o=k,xo=ce("toStringTag"),Mo=Object,Ro="Arguments"===_o(function(){return arguments}()),Do=R,Fo=b,Io=$,ko=Eo?_o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Mo(t),xo))?n:Ro?_o(e):"Object"===(r=_o(e))&&Ao(e.callee)?"Arguments":r},Co=pn,Lo=function(){},zo=[],No=ot("Reflect","construct"),Bo=/^\s*(?:class|function)\b/,Uo=Do(Bo.exec),qo=!Bo.test(Lo),Go=function(t){if(!Io(t))return!1;try{return No(Lo,zo,t),!0}catch(t){return!1}},Ho=function(t){if(!Io(t))return!1;switch(ko(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qo||!!Uo(Bo,Co(t))}catch(t){return!0}};Ho.sham=!0;var Wo=!No||Fo((function(){var t;return Go(Go.call)||!Go(Object)||!Go((function(){t=!0}))||t}))?Ho:Go,Ko=wo,Qo=Wo,Vo=tt,Xo=ce("species"),Yo=Array,$o=function(t){var e;return Ko(t)&&(e=t.constructor,(Qo(e)&&(e===Yo||Ko(e.prototype))||Vo(e)&&null===(e=e[Xo]))&&(e=void 0)),void 0===e?Yo:e},Jo=b,Zo=pt,ti=ce("species"),ei=to,ni=b,ri=wo,oi=tt,ii=Ht,ui=pr,ci=function(t){if(t>9007199254740991)throw Oo("Maximum allowed index exceeded");return t},fi=function(t,e,n){var r=jo(e);r in t?So.f(t,r,Po(0,n)):t[r]=n},ai=function(t,e){return new($o(t))(0===e?0:e)},li=function(t){return Zo>=51||!Jo((function(){var e=[];return(e.constructor={})[ti]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},si=pt,pi=ce("isConcatSpreadable"),yi=si>=51||!ni((function(){var t=[];return t[pi]=!1,t.concat()[0]!==t})),bi=function(t){if(!oi(t))return!1;var e=t[pi];return void 0!==e?!!e:ri(t)};ei({target:"Array",proto:!0,arity:1,forced:!yi||!li("concat")},{concat:function(t){var e,n,r,o,i,u=ii(this),c=ai(u,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(bi(i=-1===e?u:arguments[e]))for(o=ui(i),ci(f+o),n=0;n<o;n++,f++)n in i&&fi(c,f,i[n]);else ci(f+1),fi(c,f++,i);return c.length=f,c}}),Object.assign(t.fn.bootstrapTable.defaults,{deferUrl:void 0}),t.BootstrapTable=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(s,t);var e,u,f,l=c(s);function s(){return n(this,s),l.apply(this,arguments)}return e=s,u=[{key:"init",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=a(o(s.prototype),"init",this)).call.apply(t,[this].concat(n)),this.options.deferUrl&&(this.options.url=this.options.deferUrl)}}],u&&r(e.prototype,u),f&&r(e,f),Object.defineProperty(e,"prototype",{writable:!1}),s}(t.BootstrapTable)}));