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) 15.5 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.22.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";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math===Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=a,f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},s={},p={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,b=g&&!p.call({1:2},1);s.f=b?function(t){var n=g(this,t);return!!n&&n.enumerable}:p;var y,m,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=a,v=Function.prototype,w=v.call,S=h&&v.bind.bind(w,w),O=h?S:function(t){return function(){return w.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),A=function(t){return T(P(t),8,-1)},C=i,E=A,M=Object,x=O("".split),z=C((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"===E(t)?x(t,""):M(t)}:M,F=function(t){return null==t},I=F,R=TypeError,D=function(t){if(I(t))throw new R("Can't call method on "+t);return t},N=z,L=D,k=function(t){return N(L(t))},_="object"==typeof document&&document.all,H={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},q=H.all,G=H.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},B=G,U=H.all,V=H.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===U}:function(t){return"object"==typeof t?null!==t:B(t)},W=e,J=G,K=function(t){return J(t)?t:void 0},Q=function(t,n){return arguments.length<2?K(W[t]):W[t]&&W[t][n]},X=O({}.isPrototypeOf),Y=e,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=Y.process,tt=Y.Deno,nt=Z&&Z.versions||tt&&tt.version,rt=nt&&nt.v8;rt&&(m=(y=rt.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!m&&$&&(!(y=$.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=$.match(/Chrome\/(\d+)/))&&(m=+y[1]);var et=m,ot=et,it=i,ut=e.String,at=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol("symbol detection");return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),ct=at&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=Q,lt=G,st=X,pt=Object,gt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return lt(n)&&st(n.prototype,pt(t))},bt=String,yt=G,mt=function(t){try{return bt(t)}catch(t){return"Object"}},dt=TypeError,ht=function(t){if(yt(t))return t;throw new dt(mt(t)+" is not a function")},vt=F,wt=l,St=G,Ot=V,jt=TypeError,Pt={exports:{}},Tt=e,At=Object.defineProperty,Ct=function(t,n){try{At(Tt,t,{value:n,configurable:!0,writable:!0})}catch(r){Tt[t]=n}return n},Et=Ct,Mt="__core-js_shared__",xt=e[Mt]||Et(Mt,{}),zt=xt;(Pt.exports=function(t,n){return zt[t]||(zt[t]=void 0!==n?n:{})})("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 Ft=Pt.exports,It=D,Rt=Object,Dt=function(t){return Rt(It(t))},Nt=Dt,Lt=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,n){return Lt(Nt(t),n)},_t=O,Ht=0,qt=Math.random(),Gt=_t(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Gt(++Ht+qt,36)},Ut=Ft,Vt=kt,Wt=Bt,Jt=at,Kt=ct,Qt=e.Symbol,Xt=Ut("wks"),Yt=Kt?Qt.for||Qt:Qt&&Qt.withoutSetter||Wt,$t=function(t){return Vt(Xt,t)||(Xt[t]=Jt&&Vt(Qt,t)?Qt[t]:Yt("Symbol."+t)),Xt[t]},Zt=l,tn=V,nn=gt,rn=function(t,n){var r=t[n];return vt(r)?void 0:ht(r)},en=function(t,n){var r,e;if("string"===n&&St(r=t.toString)&&!Ot(e=wt(r,t)))return e;if(St(r=t.valueOf)&&!Ot(e=wt(r,t)))return e;if("string"!==n&&St(r=t.toString)&&!Ot(e=wt(r,t)))return e;throw new jt("Can't convert object to primitive value")},on=TypeError,un=$t("toPrimitive"),an=function(t,n){if(!tn(t)||nn(t))return t;var r,e=rn(t,un);if(e){if(void 0===n&&(n="default"),r=Zt(e,t,n),!tn(r)||nn(r))return r;throw new on("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=gt,fn=function(t){var n=an(t,"string");return cn(n)?n:n+""},ln=V,sn=e.document,pn=ln(sn)&&ln(sn.createElement),gn=function(t){return pn?sn.createElement(t):{}},bn=!u&&!i((function(){return 7!==Object.defineProperty(gn("div"),"a",{get:function(){return 7}}).a})),yn=u,mn=l,dn=s,hn=d,vn=k,wn=fn,Sn=kt,On=bn,jn=Object.getOwnPropertyDescriptor;o.f=yn?jn:function(t,n){if(t=vn(t),n=wn(n),On)try{return jn(t,n)}catch(t){}if(Sn(t,n))return hn(!mn(dn.f,t,n),t[n])};var Pn={},Tn=u&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),An=V,Cn=String,En=TypeError,Mn=function(t){if(An(t))return t;throw new En(Cn(t)+" is not an object")},xn=u,zn=bn,Fn=Tn,In=Mn,Rn=fn,Dn=TypeError,Nn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,kn="enumerable",_n="configurable",Hn="writable";Pn.f=xn?Fn?function(t,n,r){if(In(t),n=Rn(n),In(r),"function"==typeof t&&"prototype"===n&&"value"in r&&Hn in r&&!r.writable){var e=Ln(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:_n in r?r.configurable:e.configurable,enumerable:kn in r?r.enumerable:e.enumerable,writable:!1})}return Nn(t,n,r)}:Nn:function(t,n,r){if(In(t),n=Rn(n),In(r),zn)try{return Nn(t,n,r)}catch(t){}if("get"in r||"set"in r)throw new Dn("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var qn=Pn,Gn=d,Bn=u?function(t,n,r){return qn.f(t,n,Gn(1,r))}:function(t,n,r){return t[n]=r,t},Un={exports:{}},Vn=u,Wn=kt,Jn=Function.prototype,Kn=Vn&&Object.getOwnPropertyDescriptor,Qn=Wn(Jn,"name"),Xn={EXISTS:Qn,PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!Vn||Vn&&Kn(Jn,"name").configurable)},Yn=G,$n=xt,Zn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Zn(t)});var tr,nr,rr,er=$n.inspectSource,or=G,ir=e.WeakMap,ur=or(ir)&&/native code/.test(String(ir)),ar=Bt,cr=Ft("keys"),fr={},lr=ur,sr=e,pr=V,gr=Bn,br=kt,yr=xt,mr=function(t){return cr[t]||(cr[t]=ar(t))},dr=fr,hr="Object already initialized",vr=sr.TypeError,wr=sr.WeakMap;if(lr||yr.state){var Sr=yr.state||(yr.state=new wr);Sr.get=Sr.get,Sr.has=Sr.has,Sr.set=Sr.set,tr=function(t,n){if(Sr.has(t))throw new vr(hr);return n.facade=t,Sr.set(t,n),n},nr=function(t){return Sr.get(t)||{}},rr=function(t){return Sr.has(t)}}else{var Or=mr("state");dr[Or]=!0,tr=function(t,n){if(br(t,Or))throw new vr(hr);return n.facade=t,gr(t,Or,n),n},nr=function(t){return br(t,Or)?t[Or]:{}},rr=function(t){return br(t,Or)}}var jr={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(!pr(n)||(r=nr(n)).type!==t)throw new vr("Incompatible receiver, "+t+" required");return r}}},Pr=O,Tr=i,Ar=G,Cr=kt,Er=u,Mr=Xn.CONFIGURABLE,xr=er,zr=jr.enforce,Fr=jr.get,Ir=String,Rr=Object.defineProperty,Dr=Pr("".slice),Nr=Pr("".replace),Lr=Pr([].join),kr=Er&&!Tr((function(){return 8!==Rr((function(){}),"length",{value:8}).length})),_r=String(String).split("String"),Hr=Un.exports=function(t,n,r){"Symbol("===Dr(Ir(n),0,7)&&(n="["+Nr(Ir(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Cr(t,"name")||Mr&&t.name!==n)&&(Er?Rr(t,"name",{value:n,configurable:!0}):t.name=n),kr&&r&&Cr(r,"arity")&&t.length!==r.arity&&Rr(t,"length",{value:r.arity});try{r&&Cr(r,"constructor")&&r.constructor?Er&&Rr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=zr(t);return Cr(e,"source")||(e.source=Lr(_r,"string"==typeof n?n:"")),t};Function.prototype.toString=Hr((function(){return Ar(this)&&Fr(this).source||xr(this)}),"toString");var qr=Un.exports,Gr=G,Br=Pn,Ur=qr,Vr=Ct,Wr={},Jr=Math.ceil,Kr=Math.floor,Qr=Math.trunc||function(t){var n=+t;return(n>0?Kr:Jr)(n)},Xr=function(t){var n=+t;return n!=n||0===n?0: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=k,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=kt,le=k,se=ce.indexOf,pe=fr,ge=O([].push),be=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},ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=be,de=ye.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return me(t,de)};var he={};he.f=Object.getOwnPropertySymbols;var ve=Q,we=Wr,Se=he,Oe=Mn,je=O([].concat),Pe=ve("Reflect","ownKeys")||function(t){var n=we.f(Oe(t)),r=Se.f;return r?je(n,r(t)):n},Te=kt,Ae=Pe,Ce=o,Ee=Pn,Me=i,xe=G,ze=/#|\.prototype\./,Fe=function(t,n){var r=Re[Ie(t)];return r===Ne||r!==De&&(xe(n)?Me(n):!!n)},Ie=Fe.normalize=function(t){return String(t).replace(ze,".").toLowerCase()},Re=Fe.data={},De=Fe.NATIVE="N",Ne=Fe.POLYFILL="P",Le=Fe,ke=e,_e=o.f,He=Bn,qe=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;if(Gr(r)&&Ur(r,i,e),e.global)o?t[n]=r:Vr(n,r);else{try{e.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=r:Br.f(t,n,{value:r,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Ge=Ct,Be=function(t,n,r){for(var e=Ae(n),o=Ee.f,i=Ce.f,u=0;u<e.length;u++){var a=e[u];Te(t,a)||r&&Te(r,a)||o(t,a,i(n,a))}},Ue=Le,Ve=function(t,n){var r,e,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?ke:f?ke[a]||Ge(a,{}):(ke[a]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=_e(r,e))&&u.value:r[e],!Ue(c?e:a+(f?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Be(i,o)}(t.sham||o&&o.sham)&&He(i,"sham",!0),qe(r,e,i,t)}},We=A,Je=Array.isArray||function(t){return"Array"===We(t)},Ke=TypeError,Qe=fn,Xe=Pn,Ye=d,$e={};$e[$t("toStringTag")]="z";var Ze="[object z]"===String($e),to=G,no=A,ro=$t("toStringTag"),eo=Object,oo="Arguments"===no(function(){return arguments}()),io=O,uo=i,ao=G,co=Ze?no: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=eo(t),ro))?r:oo?no(n):"Object"===(e=no(n))&&to(n.callee)?"Arguments":e},fo=er,lo=function(){},so=[],po=Q("Reflect","construct"),go=/^\s*(?:class|function)\b/,bo=io(go.exec),yo=!go.test(lo),mo=function(t){if(!ao(t))return!1;try{return po(lo,so,t),!0}catch(t){return!1}},ho=function(t){if(!ao(t))return!1;switch(co(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yo||!!bo(go,fo(t))}catch(t){return!0}};ho.sham=!0;var vo=!po||uo((function(){var t;return mo(mo.call)||!mo(Object)||!mo((function(){t=!0}))||t}))?ho:mo,wo=Je,So=vo,Oo=V,jo=$t("species"),Po=Array,To=function(t){var n;return wo(t)&&(n=t.constructor,(So(n)&&(n===Po||wo(n.prototype))||Oo(n)&&null===(n=n[jo]))&&(n=void 0)),void 0===n?Po:n},Ao=i,Co=et,Eo=$t("species"),Mo=Ve,xo=i,zo=Je,Fo=V,Io=Dt,Ro=ee,Do=function(t){if(t>9007199254740991)throw Ke("Maximum allowed index exceeded");return t},No=function(t,n,r){var e=Qe(n);e in t?Xe.f(t,e,Ye(0,r)):t[e]=r},Lo=function(t,n){return new(To(t))(0===n?0:n)},ko=function(t){return Co>=51||!Ao((function(){var n=[];return(n.constructor={})[Eo]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},_o=et,Ho=$t("isConcatSpreadable"),qo=_o>=51||!xo((function(){var t=[];return t[Ho]=!1,t.concat()[0]!==t})),Go=function(t){if(!Fo(t))return!1;var n=t[Ho];return void 0!==n?!!n:zo(t)};Mo({target:"Array",proto:!0,arity:1,forced:!qo||!ko("concat")},{concat:function(t){var n,r,e,o,i,u=Io(this),a=Lo(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(Go(i=-1===n?u:arguments[n]))for(o=Ro(i),Do(c+o),r=0;r<o;r++,c++)r in i&&No(a,c,i[r]);else Do(c+1),No(a,c++,i);return a.length=c,a}});var Bo=be,Uo=ye,Vo=Object.keys||function(t){return Bo(t,Uo)},Wo=u,Jo=O,Ko=l,Qo=i,Xo=Vo,Yo=he,$o=s,Zo=Dt,ti=z,ni=Object.assign,ri=Object.defineProperty,ei=Jo([].concat),oi=!ni||Qo((function(){if(Wo&&1!==ni({b:1},ni(ri({},"a",{enumerable:!0,get:function(){ri(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!==ni({},t)[r]||Xo(ni({},n)).join("")!==e}))?function(t,n){for(var r=Zo(t),e=arguments.length,o=1,i=Yo.f,u=$o.f;e>o;)for(var a,c=ti(arguments[o++]),f=i?ei(Xo(c),i(c)):Xo(c),l=f.length,s=0;l>s;)a=f[s++],Wo&&!Ko(u,c,a)||(r[a]=c[a]);return r}:ni,ii=oi;Ve({target:"Object",stat:!0,arity:2,forced:Object.assign!==ii},{assign:ii}),t.fn.bootstrapTable.locales["it-IT"]=t.fn.bootstrapTable.locales.it={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"Caricamento in corso"},formatRecordsPerPage:function(t){return"".concat(t," elementi per pagina")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Visualizzazione da ".concat(t," a ").concat(n," di ").concat(r," elementi (filtrati da ").concat(e," elementi totali)"):"Visualizzazione da ".concat(t," a ").concat(n," di ").concat(r," elementi")},formatSRPaginationPreText:function(){return"pagina precedente"},formatSRPaginationPageText:function(t){return"alla pagina ".concat(t)},formatSRPaginationNextText:function(){return"pagina successiva"},formatDetailPagination:function(t){return"Mostrando ".concat(t," elementi")},formatClearSearch:function(){return"Pulisci filtri"},formatSearch:function(){return"Cerca"},formatNoMatches:function(){return"Nessun elemento trovato"},formatPaginationSwitch:function(){return"Nascondi/Mostra paginazione"},formatPaginationSwitchDown:function(){return"Mostra paginazione"},formatPaginationSwitchUp:function(){return"Nascondi paginazione"},formatRefresh:function(){return"Aggiorna"},formatToggleOn:function(){return"Mostra visuale a scheda"},formatToggleOff:function(){return"Nascondi visuale a scheda"},formatColumns:function(){return"Colonne"},formatColumnsToggleAll:function(){return"Mostra tutte"},formatFullscreen:function(){return"Schermo intero"},formatAllRows:function(){return"Tutto"},formatAutoRefresh:function(){return"Auto Aggiornamento"},formatExport:function(){return"Esporta dati"},formatJumpTo:function(){return"VAI"},formatAdvancedSearch:function(){return"Filtri avanzati"},formatAdvancedCloseButton:function(){return"Chiudi"},formatFilterControlSwitch:function(){return"Hide/Show controls"},formatFilterControlSwitchHide:function(){return"Hide controls"},formatFilterControlSwitchShow:function(){return"Show controls"}},Object.assign(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["it-IT"])}));