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
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]})),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,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,m,h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=a,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,M=Object,k=O("".split),x=E((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"===C(t)?k(t,""):M(t)}:M,F=function(t){return null==t},R=F,D=TypeError,I=function(t){if(R(t))throw new D("Can't call method on "+t);return t},L=x,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,U=H.all,W=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)},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&&(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=V,lt=q,st=X,pt=Object,bt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return lt(n)&&st(n.prototype,pt(t))},gt=String,yt=q,mt=function(t){try{return gt(t)}catch(t){return"Object"}},ht=TypeError,dt=function(t){if(yt(t))return t;throw new ht(mt(t)+" is not a function")},vt=F,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,Mt="__core-js_shared__",kt=e[Mt]||Ct(Mt,{}),xt=kt;(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 Ft=Pt.exports,Rt=I,Dt=Object,It=function(t){return Dt(Rt(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)},Ut=Ft,Wt=_t,Jt=Bt,Kt=at,Qt=ct,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=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)&&!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=bt,fn=function(t){var n=an(t,"string");return cn(n)?n:n+""},ln=W,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,mn=l,hn=s,dn=h,vn=_,wn=fn,Sn=_t,On=gn,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(!mn(hn.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,Mn=function(t){if(An(t))return t;throw new Cn(En(t)+" is not an object")},kn=u,xn=gn,Fn=Tn,Rn=Mn,Dn=fn,In=TypeError,Ln=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,_n="enumerable",zn="configurable",Hn="writable";Pn.f=kn?Fn?function(t,n,r){if(Rn(t),n=Dn(n),Rn(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(Rn(t),n=Dn(n),Rn(r),xn)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=h,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=_t,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=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)),ar=Bt,cr=Ft("keys"),fr={},lr=ur,sr=e,pr=W,br=Bn,gr=_t,yr=kt,mr=function(t){return cr[t]||(cr[t]=ar(t))},hr=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=mr("state");hr[Or]=!0,tr=function(t,n){if(gr(t,Or))throw new vr(dr);return n.facade=t,br(t,Or,n),n},nr=function(t){return gr(t,Or)?t[Or]:{}},rr=function(t){return gr(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,Mr=Xn.CONFIGURABLE,kr=er,xr=jr.enforce,Fr=jr.get,Rr=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=Un.exports=function(t,n,r){"Symbol("===Ir(Rr(n),0,7)&&(n="["+Lr(Rr(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Er(t,"name")||Mr&&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=xr(t);return Er(e,"source")||(e.source=Nr(zr,"string"==typeof n?n:"")),t};Function.prototype.toString=Hr((function(){return Ar(this)&&Fr(this).source||kr(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=_,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=_t,le=_,se=ce.indexOf,pe=fr,be=O([].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"],me=ge,he=ye.concat("length","prototype");Jr.f=Object.getOwnPropertyNames||function(t){return me(t,he)};var de={};de.f=Object.getOwnPropertySymbols;var ve=V,we=Jr,Se=de,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=_t,Ae=Pe,Ee=o,Ce=Pn,Me=i,ke=q,xe=/#|\.prototype\./,Fe=function(t,n){var r=De[Re(t)];return r===Le||r!==Ie&&(ke(n)?Me(n):!!n)},Re=Fe.normalize=function(t){return String(t).replace(xe,".").toLowerCase()},De=Fe.data={},Ie=Fe.NATIVE="N",Le=Fe.POLYFILL="P",Ne=Fe,_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: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 a=e[u];Te(t,a)||r&&Te(r,a)||o(t,a,i(n,a))}},Ue=Ne,We=function(t,n){var r,e,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?_e:f?_e[a]||qe(a,{}):(_e[a]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=ze(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),Ge(r,e,i,t)}},Je=A,Ke=Array.isArray||function(t){return"Array"===Je(t)},Qe=TypeError,Ve=fn,Xe=Pn,Ye=h,$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,ao=q,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=V("Reflect","construct"),bo=/^\s*(?:class|function)\b/,go=io(bo.exec),yo=!bo.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||!!go(bo,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=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"),Mo=We,ko=i,xo=Ke,Fo=W,Ro=It,Do=ee,Io=function(t){if(t>9007199254740991)throw Qe("Maximum allowed index exceeded");return t},Lo=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||!ko((function(){var t=[];return t[Ho]=!1,t.concat()[0]!==t})),qo=function(t){if(!Fo(t))return!1;var n=t[Ho];return void 0!==n?!!n:xo(t)};Mo({target:"Array",proto:!0,arity:1,forced:!Go||!_o("concat")},{concat:function(t){var n,r,e,o,i,u=Ro(this),a=No(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(qo(i=-1===n?u:arguments[n]))for(o=Do(i),Io(c+o),r=0;r<o;r++,c++)r in i&&Lo(a,c,i[r]);else Io(c+1),Lo(a,c++,i);return a.length=c,a}});var Bo=ge,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=It,ti=x,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 a,c=ti(arguments[o++]),f=i?ei(Xo(c),i(c)):Xo(c),l=f.length,s=0;l>s;)a=f[s++],Jo&&!Qo(u,c,a)||(r[a]=c[a]);return r}:ni,ii=oi;We({target:"Object",stat:!0,arity:2,forced:Object.assign!==ii},{assign:ii}),t.fn.bootstrapTable.locales["id-ID"]=t.fn.bootstrapTable.locales.id={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"Memuat, mohon tunggu"},formatRecordsPerPage:function(t){return"".concat(t," baris per halaman")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Menampilkan ".concat(t," sampai ").concat(n," dari ").concat(r," baris (filtered from ").concat(e," total rows)"):"Menampilkan ".concat(t," sampai ").concat(n," dari ").concat(r," baris")},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"Bersihkan filter"},formatSearch:function(){return"Pencarian"},formatNoMatches:function(){return"Tidak ditemukan data yang cocok"},formatPaginationSwitch:function(){return"Sembunyikan/Tampilkan halaman"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Muat ulang"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"kolom"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"Semua"},formatAutoRefresh:function(){return"Auto Refresh"},formatExport:function(){return"Ekspor 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["id-ID"])}));