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.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.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]})),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 y,d,m=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,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)},E=i,C=A,x=Object,k=O("".split),F=E((function(){return!x("z").propertyIsEnumerable(0)}))?function(t){return"String"===C(t)?k(t,""):x(t)}:x,R=function(t){return null==t},M=R,D=TypeError,I=function(t){if(M(t))throw new D("Can't call method on "+t);return t},L=F,N=I,_=function(t){return L(N(t))},z="object"==typeof document&&document.all,H={all:z,IS_HTMLDDA:void 0===z&&void 0!==z},G=H.all,q=H.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},B=q,K=H.all,U=H.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===K}:function(t){return"object"==typeof t?null!==t:B(t)},V=e,W=q,J=function(t){return W(t)?t:void 0},Q=function(t,n){return arguments.length<2?J(V[t]):V[t]&&V[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&&(d=(y=rt.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!d&&$&&(!(y=$.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=$.match(/Chrome\/(\d+)/))&&(d=+y[1]);var et=d,ot=et,it=i,ut=e.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=Q,lt=q,st=X,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,yt=q,dt=function(t){try{return bt(t)}catch(t){return"Object"}},mt=TypeError,ht=function(t){if(yt(t))return t;throw new mt(dt(t)+" is not a function")},vt=R,wt=l,St=q,Ot=U,jt=TypeError,Pt={exports:{}},Tt=e,At=Object.defineProperty,Et=function(t,n){try{At(Tt,t,{value:n,configurable:!0,writable:!0})}catch(r){Tt[t]=n}return n},Ct=Et,xt="__core-js_shared__",kt=e[xt]||Ct(xt,{}),Ft=kt;(Pt.exports=function(t,n){return Ft[t]||(Ft[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 Rt=Pt.exports,Mt=I,Dt=Object,It=function(t){return Dt(Mt(t))},Lt=It,Nt=O({}.hasOwnProperty),_t=Object.hasOwn||function(t,n){return Nt(Lt(t),n)},zt=O,Ht=0,Gt=Math.random(),qt=zt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Ht+Gt,36)},Kt=Rt,Ut=_t,Vt=Bt,Wt=ct,Jt=at,Qt=e.Symbol,Xt=Kt("wks"),Yt=Jt?Qt.for||Qt:Qt&&Qt.withoutSetter||Vt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Wt&&Ut(Qt,t)?Qt[t]:Yt("Symbol."+t)),Xt[t]},Zt=l,tn=U,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"),cn=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)},an=gt,fn=function(t){var n=cn(t,"string");return an(n)?n:n+""},ln=U,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,dn=l,mn=s,hn=m,vn=_,wn=fn,Sn=_t,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(!dn(mn.f,t,n),t[n])};var Pn={},Tn=u&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),An=U,En=String,Cn=TypeError,xn=function(t){if(An(t))return t;throw new Cn(En(t)+" is not an object")},kn=u,Fn=bn,Rn=Tn,Mn=xn,Dn=fn,In=TypeError,Ln=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,_n="enumerable",zn="configurable",Hn="writable";Pn.f=kn?Rn?function(t,n,r){if(Mn(t),n=Dn(n),Mn(r),"function"==typeof t&&"prototype"===n&&"value"in r&&Hn in r&&!r.writable){var e=Nn(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:zn in r?r.configurable:e.configurable,enumerable:_n in r?r.enumerable:e.enumerable,writable:!1})}return Ln(t,n,r)}:Ln:function(t,n,r){if(Mn(t),n=Dn(n),Mn(r),Fn)try{return Ln(t,n,r)}catch(t){}if("get"in r||"set"in r)throw new In("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var Gn=Pn,qn=m,Bn=u?function(t,n,r){return Gn.f(t,n,qn(1,r))}:function(t,n,r){return t[n]=r,t},Kn={exports:{}},Un=u,Vn=_t,Wn=Function.prototype,Jn=Un&&Object.getOwnPropertyDescriptor,Qn=Vn(Wn,"name"),Xn={EXISTS:Qn,PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!Un||Un&&Jn(Wn,"name").configurable)},Yn=q,$n=kt,Zn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Zn(t)});var tr,nr,rr,er=$n.inspectSource,or=q,ir=e.WeakMap,ur=or(ir)&&/native code/.test(String(ir)),cr=Bt,ar=Rt("keys"),fr={},lr=ur,sr=e,pr=U,gr=Bn,br=_t,yr=kt,dr=function(t){return ar[t]||(ar[t]=cr(t))},mr=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=dr("state");mr[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=q,Er=_t,Cr=u,xr=Xn.CONFIGURABLE,kr=er,Fr=jr.enforce,Rr=jr.get,Mr=String,Dr=Object.defineProperty,Ir=Pr("".slice),Lr=Pr("".replace),Nr=Pr([].join),_r=Cr&&!Tr((function(){return 8!==Dr((function(){}),"length",{value:8}).length})),zr=String(String).split("String"),Hr=Kn.exports=function(t,n,r){"Symbol("===Ir(Mr(n),0,7)&&(n="["+Lr(Mr(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Er(t,"name")||xr&&t.name!==n)&&(Cr?Dr(t,"name",{value:n,configurable:!0}):t.name=n),_r&&r&&Er(r,"arity")&&t.length!==r.arity&&Dr(t,"length",{value:r.arity});try{r&&Er(r,"constructor")&&r.constructor?Cr&&Dr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=Fr(t);return Er(e,"source")||(e.source=Nr(zr,"string"==typeof n?n:"")),t};Function.prototype.toString=Hr((function(){return Ar(this)&&Rr(this).source||kr(this)}),"toString");var Gr=Kn.exports,qr=q,Br=Pn,Kr=Gr,Ur=Et,Vr={},Wr=Math.ceil,Jr=Math.floor,Qr=Math.trunc||function(t){var n=+t;return(n>0?Jr:Wr)(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=_,ie=function(t,n){var r=Yr(t);return r<0?$r(r+n,0):Zr(r,n)},ue=ee,ce=function(t){return function(n,r,e){var o,i=oe(n),u=ue(i),c=ie(e,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}},ae={includes:ce(!0),indexOf:ce(!1)},fe=_t,le=_,se=ae.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"],de=be,me=ye.concat("length","prototype");Vr.f=Object.getOwnPropertyNames||function(t){return de(t,me)};var he={};he.f=Object.getOwnPropertySymbols;var ve=Q,we=Vr,Se=he,Oe=xn,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=_t,Ae=Pe,Ee=o,Ce=Pn,xe=i,ke=q,Fe=/#|\.prototype\./,Re=function(t,n){var r=De[Me(t)];return r===Le||r!==Ie&&(ke(n)?xe(n):!!n)},Me=Re.normalize=function(t){return String(t).replace(Fe,".").toLowerCase()},De=Re.data={},Ie=Re.NATIVE="N",Le=Re.POLYFILL="P",Ne=Re,_e=e,ze=o.f,He=Bn,Ge=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;if(qr(r)&&Kr(r,i,e),e.global)o?t[n]=r:Ur(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},qe=Et,Be=function(t,n,r){for(var e=Ae(n),o=Ce.f,i=Ee.f,u=0;u<e.length;u++){var c=e[u];Te(t,c)||r&&Te(r,c)||o(t,c,i(n,c))}},Ke=Ne,Ue=function(t,n){var r,e,o,i,u,c=t.target,a=t.global,f=t.stat;if(r=a?_e:f?_e[c]||qe(c,{}):(_e[c]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=ze(r,e))&&u.value:r[e],!Ke(a?e:c+(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),Ge(r,e,i,t)}},Ve=A,We=Array.isArray||function(t){return"Array"===Ve(t)},Je=TypeError,Qe=fn,Xe=Pn,Ye=m,$e={};$e[$t("toStringTag")]="z";var Ze="[object z]"===String($e),to=q,no=A,ro=$t("toStringTag"),eo=Object,oo="Arguments"===no(function(){return arguments}()),io=O,uo=i,co=q,ao=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(!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 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=We,So=vo,Oo=U,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,Eo=et,Co=$t("species"),xo=Ue,ko=i,Fo=We,Ro=U,Mo=It,Do=ee,Io=function(t){if(t>9007199254740991)throw Je("Maximum allowed index exceeded");return t},Lo=function(t,n,r){var e=Qe(n);e in t?Xe.f(t,e,Ye(0,r)):t[e]=r},No=function(t,n){return new(To(t))(0===n?0:n)},_o=function(t){return Eo>=51||!Ao((function(){var n=[];return(n.constructor={})[Co]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},zo=et,Ho=$t("isConcatSpreadable"),Go=zo>=51||!ko((function(){var t=[];return t[Ho]=!1,t.concat()[0]!==t})),qo=function(t){if(!Ro(t))return!1;var n=t[Ho];return void 0!==n?!!n:Fo(t)};xo({target:"Array",proto:!0,arity:1,forced:!Go||!_o("concat")},{concat:function(t){var n,r,e,o,i,u=Mo(this),c=No(u,0),a=0;for(n=-1,e=arguments.length;n<e;n++)if(qo(i=-1===n?u:arguments[n]))for(o=Do(i),Io(a+o),r=0;r<o;r++,a++)r in i&&Lo(c,a,i[r]);else Io(a+1),Lo(c,a++,i);return c.length=a,c}});var Bo=be,Ko=ye,Uo=Object.keys||function(t){return Bo(t,Ko)},Vo=u,Wo=O,Jo=l,Qo=i,Xo=Uo,Yo=he,$o=s,Zo=It,ti=F,ni=Object.assign,ri=Object.defineProperty,ei=Wo([].concat),oi=!ni||Qo((function(){if(Vo&&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 c,a=ti(arguments[o++]),f=i?ei(Xo(a),i(a)):Xo(a),l=f.length,s=0;l>s;)c=f[s++],Vo&&!Jo(u,a,c)||(r[c]=a[c]);return r}:ni,ii=oi;Ue({target:"Object",stat:!0,arity:2,forced:Object.assign!==ii},{assign:ii}),t.fn.bootstrapTable.locales["da-DK"]=t.fn.bootstrapTable.locales.da={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"Indlæser, vent venligst"},formatRecordsPerPage:function(t){return"".concat(t," poster pr side")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Viser ".concat(t," til ").concat(n," af ").concat(r," række").concat(r>1?"r":""," (filtered from ").concat(e," total rows)"):"Viser ".concat(t," til ").concat(n," af ").concat(r," række").concat(r>1?"r":"")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Viser ".concat(t," række").concat(t>1?"r":"")},formatClearSearch:function(){return"Ryd filtre"},formatSearch:function(){return"Søg"},formatNoMatches:function(){return"Ingen poster fundet"},formatPaginationSwitch:function(){return"Skjul/vis nummerering"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Opdater"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Kolonner"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"Alle"},formatAutoRefresh:function(){return"Auto Refresh"},formatExport:function(){return"Eksporter"},formatJumpTo:function(){return"GO"},formatAdvancedSearch:function(){return"Advanced search"},formatAdvancedCloseButton:function(){return"Close"},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["da-DK"])}));