UNPKG

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