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