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