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]})),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,b=Object.getOwnPropertyDescriptor,g=b&&!p.call({1:2},1);s.f=g?function(t){var n=b(this,t);return!!n&&n.enumerable}:p;var y,h,m=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=c,v=Function.prototype,w=v.call,S=d&&v.bind.bind(w,w),j=d?S:function(t){return function(){return w.apply(t,arguments)}},O=j,P=O({}.toString),T=O("".slice),A=function(t){return T(P(t),8,-1)},E=i,C=A,x=Object,F=j("".split),M=E((function(){return!x("z").propertyIsEnumerable(0)}))?function(t){return"String"===C(t)?F(t,""):x(t)}:x,R=function(t){return null==t},D=R,I=TypeError,L=function(t){if(D(t))throw new I("Can't call method on "+t);return t},k=M,N=L,_=function(t){return k(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,U=H.all,J=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,K=q,Q=function(t){return K(t)?t:void 0},V=function(t,n){return arguments.length<2?Q(W[t]):W[t]&&W[t][n]},X=j({}.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&&(h=(y=rt.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!h&&$&&(!(y=$.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=$.match(/Chrome\/(\d+)/))&&(h=+y[1]);var et=h,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=V,lt=q,st=X,pt=Object,bt=at?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return lt(n)&&st(n.prototype,pt(t))},gt=String,yt=q,ht=function(t){try{return gt(t)}catch(t){return"Object"}},mt=TypeError,dt=function(t){if(yt(t))return t;throw new mt(ht(t)+" is not a function")},vt=R,wt=l,St=q,jt=J,Ot=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__",Ft=e[xt]||Ct(xt,{}),Mt=Ft;(Pt.exports=function(t,n){return Mt[t]||(Mt[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,Dt=L,It=Object,Lt=function(t){return It(Dt(t))},kt=Lt,Nt=j({}.hasOwnProperty),_t=Object.hasOwn||function(t,n){return Nt(kt(t),n)},zt=j,Ht=0,Gt=Math.random(),qt=zt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Ht+Gt,36)},Ut=Rt,Jt=_t,Wt=Bt,Kt=ct,Qt=at,Vt=e.Symbol,Xt=Ut("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Jt(Xt,t)||(Xt[t]=Kt&&Jt(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Zt=l,tn=J,nn=bt,rn=function(t,n){var r=t[n];return vt(r)?void 0:dt(r)},en=function(t,n){var r,e;if("string"===n&&St(r=t.toString)&&!jt(e=wt(r,t)))return e;if(St(r=t.valueOf)&&!jt(e=wt(r,t)))return e;if("string"!==n&&St(r=t.toString)&&!jt(e=wt(r,t)))return e;throw new Ot("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=bt,fn=function(t){var n=cn(t,"string");return an(n)?n:n+""},ln=J,sn=e.document,pn=ln(sn)&&ln(sn.createElement),bn=function(t){return pn?sn.createElement(t):{}},gn=!u&&!i((function(){return 7!==Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a})),yn=u,hn=l,mn=s,dn=m,vn=_,wn=fn,Sn=_t,jn=gn,On=Object.getOwnPropertyDescriptor;o.f=yn?On:function(t,n){if(t=vn(t),n=wn(n),jn)try{return On(t,n)}catch(t){}if(Sn(t,n))return dn(!hn(mn.f,t,n),t[n])};var Pn={},Tn=u&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),An=J,En=String,Cn=TypeError,xn=function(t){if(An(t))return t;throw new Cn(En(t)+" is not an object")},Fn=u,Mn=gn,Rn=Tn,Dn=xn,In=fn,Ln=TypeError,kn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,_n="enumerable",zn="configurable",Hn="writable";Pn.f=Fn?Rn?function(t,n,r){if(Dn(t),n=In(n),Dn(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 kn(t,n,r)}:kn:function(t,n,r){if(Dn(t),n=In(n),Dn(r),Mn)try{return kn(t,n,r)}catch(t){}if("get"in r||"set"in r)throw new Ln("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},Un={exports:{}},Jn=u,Wn=_t,Kn=Function.prototype,Qn=Jn&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Jn||Jn&&Qn(Kn,"name").configurable)},Yn=q,$n=Ft,Zn=j(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=J,br=Bn,gr=_t,yr=Ft,hr=function(t){return ar[t]||(ar[t]=cr(t))},mr=fr,dr="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(dr);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 jr=hr("state");mr[jr]=!0,tr=function(t,n){if(gr(t,jr))throw new vr(dr);return n.facade=t,br(t,jr,n),n},nr=function(t){return gr(t,jr)?t[jr]:{}},rr=function(t){return gr(t,jr)}}var Or={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=j,Tr=i,Ar=q,Er=_t,Cr=u,xr=Xn.CONFIGURABLE,Fr=er,Mr=Or.enforce,Rr=Or.get,Dr=String,Ir=Object.defineProperty,Lr=Pr("".slice),kr=Pr("".replace),Nr=Pr([].join),_r=Cr&&!Tr((function(){return 8!==Ir((function(){}),"length",{value:8}).length})),zr=String(String).split("String"),Hr=Un.exports=function(t,n,r){"Symbol("===Lr(Dr(n),0,7)&&(n="["+kr(Dr(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Er(t,"name")||xr&&t.name!==n)&&(Cr?Ir(t,"name",{value:n,configurable:!0}):t.name=n),_r&&r&&Er(r,"arity")&&t.length!==r.arity&&Ir(t,"length",{value:r.arity});try{r&&Er(r,"constructor")&&r.constructor?Cr&&Ir(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=Mr(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||Fr(this)}),"toString");var Gr=Un.exports,qr=q,Br=Pn,Ur=Gr,Jr=Et,Wr={},Kr=Math.ceil,Qr=Math.floor,Vr=Math.trunc||function(t){var n=+t;return(n>0?Qr:Kr)(n)},Xr=function(t){var n=+t;return n!=n||0===n?0:Vr(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,be=j([].push),ge=function(t,n){var r,e=le(t),o=0,i=[];for(r in e)!fe(pe,r)&&fe(e,r)&&be(i,r);for(;n.length>o;)fe(e,r=n[o++])&&(~se(i,r)||be(i,r));return i},ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],he=ge,me=ye.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return he(t,me)};var de={};de.f=Object.getOwnPropertySymbols;var ve=V,we=Wr,Se=de,je=xn,Oe=j([].concat),Pe=ve("Reflect","ownKeys")||function(t){var n=we.f(je(t)),r=Se.f;return r?Oe(n,r(t)):n},Te=_t,Ae=Pe,Ee=o,Ce=Pn,xe=i,Fe=q,Me=/#|\.prototype\./,Re=function(t,n){var r=Ie[De(t)];return r===ke||r!==Le&&(Fe(n)?xe(n):!!n)},De=Re.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Ie=Re.data={},Le=Re.NATIVE="N",ke=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)&&Ur(r,i,e),e.global)o?t[n]=r:Jr(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))}},Ue=Ne,Je=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],!Ue(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)}},We=A,Ke=Array.isArray||function(t){return"Array"===We(t)},Qe=TypeError,Ve=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=j,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=V("Reflect","construct"),bo=/^\s*(?:class|function)\b/,go=io(bo.exec),yo=!bo.test(lo),ho=function(t){if(!co(t))return!1;try{return po(lo,so,t),!0}catch(t){return!1}},mo=function(t){if(!co(t))return!1;switch(ao(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yo||!!go(bo,fo(t))}catch(t){return!0}};mo.sham=!0;var vo=!po||uo((function(){var t;return ho(ho.call)||!ho(Object)||!ho((function(){t=!0}))||t}))?mo:ho,wo=Ke,So=vo,jo=J,Oo=$t("species"),Po=Array,To=function(t){var n;return wo(t)&&(n=t.constructor,(So(n)&&(n===Po||wo(n.prototype))||jo(n)&&null===(n=n[Oo]))&&(n=void 0)),void 0===n?Po:n},Ao=i,Eo=et,Co=$t("species"),xo=Je,Fo=i,Mo=Ke,Ro=J,Do=Lt,Io=ee,Lo=function(t){if(t>9007199254740991)throw Qe("Maximum allowed index exceeded");return t},ko=function(t,n,r){var e=Ve(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||!Fo((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:Mo(t)};xo({target:"Array",proto:!0,arity:1,forced:!Go||!_o("concat")},{concat:function(t){var n,r,e,o,i,u=Do(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=Io(i),Lo(a+o),r=0;r<o;r++,a++)r in i&&ko(c,a,i[r]);else Lo(a+1),ko(c,a++,i);return c.length=a,c}});var Bo=ge,Uo=ye,Jo=Object.keys||function(t){return Bo(t,Uo)},Wo=u,Ko=j,Qo=l,Vo=i,Xo=Jo,Yo=de,$o=s,Zo=Lt,ti=M,ni=Object.assign,ri=Object.defineProperty,ei=Ko([].concat),oi=!ni||Vo((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 c,a=ti(arguments[o++]),f=i?ei(Xo(a),i(a)):Xo(a),l=f.length,s=0;l>s;)c=f[s++],Wo&&!Qo(u,a,c)||(r[c]=a[c]);return r}:ni,ii=oi;Je({target:"Object",stat:!0,arity:2,forced:Object.assign!==ii},{assign:ii}),t.fn.bootstrapTable.locales["ja-JP"]=t.fn.bootstrapTable.locales.ja={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"読み込み中です。少々お待ちください。"},formatRecordsPerPage:function(t){return"ページ当たり最大".concat(t,"件")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"全".concat(r,"件から、").concat(t,"から").concat(n,"件目まで表示しています (filtered from ").concat(e," total rows)"):"全".concat(r,"件から、").concat(t,"から").concat(n,"件目まで表示しています")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatClearSearch:function(){return"Clear Search"},formatSearch:function(){return"検索"},formatNoMatches:function(){return"該当するレコードが見つかりません"},formatPaginationSwitch:function(){return"ページ数を表示・非表示"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"更新"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"列"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"すべて"},formatAutoRefresh:function(){return"Auto Refresh"},formatExport:function(){return"Export data"},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["ja-JP"])}));