UNPKG

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