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.7 kB
JavaScript
/**
* 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,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),O=d?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,F=O("".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},H=M,k=L,N=function(t){return H(k(t))},_="object"==typeof document&&document.all,z={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},G=z.all,q=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},B=q,U=z.all,W=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===U}:function(t){return"object"==typeof t?null!==t:B(t)},J=e,K=q,Q=function(t){return K(t)?t:void 0},V=function(t,n){return arguments.length<2?Q(J[t]):J[t]&&J[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&&(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,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,ht=function(t){try{return bt(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,Ot=W,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__",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))},Ht=Lt,kt=O({}.hasOwnProperty),Nt=Object.hasOwn||function(t,n){return kt(Ht(t),n)},_t=O,zt=0,Gt=Math.random(),qt=_t(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++zt+Gt,36)},Ut=Rt,Wt=Nt,Jt=Bt,Kt=ct,Qt=at,Vt=e.Symbol,Xt=Ut("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Jt,$t=function(t){return Wt(Xt,t)||(Xt[t]=Kt&&Wt(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Zt=l,tn=W,nn=gt,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)&&!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=W,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,hn=l,mn=s,dn=m,vn=N,wn=fn,Sn=Nt,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 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=W,En=String,Cn=TypeError,xn=function(t){if(An(t))return t;throw new Cn(En(t)+" is not an object")},Fn=u,Mn=bn,Rn=Tn,Dn=xn,In=fn,Ln=TypeError,Hn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Nn="enumerable",_n="configurable",zn="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&&zn in r&&!r.writable){var e=kn(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:_n in r?r.configurable:e.configurable,enumerable:Nn in r?r.enumerable:e.enumerable,writable:!1})}return Hn(t,n,r)}:Hn:function(t,n,r){if(Dn(t),n=In(n),Dn(r),Mn)try{return Hn(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:{}},Wn=u,Jn=Nt,Kn=Function.prototype,Qn=Wn&&Object.getOwnPropertyDescriptor,Vn=Jn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Wn||Wn&&Qn(Kn,"name").configurable)},Yn=q,$n=Ft,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=W,gr=Bn,br=Nt,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 Or=hr("state");mr[Or]=!0,tr=function(t,n){if(br(t,Or))throw new vr(dr);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=Nt,Cr=u,xr=Xn.CONFIGURABLE,Fr=er,Mr=jr.enforce,Rr=jr.get,Dr=String,Ir=Object.defineProperty,Lr=Pr("".slice),Hr=Pr("".replace),kr=Pr([].join),Nr=Cr&&!Tr((function(){return 8!==Ir((function(){}),"length",{value:8}).length})),_r=String(String).split("String"),zr=Un.exports=function(t,n,r){"Symbol("===Lr(Dr(n),0,7)&&(n="["+Hr(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),Nr&&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=kr(_r,"string"==typeof n?n:"")),t};Function.prototype.toString=zr((function(){return Ar(this)&&Rr(this).source||Fr(this)}),"toString");var Gr=Un.exports,qr=q,Br=Pn,Ur=Gr,Wr=Et,Jr={},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=N,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=Nt,le=N,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"],he=be,me=ye.concat("length","prototype");Jr.f=Object.getOwnPropertyNames||function(t){return he(t,me)};var de={};de.f=Object.getOwnPropertySymbols;var ve=V,we=Jr,Se=de,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=Nt,Ae=Pe,Ee=o,Ce=Pn,xe=i,Fe=q,Me=/#|\.prototype\./,Re=function(t,n){var r=Ie[De(t)];return r===He||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",He=Re.POLYFILL="P",ke=Re,Ne=e,_e=o.f,ze=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:Wr(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=ke,We=function(t,n){var r,e,o,i,u,c=t.target,a=t.global,f=t.stat;if(r=a?Ne:f?Ne[c]||qe(c,{}):(Ne[c]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=_e(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)&&ze(i,"sham",!0),Ge(r,e,i,t)}},Je=A,Ke=Array.isArray||function(t){return"Array"===Je(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=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=V("Reflect","construct"),go=/^\s*(?:class|function)\b/,bo=io(go.exec),yo=!go.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||!!bo(go,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,Oo=W,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=We,Fo=i,Mo=Ke,Ro=W,Do=Lt,Io=ee,Lo=function(t){if(t>9007199254740991)throw Qe("Maximum allowed index exceeded");return t},Ho=function(t,n,r){var e=Ve(n);e in t?Xe.f(t,e,Ye(0,r)):t[e]=r},ko=function(t,n){return new(To(t))(0===n?0:n)},No=function(t){return Eo>=51||!Ao((function(){var n=[];return(n.constructor={})[Co]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},_o=et,zo=$t("isConcatSpreadable"),Go=_o>=51||!Fo((function(){var t=[];return t[zo]=!1,t.concat()[0]!==t})),qo=function(t){if(!Ro(t))return!1;var n=t[zo];return void 0!==n?!!n:Mo(t)};xo({target:"Array",proto:!0,arity:1,forced:!Go||!No("concat")},{concat:function(t){var n,r,e,o,i,u=Do(this),c=ko(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&&Ho(c,a,i[r]);else Lo(a+1),Ho(c,a++,i);return c.length=a,c}});var Bo=be,Uo=ye,Wo=Object.keys||function(t){return Bo(t,Uo)},Jo=u,Ko=O,Qo=l,Vo=i,Xo=Wo,Yo=de,$o=s,Zo=Lt,ti=M,ni=Object.assign,ri=Object.defineProperty,ei=Ko([].concat),oi=!ni||Vo((function(){if(Jo&&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++],Jo&&!Qo(u,a,c)||(r[c]=a[c]);return r}:ni,ii=oi;We({target:"Object",stat:!0,arity:2,forced:Object.assign!==ii},{assign:ii}),t.fn.bootstrapTable.locales["th-TH"]=t.fn.bootstrapTable.locales.th={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(t," ถึง ").concat(n," จากทั้งหมด ").concat(r," รายการ (filtered from ").concat(e," total rows)"):"รายการที่ ".concat(t," ถึง ").concat(n," จากทั้งหมด ").concat(r," รายการ")},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"Hide/Show pagination"},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"All"},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["th-TH"])}));