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) 16.2 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:{},e=function(t){return t&&t.Math===Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("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]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=c,f=Function.prototype.call,l=a?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 m,y,h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=c,v=Function.prototype,S=v.call,w=d&&v.bind.bind(S,S),O=d?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),A=function(t){return T(P(t),8,-1)},E=i,D=A,C=Object,F=O("".split),x=E((function(){return!C("z").propertyIsEnumerable(0)}))?function(t){return"String"===D(t)?F(t,""):C(t)}:C,M=function(t){return null==t},k=M,L=TypeError,N=function(t){if(k(t))throw new L("Can't call method on "+t);return t},R=x,Z=N,I=function(t){return R(Z(t))},z="object"==typeof document&&document.all,_={all:z,IS_HTMLDDA:void 0===z&&void 0!==z},B=_.all,V=_.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},G=V,q=_.all,H=_.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:G(t)||t===q}:function(t){return"object"==typeof t?null!==t:G(t)},U=r,K=V,W=function(t){return K(t)?t:void 0},J=function(t,n){return arguments.length<2?W(U[t]):U[t]&&U[t][n]},Q=O({}.isPrototypeOf),X=r,Y="undefined"!=typeof navigator&&String(navigator.userAgent)||"",$=X.process,tt=X.Deno,nt=$&&$.versions||tt&&tt.version,et=nt&&nt.v8;et&&(y=(m=et.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!y&&Y&&(!(m=Y.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=Y.match(/Chrome\/(\d+)/))&&(y=+m[1]);var rt=y,ot=rt,it=i,ut=r.String,ct=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol("symbol detection");return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),at=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=J,lt=V,st=Q,pt=Object,gt=at?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return lt(n)&&st(n.prototype,pt(t))},bt=String,mt=V,yt=function(t){try{return bt(t)}catch(t){return"Object"}},ht=TypeError,dt=function(t){if(mt(t))return t;throw new ht(yt(t)+" is not a function")},vt=M,St=l,wt=V,Ot=H,jt=TypeError,Pt={exports:{}},Tt=r,At=Object.defineProperty,Et=function(t,n){try{At(Tt,t,{value:n,configurable:!0,writable:!0})}catch(e){Tt[t]=n}return n},Dt=Et,Ct="__core-js_shared__",Ft=r[Ct]||Dt(Ct,{}),xt=Ft;(Pt.exports=function(t,n){return xt[t]||(xt[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 Mt=Pt.exports,kt=N,Lt=Object,Nt=function(t){return Lt(kt(t))},Rt=Nt,Zt=O({}.hasOwnProperty),It=Object.hasOwn||function(t,n){return Zt(Rt(t),n)},zt=O,_t=0,Bt=Math.random(),Vt=zt(1..toString),Gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Vt(++_t+Bt,36)},qt=Mt,Ht=It,Ut=Gt,Kt=ct,Wt=at,Jt=r.Symbol,Qt=qt("wks"),Xt=Wt?Jt.for||Jt:Jt&&Jt.withoutSetter||Ut,Yt=function(t){return Ht(Qt,t)||(Qt[t]=Kt&&Ht(Jt,t)?Jt[t]:Xt("Symbol."+t)),Qt[t]},$t=l,tn=H,nn=gt,en=function(t,n){var e=t[n];return vt(e)?void 0:dt(e)},rn=function(t,n){var e,r;if("string"===n&&wt(e=t.toString)&&!Ot(r=St(e,t)))return r;if(wt(e=t.valueOf)&&!Ot(r=St(e,t)))return r;if("string"!==n&&wt(e=t.toString)&&!Ot(r=St(e,t)))return r;throw new jt("Can't convert object to primitive value")},on=TypeError,un=Yt("toPrimitive"),cn=function(t,n){if(!tn(t)||nn(t))return t;var e,r=en(t,un);if(r){if(void 0===n&&(n="default"),e=$t(r,t,n),!tn(e)||nn(e))return e;throw new on("Can't convert object to primitive value")}return void 0===n&&(n="number"),rn(t,n)},an=gt,fn=function(t){var n=cn(t,"string");return an(n)?n:n+""},ln=H,sn=r.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})),mn=u,yn=l,hn=s,dn=h,vn=I,Sn=fn,wn=It,On=bn,jn=Object.getOwnPropertyDescriptor;o.f=mn?jn:function(t,n){if(t=vn(t),n=Sn(n),On)try{return jn(t,n)}catch(t){}if(wn(t,n))return dn(!yn(hn.f,t,n),t[n])};var Pn={},Tn=u&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),An=H,En=String,Dn=TypeError,Cn=function(t){if(An(t))return t;throw new Dn(En(t)+" is not an object")},Fn=u,xn=bn,Mn=Tn,kn=Cn,Ln=fn,Nn=TypeError,Rn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,In="enumerable",zn="configurable",_n="writable";Pn.f=Fn?Mn?function(t,n,e){if(kn(t),n=Ln(n),kn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&_n in e&&!e.writable){var r=Zn(t,n);r&&r.writable&&(t[n]=e.value,e={configurable:zn in e?e.configurable:r.configurable,enumerable:In in e?e.enumerable:r.enumerable,writable:!1})}return Rn(t,n,e)}:Rn:function(t,n,e){if(kn(t),n=Ln(n),kn(e),xn)try{return Rn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw new Nn("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Bn=Pn,Vn=h,Gn=u?function(t,n,e){return Bn.f(t,n,Vn(1,e))}:function(t,n,e){return t[n]=e,t},qn={exports:{}},Hn=u,Un=It,Kn=Function.prototype,Wn=Hn&&Object.getOwnPropertyDescriptor,Jn=Un(Kn,"name"),Qn={EXISTS:Jn,PROPER:Jn&&"something"===function(){}.name,CONFIGURABLE:Jn&&(!Hn||Hn&&Wn(Kn,"name").configurable)},Xn=V,Yn=Ft,$n=O(Function.toString);Xn(Yn.inspectSource)||(Yn.inspectSource=function(t){return $n(t)});var te,ne,ee,re=Yn.inspectSource,oe=V,ie=r.WeakMap,ue=oe(ie)&&/native code/.test(String(ie)),ce=Gt,ae=Mt("keys"),fe={},le=ue,se=r,pe=H,ge=Gn,be=It,me=Ft,ye=function(t){return ae[t]||(ae[t]=ce(t))},he=fe,de="Object already initialized",ve=se.TypeError,Se=se.WeakMap;if(le||me.state){var we=me.state||(me.state=new Se);we.get=we.get,we.has=we.has,we.set=we.set,te=function(t,n){if(we.has(t))throw new ve(de);return n.facade=t,we.set(t,n),n},ne=function(t){return we.get(t)||{}},ee=function(t){return we.has(t)}}else{var Oe=ye("state");he[Oe]=!0,te=function(t,n){if(be(t,Oe))throw new ve(de);return n.facade=t,ge(t,Oe,n),n},ne=function(t){return be(t,Oe)?t[Oe]:{}},ee=function(t){return be(t,Oe)}}var je={set:te,get:ne,has:ee,enforce:function(t){return ee(t)?ne(t):te(t,{})},getterFor:function(t){return function(n){var e;if(!pe(n)||(e=ne(n)).type!==t)throw new ve("Incompatible receiver, "+t+" required");return e}}},Pe=O,Te=i,Ae=V,Ee=It,De=u,Ce=Qn.CONFIGURABLE,Fe=re,xe=je.enforce,Me=je.get,ke=String,Le=Object.defineProperty,Ne=Pe("".slice),Re=Pe("".replace),Ze=Pe([].join),Ie=De&&!Te((function(){return 8!==Le((function(){}),"length",{value:8}).length})),ze=String(String).split("String"),_e=qn.exports=function(t,n,e){"Symbol("===Ne(ke(n),0,7)&&(n="["+Re(ke(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Ee(t,"name")||Ce&&t.name!==n)&&(De?Le(t,"name",{value:n,configurable:!0}):t.name=n),Ie&&e&&Ee(e,"arity")&&t.length!==e.arity&&Le(t,"length",{value:e.arity});try{e&&Ee(e,"constructor")&&e.constructor?De&&Le(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=xe(t);return Ee(r,"source")||(r.source=Ze(ze,"string"==typeof n?n:"")),t};Function.prototype.toString=_e((function(){return Ae(this)&&Me(this).source||Fe(this)}),"toString");var Be=qn.exports,Ve=V,Ge=Pn,qe=Be,He=Et,Ue={},Ke=Math.ceil,We=Math.floor,Je=Math.trunc||function(t){var n=+t;return(n>0?We:Ke)(n)},Qe=function(t){var n=+t;return n!=n||0===n?0:Je(n)},Xe=Qe,Ye=Math.max,$e=Math.min,tr=Qe,nr=Math.min,er=function(t){return t>0?nr(tr(t),9007199254740991):0},rr=function(t){return er(t.length)},or=I,ir=function(t,n){var e=Xe(t);return e<0?Ye(e+n,0):$e(e,n)},ur=rr,cr=function(t){return function(n,e,r){var o,i=or(n),u=ur(i),c=ir(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},ar={includes:cr(!0),indexOf:cr(!1)},fr=It,lr=I,sr=ar.indexOf,pr=fe,gr=O([].push),br=function(t,n){var e,r=lr(t),o=0,i=[];for(e in r)!fr(pr,e)&&fr(r,e)&&gr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~sr(i,e)||gr(i,e));return i},mr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yr=br,hr=mr.concat("length","prototype");Ue.f=Object.getOwnPropertyNames||function(t){return yr(t,hr)};var dr={};dr.f=Object.getOwnPropertySymbols;var vr=J,Sr=Ue,wr=dr,Or=Cn,jr=O([].concat),Pr=vr("Reflect","ownKeys")||function(t){var n=Sr.f(Or(t)),e=wr.f;return e?jr(n,e(t)):n},Tr=It,Ar=Pr,Er=o,Dr=Pn,Cr=i,Fr=V,xr=/#|\.prototype\./,Mr=function(t,n){var e=Lr[kr(t)];return e===Rr||e!==Nr&&(Fr(n)?Cr(n):!!n)},kr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Lr=Mr.data={},Nr=Mr.NATIVE="N",Rr=Mr.POLYFILL="P",Zr=Mr,Ir=r,zr=o.f,_r=Gn,Br=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(Ve(e)&&qe(e,i,r),r.global)o?t[n]=e:He(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ge.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Vr=Et,Gr=function(t,n,e){for(var r=Ar(n),o=Dr.f,i=Er.f,u=0;u<r.length;u++){var c=r[u];Tr(t,c)||e&&Tr(e,c)||o(t,c,i(n,c))}},qr=Zr,Hr=function(t,n){var e,r,o,i,u,c=t.target,a=t.global,f=t.stat;if(e=a?Ir:f?Ir[c]||Vr(c,{}):(Ir[c]||{}).prototype)for(r in n){if(i=n[r],o=t.dontCallGetSet?(u=zr(e,r))&&u.value:e[r],!qr(a?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gr(i,o)}(t.sham||o&&o.sham)&&_r(i,"sham",!0),Br(e,r,i,t)}},Ur=A,Kr=Array.isArray||function(t){return"Array"===Ur(t)},Wr=TypeError,Jr=fn,Qr=Pn,Xr=h,Yr={};Yr[Yt("toStringTag")]="z";var $r="[object z]"===String(Yr),to=V,no=A,eo=Yt("toStringTag"),ro=Object,oo="Arguments"===no(function(){return arguments}()),io=O,uo=i,co=V,ao=$r?no:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=ro(t),eo))?e:oo?no(n):"Object"===(r=no(n))&&to(n.callee)?"Arguments":r},fo=re,lo=function(){},so=[],po=J("Reflect","construct"),go=/^\s*(?:class|function)\b/,bo=io(go.exec),mo=!go.test(lo),yo=function(t){if(!co(t))return!1;try{return po(lo,so,t),!0}catch(t){return!1}},ho=function(t){if(!co(t))return!1;switch(ao(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mo||!!bo(go,fo(t))}catch(t){return!0}};ho.sham=!0;var vo=!po||uo((function(){var t;return yo(yo.call)||!yo(Object)||!yo((function(){t=!0}))||t}))?ho:yo,So=Kr,wo=vo,Oo=H,jo=Yt("species"),Po=Array,To=function(t){var n;return So(t)&&(n=t.constructor,(wo(n)&&(n===Po||So(n.prototype))||Oo(n)&&null===(n=n[jo]))&&(n=void 0)),void 0===n?Po:n},Ao=i,Eo=rt,Do=Yt("species"),Co=Hr,Fo=i,xo=Kr,Mo=H,ko=Nt,Lo=rr,No=function(t){if(t>9007199254740991)throw Wr("Maximum allowed index exceeded");return t},Ro=function(t,n,e){var r=Jr(n);r in t?Qr.f(t,r,Xr(0,e)):t[r]=e},Zo=function(t,n){return new(To(t))(0===n?0:n)},Io=function(t){return Eo>=51||!Ao((function(){var n=[];return(n.constructor={})[Do]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},zo=rt,_o=Yt("isConcatSpreadable"),Bo=zo>=51||!Fo((function(){var t=[];return t[_o]=!1,t.concat()[0]!==t})),Vo=function(t){if(!Mo(t))return!1;var n=t[_o];return void 0!==n?!!n:xo(t)};Co({target:"Array",proto:!0,arity:1,forced:!Bo||!Io("concat")},{concat:function(t){var n,e,r,o,i,u=ko(this),c=Zo(u,0),a=0;for(n=-1,r=arguments.length;n<r;n++)if(Vo(i=-1===n?u:arguments[n]))for(o=Lo(i),No(a+o),e=0;e<o;e++,a++)e in i&&Ro(c,a,i[e]);else No(a+1),Ro(c,a++,i);return c.length=a,c}});var Go=br,qo=mr,Ho=Object.keys||function(t){return Go(t,qo)},Uo=u,Ko=O,Wo=l,Jo=i,Qo=Ho,Xo=dr,Yo=s,$o=Nt,ti=x,ni=Object.assign,ei=Object.defineProperty,ri=Ko([].concat),oi=!ni||Jo((function(){if(Uo&&1!==ni({b:1},ni(ei({},"a",{enumerable:!0,get:function(){ei(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!==ni({},t)[e]||Qo(ni({},n)).join("")!==r}))?function(t,n){for(var e=$o(t),r=arguments.length,o=1,i=Xo.f,u=Yo.f;r>o;)for(var c,a=ti(arguments[o++]),f=i?ri(Qo(a),i(a)):Qo(a),l=f.length,s=0;l>s;)c=f[s++],Uo&&!Wo(u,a,c)||(e[c]=a[c]);return e}:ni,ii=oi;Hr({target:"Object",stat:!0,arity:2,forced:Object.assign!==ii},{assign:ii}),t.fn.bootstrapTable.locales["de-DE"]=t.fn.bootstrapTable.locales.de={formatCopyRows:function(){return"Zeilen kopieren"},formatPrint:function(){return"Drucken"},formatLoadingMessage:function(){return"Lade, bitte warten"},formatRecordsPerPage:function(t){return"".concat(t," Zeilen pro Seite.")},formatShowingRows:function(t,n,e,r){return void 0!==r&&r>0&&r>e?"Zeige Zeile ".concat(t," bis ").concat(n," von ").concat(e," Zeile").concat(e>1?"n":""," (Gefiltert von ").concat(r," Zeile").concat(r>1?"n":"",")"):"Zeige Zeile ".concat(t," bis ").concat(n," von ").concat(e," Zeile").concat(e>1?"n":"",".")},formatSRPaginationPreText:function(){return"Vorherige Seite"},formatSRPaginationPageText:function(t){return"Zu Seite ".concat(t)},formatSRPaginationNextText:function(){return"Nächste Seite"},formatDetailPagination:function(t){return"Zeige ".concat(t," Zeile").concat(t>1?"n":"",".")},formatClearSearch:function(){return"Lösche Filter"},formatSearch:function(){return"Suchen"},formatNoMatches:function(){return"Keine passenden Ergebnisse gefunden"},formatPaginationSwitch:function(){return"Verstecke/Zeige Nummerierung"},formatPaginationSwitchDown:function(){return"Zeige Nummerierung"},formatPaginationSwitchUp:function(){return"Verstecke Nummerierung"},formatRefresh:function(){return"Neu laden"},formatToggleOn:function(){return"Normale Ansicht"},formatToggleOff:function(){return"Kartenansicht"},formatColumns:function(){return"Spalten"},formatColumnsToggleAll:function(){return"Alle umschalten"},formatFullscreen:function(){return"Vollbild"},formatAllRows:function(){return"Alle"},formatAutoRefresh:function(){return"Automatisches Neuladen"},formatExport:function(){return"Datenexport"},formatJumpTo:function(){return"Springen"},formatAdvancedSearch:function(){return"Erweiterte Suche"},formatAdvancedCloseButton:function(){return"Schließen"},formatFilterControlSwitch:function(){return"Verstecke/Zeige Filter"},formatFilterControlSwitchHide:function(){return"Verstecke Filter"},formatFilterControlSwitchShow:function(){return"Zeige Filter"},formatAddLevel:function(){return"Ebene hinzufügen"},formatCancel:function(){return"Abbrechen"},formatColumn:function(){return"Spalte"},formatDeleteLevel:function(){return"Ebene entfernen"},formatDuplicateAlertTitle:function(){return"Doppelte Einträge gefunden!"},formatDuplicateAlertDescription:function(){return"Bitte doppelte Spalten entfenen oder ändern"},formatMultipleSort:function(){return"Mehrfachsortierung"},formatOrder:function(){return"Reihenfolge"},formatSort:function(){return"Sortieren"},formatSortBy:function(){return"Sortieren nach"},formatThenBy:function(){return"anschließend"},formatSortOrders:function(){return{asc:"Aufsteigend",desc:"Absteigend"}}},Object.assign(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["de-DE"])}));