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) • 19.9 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.21.3
* @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";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,i=void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(o,"string"))?i:String(i)),r)}var o,i}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t,n){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},o(t,n)}function i(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=r(t);if(n){var c=r(this).constructor;e=Reflect.construct(o,arguments,c)}else e=o.apply(this,arguments);return i(this,e)}}function u(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=r(t)););return t}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,e){var r=u(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?t:e):o.value}},a.apply(this,arguments)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f=function(t){return t&&t.Math==Math&&t},l=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof s&&s)||function(){return this}()||Function("return this")(),p={},d=function(t){try{return!!t()}catch(t){return!0}},h=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!d((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),y=b,v=Function.prototype.call,g=y?v.bind(v):function(){return v.apply(v,arguments)},m={},w={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,j=O&&!w.call({1:2},1);m.f=j?function(t){var n=O(this,t);return!!n&&n.enumerable}:w;var S,P,T=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},E=b,A=Function.prototype,D=A.call,k=E&&A.bind.bind(D,D),C=E?k:function(t){return function(){return D.apply(t,arguments)}},_=C,x=_({}.toString),I=_("".slice),R=function(t){return I(x(t),8,-1)},F=d,M=R,L=Object,z=C("".split),B=F((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"==M(t)?z(t,""):L(t)}:L,N=function(t){return null==t},G=N,W=TypeError,q=function(t){if(G(t))throw W("Can't call method on "+t);return t},H=B,U=q,$=function(t){return H(U(t))},X="object"==typeof document&&document.all,K={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},Q=K.all,V=K.IS_HTMLDDA?function(t){return"function"==typeof t||t===Q}:function(t){return"function"==typeof t},Y=V,J=K.all,Z=K.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Y(t)||t===J}:function(t){return"object"==typeof t?null!==t:Y(t)},tt=l,nt=V,et=function(t){return nt(t)?t:void 0},rt=function(t,n){return arguments.length<2?et(tt[t]):tt[t]&&tt[t][n]},ot=C({}.isPrototypeOf),it=l,ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=it.process,at=it.Deno,st=ut&&ut.versions||at&&at.version,ft=st&&st.v8;ft&&(P=(S=ft.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!P&&ct&&(!(S=ct.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=ct.match(/Chrome\/(\d+)/))&&(P=+S[1]);var lt=P,pt=d,dt=!!Object.getOwnPropertySymbols&&!pt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&<&<<41})),ht=dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=rt,yt=V,vt=ot,gt=Object,mt=ht?function(t){return"symbol"==typeof t}:function(t){var n=bt("Symbol");return yt(n)&&vt(n.prototype,gt(t))},wt=String,Ot=V,jt=function(t){try{return wt(t)}catch(t){return"Object"}},St=TypeError,Pt=function(t){if(Ot(t))return t;throw St(jt(t)+" is not a function")},Tt=Pt,Et=N,At=g,Dt=V,kt=Z,Ct=TypeError,_t={},xt={get exports(){return _t},set exports(t){_t=t}},It=l,Rt=Object.defineProperty,Ft=function(t,n){try{Rt(It,t,{value:n,configurable:!0,writable:!0})}catch(e){It[t]=n}return n},Mt=Ft,Lt="__core-js_shared__",zt=l[Lt]||Mt(Lt,{}),Bt=zt;(xt.exports=function(t,n){return Bt[t]||(Bt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Nt=q,Gt=Object,Wt=function(t){return Gt(Nt(t))},qt=Wt,Ht=C({}.hasOwnProperty),Ut=Object.hasOwn||function(t,n){return Ht(qt(t),n)},$t=C,Xt=0,Kt=Math.random(),Qt=$t(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Xt+Kt,36)},Yt=_t,Jt=Ut,Zt=Vt,tn=dt,nn=ht,en=l.Symbol,rn=Yt("wks"),on=nn?en.for||en:en&&en.withoutSetter||Zt,cn=function(t){return Jt(rn,t)||(rn[t]=tn&&Jt(en,t)?en[t]:on("Symbol."+t)),rn[t]},un=g,an=Z,sn=mt,fn=function(t,n){var e=t[n];return Et(e)?void 0:Tt(e)},ln=function(t,n){var e,r;if("string"===n&&Dt(e=t.toString)&&!kt(r=At(e,t)))return r;if(Dt(e=t.valueOf)&&!kt(r=At(e,t)))return r;if("string"!==n&&Dt(e=t.toString)&&!kt(r=At(e,t)))return r;throw Ct("Can't convert object to primitive value")},pn=TypeError,dn=cn("toPrimitive"),hn=function(t,n){if(!an(t)||sn(t))return t;var e,r=fn(t,dn);if(r){if(void 0===n&&(n="default"),e=un(r,t,n),!an(e)||sn(e))return e;throw pn("Can't convert object to primitive value")}return void 0===n&&(n="number"),ln(t,n)},bn=mt,yn=function(t){var n=hn(t,"string");return bn(n)?n:n+""},vn=Z,gn=l.document,mn=vn(gn)&&vn(gn.createElement),wn=function(t){return mn?gn.createElement(t):{}},On=wn,jn=!h&&!d((function(){return 7!=Object.defineProperty(On("div"),"a",{get:function(){return 7}}).a})),Sn=h,Pn=g,Tn=m,En=T,An=$,Dn=yn,kn=Ut,Cn=jn,_n=Object.getOwnPropertyDescriptor;p.f=Sn?_n:function(t,n){if(t=An(t),n=Dn(n),Cn)try{return _n(t,n)}catch(t){}if(kn(t,n))return En(!Pn(Tn.f,t,n),t[n])};var xn={},In=h&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rn=Z,Fn=String,Mn=TypeError,Ln=function(t){if(Rn(t))return t;throw Mn(Fn(t)+" is not an object")},zn=h,Bn=jn,Nn=In,Gn=Ln,Wn=yn,qn=TypeError,Hn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,$n="enumerable",Xn="configurable",Kn="writable";xn.f=zn?Nn?function(t,n,e){if(Gn(t),n=Wn(n),Gn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Kn in e&&!e.writable){var r=Un(t,n);r&&r.writable&&(t[n]=e.value,e={configurable:Xn in e?e.configurable:r.configurable,enumerable:$n in e?e.enumerable:r.enumerable,writable:!1})}return Hn(t,n,e)}:Hn:function(t,n,e){if(Gn(t),n=Wn(n),Gn(e),Bn)try{return Hn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw qn("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Qn=xn,Vn=T,Yn=h?function(t,n,e){return Qn.f(t,n,Vn(1,e))}:function(t,n,e){return t[n]=e,t},Jn={},Zn={get exports(){return Jn},set exports(t){Jn=t}},te=h,ne=Ut,ee=Function.prototype,re=te&&Object.getOwnPropertyDescriptor,oe=ne(ee,"name"),ie={EXISTS:oe,PROPER:oe&&"something"===function(){}.name,CONFIGURABLE:oe&&(!te||te&&re(ee,"name").configurable)},ce=V,ue=zt,ae=C(Function.toString);ce(ue.inspectSource)||(ue.inspectSource=function(t){return ae(t)});var se,fe,le,pe=ue.inspectSource,de=V,he=l.WeakMap,be=de(he)&&/native code/.test(String(he)),ye=Vt,ve=_t("keys"),ge=function(t){return ve[t]||(ve[t]=ye(t))},me={},we=be,Oe=l,je=Z,Se=Yn,Pe=Ut,Te=zt,Ee=ge,Ae=me,De="Object already initialized",ke=Oe.TypeError,Ce=Oe.WeakMap;if(we||Te.state){var _e=Te.state||(Te.state=new Ce);_e.get=_e.get,_e.has=_e.has,_e.set=_e.set,se=function(t,n){if(_e.has(t))throw ke(De);return n.facade=t,_e.set(t,n),n},fe=function(t){return _e.get(t)||{}},le=function(t){return _e.has(t)}}else{var xe=Ee("state");Ae[xe]=!0,se=function(t,n){if(Pe(t,xe))throw ke(De);return n.facade=t,Se(t,xe,n),n},fe=function(t){return Pe(t,xe)?t[xe]:{}},le=function(t){return Pe(t,xe)}}var Ie={set:se,get:fe,has:le,enforce:function(t){return le(t)?fe(t):se(t,{})},getterFor:function(t){return function(n){var e;if(!je(n)||(e=fe(n)).type!==t)throw ke("Incompatible receiver, "+t+" required");return e}}},Re=C,Fe=d,Me=V,Le=Ut,ze=h,Be=ie.CONFIGURABLE,Ne=pe,Ge=Ie.enforce,We=Ie.get,qe=String,He=Object.defineProperty,Ue=Re("".slice),$e=Re("".replace),Xe=Re([].join),Ke=ze&&!Fe((function(){return 8!==He((function(){}),"length",{value:8}).length})),Qe=String(String).split("String"),Ve=Zn.exports=function(t,n,e){"Symbol("===Ue(qe(n),0,7)&&(n="["+$e(qe(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Le(t,"name")||Be&&t.name!==n)&&(ze?He(t,"name",{value:n,configurable:!0}):t.name=n),Ke&&e&&Le(e,"arity")&&t.length!==e.arity&&He(t,"length",{value:e.arity});try{e&&Le(e,"constructor")&&e.constructor?ze&&He(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Ge(t);return Le(r,"source")||(r.source=Xe(Qe,"string"==typeof n?n:"")),t};Function.prototype.toString=Ve((function(){return Me(this)&&We(this).source||Ne(this)}),"toString");var Ye=V,Je=xn,Ze=Jn,tr=Ft,nr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(Ye(e)&&Ze(e,i,r),r.global)o?t[n]=e:tr(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Je.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},er={},rr=Math.ceil,or=Math.floor,ir=Math.trunc||function(t){var n=+t;return(n>0?or:rr)(n)},cr=function(t){var n=+t;return n!=n||0===n?0:ir(n)},ur=cr,ar=Math.max,sr=Math.min,fr=cr,lr=Math.min,pr=function(t){return t>0?lr(fr(t),9007199254740991):0},dr=function(t){return pr(t.length)},hr=$,br=function(t,n){var e=ur(t);return e<0?ar(e+n,0):sr(e,n)},yr=dr,vr=function(t){return function(n,e,r){var o,i=hr(n),c=yr(i),u=br(r,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},gr={includes:vr(!0),indexOf:vr(!1)},mr=Ut,wr=$,Or=gr.indexOf,jr=me,Sr=C([].push),Pr=function(t,n){var e,r=wr(t),o=0,i=[];for(e in r)!mr(jr,e)&&mr(r,e)&&Sr(i,e);for(;n.length>o;)mr(r,e=n[o++])&&(~Or(i,e)||Sr(i,e));return i},Tr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Er=Pr,Ar=Tr.concat("length","prototype");er.f=Object.getOwnPropertyNames||function(t){return Er(t,Ar)};var Dr={};Dr.f=Object.getOwnPropertySymbols;var kr=rt,Cr=er,_r=Dr,xr=Ln,Ir=C([].concat),Rr=kr("Reflect","ownKeys")||function(t){var n=Cr.f(xr(t)),e=_r.f;return e?Ir(n,e(t)):n},Fr=Ut,Mr=Rr,Lr=p,zr=xn,Br=d,Nr=V,Gr=/#|\.prototype\./,Wr=function(t,n){var e=Hr[qr(t)];return e==$r||e!=Ur&&(Nr(n)?Br(n):!!n)},qr=Wr.normalize=function(t){return String(t).replace(Gr,".").toLowerCase()},Hr=Wr.data={},Ur=Wr.NATIVE="N",$r=Wr.POLYFILL="P",Xr=Wr,Kr=l,Qr=p.f,Vr=Yn,Yr=nr,Jr=Ft,Zr=function(t,n,e){for(var r=Mr(n),o=zr.f,i=Lr.f,c=0;c<r.length;c++){var u=r[c];Fr(t,u)||e&&Fr(e,u)||o(t,u,i(n,u))}},to=Xr,no=function(t,n){var e,r,o,i,c,u=t.target,a=t.global,s=t.stat;if(e=a?Kr:s?Kr[u]||Jr(u,{}):(Kr[u]||{}).prototype)for(r in n){if(i=n[r],o=t.dontCallGetSet?(c=Qr(e,r))&&c.value:e[r],!to(a?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zr(i,o)}(t.sham||o&&o.sham)&&Vr(i,"sham",!0),Yr(e,r,i,t)}},eo=R,ro=C,oo=function(t){if("Function"===eo(t))return ro(t)},io=Pt,co=b,uo=oo(oo.bind),ao=R,so=Array.isArray||function(t){return"Array"==ao(t)},fo={};fo[cn("toStringTag")]="z";var lo="[object z]"===String(fo),po=lo,ho=V,bo=R,yo=cn("toStringTag"),vo=Object,go="Arguments"==bo(function(){return arguments}()),mo=po?bo: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=vo(t),yo))?e:go?bo(n):"Object"==(r=bo(n))&&ho(n.callee)?"Arguments":r},wo=C,Oo=d,jo=V,So=mo,Po=pe,To=function(){},Eo=[],Ao=rt("Reflect","construct"),Do=/^\s*(?:class|function)\b/,ko=wo(Do.exec),Co=!Do.exec(To),_o=function(t){if(!jo(t))return!1;try{return Ao(To,Eo,t),!0}catch(t){return!1}},xo=function(t){if(!jo(t))return!1;switch(So(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Co||!!ko(Do,Po(t))}catch(t){return!0}};xo.sham=!0;var Io=!Ao||Oo((function(){var t;return _o(_o.call)||!_o(Object)||!_o((function(){t=!0}))||t}))?xo:_o,Ro=so,Fo=Io,Mo=Z,Lo=cn("species"),zo=Array,Bo=function(t){var n;return Ro(t)&&(n=t.constructor,(Fo(n)&&(n===zo||Ro(n.prototype))||Mo(n)&&null===(n=n[Lo]))&&(n=void 0)),void 0===n?zo:n},No=function(t,n){return io(t),void 0===n?t:co?uo(t,n):function(){return t.apply(n,arguments)}},Go=B,Wo=Wt,qo=dr,Ho=function(t,n){return new(Bo(t))(0===n?0:n)},Uo=C([].push),$o=function(t){var n=1==t,e=2==t,r=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,s,f,l){for(var p,d,h=Wo(a),b=Go(h),y=No(s,f),v=qo(b),g=0,m=l||Ho,w=n?m(a,v):e||c?m(a,0):void 0;v>g;g++)if((u||g in b)&&(d=y(p=b[g],g,h),t))if(n)w[g]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Uo(w,p)}else switch(t){case 4:return!1;case 7:Uo(w,p)}return i?-1:r||o?o:w}},Xo={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},Ko={},Qo=Pr,Vo=Tr,Yo=Object.keys||function(t){return Qo(t,Vo)},Jo=h,Zo=In,ti=xn,ni=Ln,ei=$,ri=Yo;Ko.f=Jo&&!Zo?Object.defineProperties:function(t,n){ni(t);for(var e,r=ei(n),o=ri(n),i=o.length,c=0;i>c;)ti.f(t,e=o[c++],r[e]);return t};var oi,ii=rt("document","documentElement"),ci=Ln,ui=Ko,ai=Tr,si=me,fi=ii,li=wn,pi=ge("IE_PROTO"),di=function(){},hi=function(t){return"<script>"+t+"</"+"script>"},bi=function(t){t.write(hi("")),t.close();var n=t.parentWindow.Object;return t=null,n},yi=function(){try{oi=new ActiveXObject("htmlfile")}catch(t){}var t,n;yi="undefined"!=typeof document?document.domain&&oi?bi(oi):((n=li("iframe")).style.display="none",fi.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(hi("document.F=Object")),t.close(),t.F):bi(oi);for(var e=ai.length;e--;)delete yi.prototype[ai[e]];return yi()};si[pi]=!0;var vi=cn,gi=Object.create||function(t,n){var e;return null!==t?(di.prototype=ci(t),e=new di,di.prototype=null,e[pi]=t):e=yi(),void 0===n?e:ui.f(e,n)},mi=xn.f,wi=vi("unscopables"),Oi=Array.prototype;null==Oi[wi]&&mi(Oi,wi,{configurable:!0,value:gi(null)});var ji=function(t){Oi[wi][t]=!0},Si=no,Pi=Xo.find,Ti=ji,Ei="find",Ai=!0;Ei in[]&&Array(1).find((function(){Ai=!1})),Si({target:"Array",proto:!0,forced:Ai},{find:function(t){return Pi(this,t,arguments.length>1?arguments[1]:void 0)}}),Ti(Ei);var Di=mo,ki=lo?{}.toString:function(){return"[object "+Di(this)+"]"};lo||nr(Object.prototype,"toString",ki,{unsafe:!0});var Ci=gr.includes,_i=ji;no({target:"Array",proto:!0,forced:d((function(){return!Array(1).includes()}))},{includes:function(t){return Ci(this,t,arguments.length>1?arguments[1]:void 0)}}),_i("includes");var xi=Z,Ii=R,Ri=cn("match"),Fi=function(t){var n;return xi(t)&&(void 0!==(n=t[Ri])?!!n:"RegExp"==Ii(t))},Mi=TypeError,Li=mo,zi=String,Bi=cn("match"),Ni=no,Gi=function(t){if(Fi(t))throw Mi("The method doesn't accept regular expressions");return t},Wi=q,qi=function(t){if("Symbol"===Li(t))throw TypeError("Cannot convert a Symbol value to a string");return zi(t)},Hi=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[Bi]=!1,"/./"[t](n)}catch(t){}}return!1},Ui=C("".indexOf);Ni({target:"String",proto:!0,forced:!Hi("includes")},{includes:function(t){return!!~Ui(qi(Wi(this)),qi(Gi(t)),arguments.length>1?arguments[1]:void 0)}}),t.fn.bootstrapTable.utils.extend(t.fn.bootstrapTable.defaults,{classes:"table is-bordered is-hoverable",buttonsPrefix:"",buttonsClass:"button"}),t.fn.bootstrapTable.theme="bulma",t.BootstrapTable=function(i){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&o(t,n)}(p,i);var u,s,f,l=c(p);function p(){return n(this,p),l.apply(this,arguments)}return u=p,(s=[{key:"initConstants",value:function(){a(r(p.prototype),"initConstants",this).call(this),this.constants.classes.buttonsGroup="buttons has-addons",this.constants.classes.buttonsDropdown="button dropdown is-right",this.constants.classes.input="input",this.constants.classes.paginationDropdown="ui dropdown",this.constants.classes.dropup="is-up",this.constants.classes.dropdownActive="is-active",this.constants.classes.paginationActive="is-current",this.constants.classes.buttonActive="is-active",this.constants.html.toolbarDropdown=['<div class="dropdown-menu"><div class="dropdown-content">',"</div></div>"],this.constants.html.toolbarDropdownItem='<label class="dropdown-item dropdown-item-marker">%s</label>',this.constants.html.toolbarDropdownSeparator='<li class="dropdown-divider"></li>',this.constants.html.pageDropdown=['<div class="dropdown-menu"><div class="dropdown-content">',"</div></div>"],this.constants.html.pageDropdownItem='<a class="dropdown-item %s" href="#">%s</a>',this.constants.html.dropdownCaret='<span class="icon is-small"><i class="fas fa-angle-down" aria-hidden="true"></i></span>',this.constants.html.pagination=['<ul class="pagination%s">',"</ul>"],this.constants.html.paginationItem='<li><a class="page-item pagination-link%s" aria-label="%s" href="#">%s</a></li>',this.constants.html.searchInput='<p class="control"><input class="%s input-%s" type="search" placeholder="%s"></p>',this.constants.html.inputGroup='<div class="field has-addons has-addons-right">%s%s</div>',this.constants.html.searchButton='<p class="control"><button class="%s" type="button" name="search" title="%s">%s %s</button></p>',this.constants.html.searchClearButton='<p class="control"><button class="%s" type="button" name="clearSearch" title="%s">%s %s</button></p>'}},{key:"initToolbar",value:function(){a(r(p.prototype),"initToolbar",this).call(this),this.handleToolbar()}},{key:"handleToolbar",value:function(){this.$toolbar.find(".dropdown").length&&this._initDropdown()}},{key:"initPagination",value:function(){a(r(p.prototype),"initPagination",this).call(this),this.options.pagination&&this.paginationParts.includes("pageSize")&&this._initDropdown()}},{key:"_initDropdown",value:function(){var n=this.$container.find(".dropdown:not(.is-hoverable)");n.off("click").on("click",(function(e){var r=t(e.currentTarget);e.stopPropagation(),n.not(r).removeClass("is-active"),r.toggleClass("is-active")})),t(document).off("click.bs.dropdown.bulma").on("click.bs.dropdown.bulma",(function(){n.removeClass("is-active")}))}}])&&e(u.prototype,s),f&&e(u,f),Object.defineProperty(u,"prototype",{writable:!1}),p}(t.BootstrapTable)}));