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) • 20.8 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.20.2
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];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:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function a(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)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 u(t){var e=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 n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.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")(),y={},h=function(t){try{return!!t()}catch(t){return!0}},b=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!h((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={},k={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S=j&&!k.call({1:2},1);O.f=S?function(t){var e=j(this,t);return!!e&&e.enumerable}:k;var $,P,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C=v,E=Function.prototype,x=E.bind,_=E.call,H=C&&x.bind(_,_),A=C?function(t){return t&&H(t)}:function(t){return t&&function(){return _.apply(t,arguments)}},R=A,B=R({}.toString),F=R("".slice),I=function(t){return F(B(t),8,-1)},L=A,z=h,M=I,N=d.Object,D=L("".split),q=z((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==M(t)?D(t,""):N(t)}:N,G=d.TypeError,X=function(t){if(null==t)throw G("Can't call method on "+t);return t},Y=q,W=X,U=function(t){return Y(W(t))},V=function(t){return"function"==typeof t},K=V,Q=function(t){return"object"==typeof t?null!==t:K(t)},J=d,Z=V,tt=function(t){return Z(t)?t:void 0},et=function(t,e){return arguments.length<2?tt(J[t]):J[t]&&J[t][e]},nt=A({}.isPrototypeOf),rt=d,ot=et("navigator","userAgent")||"",it=rt.process,ct=rt.Deno,at=it&&it.versions||ct&&ct.version,ut=at&&at.v8;ut&&(P=($=ut.split("."))[0]>0&&$[0]<4?1:+($[0]+$[1])),!P&&ot&&(!($=ot.match(/Edge\/(\d+)/))||$[1]>=74)&&($=ot.match(/Chrome\/(\d+)/))&&(P=+$[1]);var ft=P,st=ft,lt=h,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),dt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=et,ht=V,bt=nt,vt=dt,gt=d.Object,mt=vt?function(t){return"symbol"==typeof t}:function(t){var e=yt("Symbol");return ht(e)&&bt(e.prototype,gt(t))},wt=d.String,Ot=V,kt=function(t){try{return wt(t)}catch(t){return"Object"}},jt=d.TypeError,St=function(t){if(Ot(t))return t;throw jt(kt(t)+" is not a function")},$t=St,Pt=w,Tt=V,Ct=Q,Et=d.TypeError,xt={exports:{}},_t=d,Ht=Object.defineProperty,At=function(t,e){try{Ht(_t,t,{value:e,configurable:!0,writable:!0})}catch(n){_t[t]=e}return e},Rt=At,Bt="__core-js_shared__",Ft=d[Bt]||Rt(Bt,{}),It=Ft;(xt.exports=function(t,e){return It[t]||(It[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Lt=X,zt=d.Object,Mt=function(t){return zt(Lt(t))},Nt=Mt,Dt=A({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Dt(Nt(t),e)},Gt=A,Xt=0,Yt=Math.random(),Wt=Gt(1..toString),Ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Wt(++Xt+Yt,36)},Vt=d,Kt=xt.exports,Qt=qt,Jt=Ut,Zt=pt,te=dt,ee=Kt("wks"),ne=Vt.Symbol,re=ne&&ne.for,oe=te?ne:ne&&ne.withoutSetter||Jt,ie=function(t){if(!Qt(ee,t)||!Zt&&"string"!=typeof ee[t]){var e="Symbol."+t;Zt&&Qt(ne,t)?ee[t]=ne[t]:ee[t]=te&&re?re(e):oe(e)}return ee[t]},ce=w,ae=Q,ue=mt,fe=function(t,e){var n=t[e];return null==n?void 0:$t(n)},se=function(t,e){var n,r;if("string"===e&&Tt(n=t.toString)&&!Ct(r=Pt(n,t)))return r;if(Tt(n=t.valueOf)&&!Ct(r=Pt(n,t)))return r;if("string"!==e&&Tt(n=t.toString)&&!Ct(r=Pt(n,t)))return r;throw Et("Can't convert object to primitive value")},le=ie,pe=d.TypeError,de=le("toPrimitive"),ye=function(t,e){if(!ae(t)||ue(t))return t;var n,r=fe(t,de);if(r){if(void 0===e&&(e="default"),n=ce(r,t,e),!ae(n)||ue(n))return n;throw pe("Can't convert object to primitive value")}return void 0===e&&(e="number"),se(t,e)},he=mt,be=function(t){var e=ye(t,"string");return he(e)?e:e+""},ve=Q,ge=d.document,me=ve(ge)&&ve(ge.createElement),we=function(t){return me?ge.createElement(t):{}},Oe=we,ke=!b&&!h((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),je=b,Se=w,$e=O,Pe=T,Te=U,Ce=be,Ee=qt,xe=ke,_e=Object.getOwnPropertyDescriptor;y.f=je?_e:function(t,e){if(t=Te(t),e=Ce(e),xe)try{return _e(t,e)}catch(t){}if(Ee(t,e))return Pe(!Se($e.f,t,e),t[e])};var He={},Ae=b&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=d,Be=Q,Fe=Re.String,Ie=Re.TypeError,Le=function(t){if(Be(t))return t;throw Ie(Fe(t)+" is not an object")},ze=b,Me=ke,Ne=Ae,De=Le,qe=be,Ge=d.TypeError,Xe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,We="enumerable",Ue="configurable",Ve="writable";He.f=ze?Ne?function(t,e,n){if(De(t),e=qe(e),De(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ve in n&&!n.writable){var r=Ye(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Ue in n?n.configurable:r.configurable,enumerable:We in n?n.enumerable:r.enumerable,writable:!1})}return Xe(t,e,n)}:Xe:function(t,e,n){if(De(t),e=qe(e),De(n),Me)try{return Xe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ge("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ke=He,Qe=T,Je=b?function(t,e,n){return Ke.f(t,e,Qe(1,n))}:function(t,e,n){return t[e]=n,t},Ze={exports:{}},tn=b,en=qt,nn=Function.prototype,rn=tn&&Object.getOwnPropertyDescriptor,on=en(nn,"name"),cn={EXISTS:on,PROPER:on&&"something"===function(){}.name,CONFIGURABLE:on&&(!tn||tn&&rn(nn,"name").configurable)},an=V,un=Ft,fn=A(Function.toString);an(un.inspectSource)||(un.inspectSource=function(t){return fn(t)});var sn,ln,pn,dn=un.inspectSource,yn=V,hn=dn,bn=d.WeakMap,vn=yn(bn)&&/native code/.test(hn(bn)),gn=xt.exports,mn=Ut,wn=gn("keys"),On=function(t){return wn[t]||(wn[t]=mn(t))},kn={},jn=vn,Sn=d,$n=A,Pn=Q,Tn=Je,Cn=qt,En=Ft,xn=On,_n=kn,Hn="Object already initialized",An=Sn.TypeError,Rn=Sn.WeakMap;if(jn||En.state){var Bn=En.state||(En.state=new Rn),Fn=$n(Bn.get),In=$n(Bn.has),Ln=$n(Bn.set);sn=function(t,e){if(In(Bn,t))throw new An(Hn);return e.facade=t,Ln(Bn,t,e),e},ln=function(t){return Fn(Bn,t)||{}},pn=function(t){return In(Bn,t)}}else{var zn=xn("state");_n[zn]=!0,sn=function(t,e){if(Cn(t,zn))throw new An(Hn);return e.facade=t,Tn(t,zn,e),e},ln=function(t){return Cn(t,zn)?t[zn]:{}},pn=function(t){return Cn(t,zn)}}var Mn={set:sn,get:ln,has:pn,enforce:function(t){return pn(t)?ln(t):sn(t,{})},getterFor:function(t){return function(e){var n;if(!Pn(e)||(n=ln(e)).type!==t)throw An("Incompatible receiver, "+t+" required");return n}}},Nn=h,Dn=V,qn=qt,Gn=b,Xn=cn.CONFIGURABLE,Yn=dn,Wn=Mn.enforce,Un=Mn.get,Vn=Object.defineProperty,Kn=Gn&&!Nn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Qn=String(String).split("String"),Jn=Ze.exports=function(t,e,n){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!qn(t,"name")||Xn&&t.name!==e)&&Vn(t,"name",{value:e,configurable:!0}),Kn&&n&&qn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity}),n&&qn(n,"constructor")&&n.constructor){if(Gn)try{Vn(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var r=Wn(t);return qn(r,"source")||(r.source=Qn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Jn((function(){return Dn(this)&&Un(this).source||Yn(this)}),"toString");var Zn=d,tr=V,er=Je,nr=Ze.exports,rr=At,or=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,c=!!r&&!!r.noTargetGet,a=r&&void 0!==r.name?r.name:e;return tr(n)&&nr(n,a,r),t===Zn?(i?t[e]=n:rr(e,n),t):(o?!c&&t[e]&&(i=!0):delete t[e],i?t[e]=n:er(t,e,n),t)},ir={},cr=Math.ceil,ar=Math.floor,ur=function(t){var e=+t;return e!=e||0===e?0:(e>0?ar:cr)(e)},fr=ur,sr=Math.max,lr=Math.min,pr=ur,dr=Math.min,yr=function(t){return t>0?dr(pr(t),9007199254740991):0},hr=function(t){return yr(t.length)},br=U,vr=function(t,e){var n=fr(t);return n<0?sr(n+e,0):lr(n,e)},gr=hr,mr=function(t){return function(e,n,r){var o,i=br(e),c=gr(i),a=vr(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},wr={includes:mr(!0),indexOf:mr(!1)},Or=qt,kr=U,jr=wr.indexOf,Sr=kn,$r=A([].push),Pr=function(t,e){var n,r=kr(t),o=0,i=[];for(n in r)!Or(Sr,n)&&Or(r,n)&&$r(i,n);for(;e.length>o;)Or(r,n=e[o++])&&(~jr(i,n)||$r(i,n));return i},Tr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cr=Pr,Er=Tr.concat("length","prototype");ir.f=Object.getOwnPropertyNames||function(t){return Cr(t,Er)};var xr={};xr.f=Object.getOwnPropertySymbols;var _r=et,Hr=ir,Ar=xr,Rr=Le,Br=A([].concat),Fr=_r("Reflect","ownKeys")||function(t){var e=Hr.f(Rr(t)),n=Ar.f;return n?Br(e,n(t)):e},Ir=qt,Lr=Fr,zr=y,Mr=He,Nr=h,Dr=V,qr=/#|\.prototype\./,Gr=function(t,e){var n=Yr[Xr(t)];return n==Ur||n!=Wr&&(Dr(e)?Nr(e):!!e)},Xr=Gr.normalize=function(t){return String(t).replace(qr,".").toLowerCase()},Yr=Gr.data={},Wr=Gr.NATIVE="N",Ur=Gr.POLYFILL="P",Vr=Gr,Kr=d,Qr=y.f,Jr=Je,Zr=or,to=At,eo=function(t,e,n){for(var r=Lr(e),o=Mr.f,i=zr.f,c=0;c<r.length;c++){var a=r[c];Ir(t,a)||n&&Ir(n,a)||o(t,a,i(e,a))}},no=Vr,ro=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,f=t.stat;if(n=u?Kr:f?Kr[a]||to(a,{}):(Kr[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Qr(n,r))&&c.value:n[r],!no(u?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&Jr(i,"sham",!0),Zr(n,r,i,t)}},oo=I,io=Array.isArray||function(t){return"Array"==oo(t)},co=be,ao=He,uo=T,fo={};fo[ie("toStringTag")]="z";var so="[object z]"===String(fo),lo=d,po=so,yo=V,ho=I,bo=ie("toStringTag"),vo=lo.Object,go="Arguments"==ho(function(){return arguments}()),mo=po?ho:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=vo(t),bo))?n:go?ho(e):"Object"==(r=ho(e))&&yo(e.callee)?"Arguments":r},wo=A,Oo=h,ko=V,jo=mo,So=dn,$o=function(){},Po=[],To=et("Reflect","construct"),Co=/^\s*(?:class|function)\b/,Eo=wo(Co.exec),xo=!Co.exec($o),_o=function(t){if(!ko(t))return!1;try{return To($o,Po,t),!0}catch(t){return!1}},Ho=function(t){if(!ko(t))return!1;switch(jo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xo||!!Eo(Co,So(t))}catch(t){return!0}};Ho.sham=!0;var Ao=!To||Oo((function(){var t;return _o(_o.call)||!_o(Object)||!_o((function(){t=!0}))||t}))?Ho:_o,Ro=d,Bo=io,Fo=Ao,Io=Q,Lo=ie("species"),zo=Ro.Array,Mo=function(t){var e;return Bo(t)&&(e=t.constructor,(Fo(e)&&(e===zo||Bo(e.prototype))||Io(e)&&null===(e=e[Lo]))&&(e=void 0)),void 0===e?zo:e},No=function(t,e){return new(Mo(t))(0===e?0:e)},Do=h,qo=ft,Go=ie("species"),Xo=ro,Yo=d,Wo=h,Uo=io,Vo=Q,Ko=Mt,Qo=hr,Jo=function(t,e,n){var r=co(e);r in t?ao.f(t,r,uo(0,n)):t[r]=n},Zo=No,ti=function(t){return qo>=51||!Do((function(){var e=[];return(e.constructor={})[Go]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ei=ft,ni=ie("isConcatSpreadable"),ri=9007199254740991,oi="Maximum allowed index exceeded",ii=Yo.TypeError,ci=ei>=51||!Wo((function(){var t=[];return t[ni]=!1,t.concat()[0]!==t})),ai=ti("concat"),ui=function(t){if(!Vo(t))return!1;var e=t[ni];return void 0!==e?!!e:Uo(t)};Xo({target:"Array",proto:!0,arity:1,forced:!ci||!ai},{concat:function(t){var e,n,r,o,i,c=Ko(this),a=Zo(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(ui(i=-1===e?c:arguments[e])){if(u+(o=Qo(i))>ri)throw ii(oi);for(n=0;n<o;n++,u++)n in i&&Jo(a,u,i[n])}else{if(u>=ri)throw ii(oi);Jo(a,u++,i)}return a.length=u,a}});var fi=St,si=v,li=A(A.bind),pi=function(t,e){return fi(t),void 0===e?t:si?li(t,e):function(){return t.apply(e,arguments)}},di=q,yi=Mt,hi=hr,bi=No,vi=A([].push),gi=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,f,s,l){for(var p,d,y=yi(u),h=di(y),b=pi(f,s),v=hi(h),g=0,m=l||bi,w=e?m(u,v):n||c?m(u,0):void 0;v>g;g++)if((a||g in h)&&(d=b(p=h[g],g,y),t))if(e)w[g]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:vi(w,p)}else switch(t){case 4:return!1;case 7:vi(w,p)}return i?-1:r||o?o:w}},mi={forEach:gi(0),map:gi(1),filter:gi(2),some:gi(3),every:gi(4),find:gi(5),findIndex:gi(6),filterReject:gi(7)},wi={},Oi=Pr,ki=Tr,ji=Object.keys||function(t){return Oi(t,ki)},Si=b,$i=Ae,Pi=He,Ti=Le,Ci=U,Ei=ji;wi.f=Si&&!$i?Object.defineProperties:function(t,e){Ti(t);for(var n,r=Ci(e),o=Ei(e),i=o.length,c=0;i>c;)Pi.f(t,n=o[c++],r[n]);return t};var xi,_i=et("document","documentElement"),Hi=Le,Ai=wi,Ri=Tr,Bi=kn,Fi=_i,Ii=we,Li=On("IE_PROTO"),zi=function(){},Mi=function(t){return"<script>"+t+"</"+"script>"},Ni=function(t){t.write(Mi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Di=function(){try{xi=new ActiveXObject("htmlfile")}catch(t){}var t,e;Di="undefined"!=typeof document?document.domain&&xi?Ni(xi):((e=Ii("iframe")).style.display="none",Fi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Mi("document.F=Object")),t.close(),t.F):Ni(xi);for(var n=Ri.length;n--;)delete Di.prototype[Ri[n]];return Di()};Bi[Li]=!0;var qi=Object.create||function(t,e){var n;return null!==t?(zi.prototype=Hi(t),n=new zi,zi.prototype=null,n[Li]=t):n=Di(),void 0===e?n:Ai.f(n,e)},Gi=He,Xi=ie("unscopables"),Yi=Array.prototype;null==Yi[Xi]&&Gi.f(Yi,Xi,{configurable:!0,value:qi(null)});var Wi=ro,Ui=mi.find,Vi=function(t){Yi[Xi][t]=!0},Ki="find",Qi=!0;Ki in[]&&Array(1).find((function(){Qi=!1})),Wi({target:"Array",proto:!0,forced:Qi},{find:function(t){return Ui(this,t,arguments.length>1?arguments[1]:void 0)}}),Vi(Ki);var Ji=mo,Zi=so?{}.toString:function(){return"[object "+Ji(this)+"]"};so||or(Object.prototype,"toString",Zi,{unsafe:!0});var tc=n.default.fn.bootstrapTable.utils;n.default.extend(n.default.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0,stickyHeaderOffsetLeft:0,stickyHeaderOffsetRight:0}),n.default.BootstrapTable=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,a,f,l=u(p);function p(){return r(this,p),l.apply(this,arguments)}return e=p,a=[{key:"initHeader",value:function(){for(var t,e=this,r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];if((t=s(i(p.prototype),"initHeader",this)).call.apply(t,[this].concat(o)),this.options.stickyHeader){this.$tableBody.find(".sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end").remove(),this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0);var a=tc.getEventName("resize.sticky-header-table",this.$el.attr("id")),u=tc.getEventName("scroll.sticky-header-table",this.$el.attr("id"));n.default(window).off(a).on(a,(function(){return e.renderStickyHeader()})),n.default(window).off(u).on(u,(function(){return e.renderStickyHeader()})),this.$tableBody.off("scroll").on("scroll",(function(){return e.matchPositionX()}))}}},{key:"onColumnSearch",value:function(t){var e=t.currentTarget,n=t.keyCode;s(i(p.prototype),"onColumnSearch",this).call(this,{currentTarget:e,keyCode:n}),this.renderStickyHeader()}},{key:"resetView",value:function(){for(var t,e=this,r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];(t=s(i(p.prototype),"resetView",this)).call.apply(t,[this].concat(o)),n.default(".bootstrap-table.fullscreen").off("scroll").on("scroll",(function(){return e.renderStickyHeader()}))}},{key:"getCaret",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if((t=s(i(p.prototype),"getCaret",this)).call.apply(t,[this].concat(r)),this.$stickyHeader){var c=this.$stickyHeader.find("th");this.$header.find("th").each((function(t,e){c.eq(t).find(".sortable").attr("class",n.default(e).find(".sortable").attr("class"))}))}}},{key:"horizontalScroll",value:function(){var t=this;s(i(p.prototype),"horizontalScroll",this).call(this),this.$tableBody.on("scroll",(function(){return t.matchPositionX()}))}},{key:"renderStickyHeader",value:function(){var t=this,e=this;this.$stickyHeader=this.$header.clone(!0,!0),this.options.filterControl&&n.default(this.$stickyHeader).off("keyup change mouseup").on("keyup change mouse",(function(t){var r=n.default(t.target),o=r.val(),i=r.parents("th").data("field"),c=e.$header.find('th[data-field="'.concat(i,'"]'));if(r.is("input"))c.find("input").val(o);else if(r.is("select")){var a=c.find("select");a.find("option[selected]").removeAttr("selected"),a.find('option[value="'.concat(o,'"]')).attr("selected",!0)}e.triggerSearch()}));var r=n.default(window).scrollTop(),o=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,i=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();if(r>o&&r<=i){this.$stickyHeader.find("tr").each((function(e,r){n.default(r).find("th").each((function(r,o){n.default(o).css("min-width",t.$header.find("tr:eq(".concat(e,")")).find("th:eq(".concat(r,")")).css("width"))}))})),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var c=this.$tableBody[0].getBoundingClientRect(),a="100%",u=this.options.stickyHeaderOffsetLeft,f=this.options.stickyHeaderOffsetRight;u||(u=c.left),f||(a="".concat(c.width,"px")),this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(u=0,f=0,a="100%"),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY,"px")),this.$stickyContainer.css("left","".concat(u,"px")),this.$stickyContainer.css("right","".concat(f,"px")),this.$stickyContainer.css("width","".concat(a)),this.$stickyTable=n.default("<table/>"),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}],a&&o(e.prototype,a),f&&o(e,f),Object.defineProperty(e,"prototype",{writable:!1}),p}(n.default.BootstrapTable)}));