bootstrap-table-treegrid.min.js 19 KB

12345678910
  1. /**
  2. * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
  3. *
  4. * @version v1.23.4
  5. * @homepage https://bootstrap-table.com
  6. * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
  7. * @license MIT
  8. */
  9. !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,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function n(t,e,n){return e=u(e),function(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)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function r(t,e,n){return e&&function(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,l(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){a=!0,u=t},f:function(){try{c||null==r.return||r.return()}finally{if(a)throw u}}}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},i.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function f(t,e,n,r){var o=i(u(t.prototype),e,n);return function(t){return o.apply(n,t)}}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}var s="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},y=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof s&&s)||p("object"==typeof s&&s)||function(){return this}()||Function("return this")(),b={},v=function(t){try{return!!t()}catch(t){return!0}},d=!v((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=h,m=Function.prototype.call,w=g?m.bind(m):function(){return m.apply(m,arguments)},j={},O={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,P=S&&!O.call({1:2},1);j.f=P?function(t){var e=S(this,t);return!!e&&e.enumerable}:O;var E,T,F=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=h,_=Function.prototype,I=_.call,k=A&&_.bind.bind(I,I),R=A?k:function(t){return function(){return I.apply(t,arguments)}},x=R,C=x({}.toString),M=x("".slice),B=function(t){return M(C(t),8,-1)},z=v,D=B,L=Object,N=R("".split),q=z((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"===D(t)?N(t,""):L(t)}:L,G=function(t){return null==t},U=G,W=TypeError,$=function(t){if(U(t))throw new W("Can't call method on "+t);return t},H=q,K=$,Q=function(t){return H(K(t))},V="object"==typeof document&&document.all,X=void 0===V&&void 0!==V?function(t){return"function"==typeof t||t===V}:function(t){return"function"==typeof t},Y=X,J=function(t){return"object"==typeof t?null!==t:Y(t)},Z=y,tt=X,et=function(t,e){return arguments.length<2?(n=Z[t],tt(n)?n:void 0):Z[t]&&Z[t][e];var n},nt=R({}.isPrototypeOf),rt=y.navigator,ot=rt&&rt.userAgent,it=y,ut=ot?String(ot):"",ct=it.process,at=it.Deno,ft=ct&&ct.versions||at&&at.version,lt=ft&&ft.v8;lt&&(T=(E=lt.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!T&&ut&&(!(E=ut.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=ut.match(/Chrome\/(\d+)/))&&(T=+E[1]);var st=T,pt=st,yt=v,bt=y.String,vt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol("symbol detection");return!bt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),dt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ht=et,gt=X,mt=nt,wt=Object,jt=dt?function(t){return"symbol"==typeof t}:function(t){var e=ht("Symbol");return gt(e)&&mt(e.prototype,wt(t))},Ot=String,St=X,Pt=function(t){try{return Ot(t)}catch(t){return"Object"}},Et=TypeError,Tt=function(t){if(St(t))return t;throw new Et(Pt(t)+" is not a function")},Ft=Tt,At=G,_t=w,It=X,kt=J,Rt=TypeError,xt={exports:{}},Ct=y,Mt=Object.defineProperty,Bt=function(t,e){try{Mt(Ct,t,{value:e,configurable:!0,writable:!0})}catch(n){Ct[t]=e}return e},zt=y,Dt=Bt,Lt="__core-js_shared__",Nt=xt.exports=zt[Lt]||Dt(Lt,{});(Nt.versions||(Nt.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=xt.exports,Gt=qt,Ut=function(t,e){return Gt[t]||(Gt[t]=e||{})},Wt=$,$t=Object,Ht=function(t){return $t(Wt(t))},Kt=Ht,Qt=R({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return Qt(Kt(t),e)},Xt=R,Yt=0,Jt=Math.random(),Zt=Xt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++Yt+Jt,36)},ee=Ut,ne=Vt,re=te,oe=vt,ie=dt,ue=y.Symbol,ce=ee("wks"),ae=ie?ue.for||ue:ue&&ue.withoutSetter||re,fe=function(t){return ne(ce,t)||(ce[t]=oe&&ne(ue,t)?ue[t]:ae("Symbol."+t)),ce[t]},le=w,se=J,pe=jt,ye=function(t,e){var n=t[e];return At(n)?void 0:Ft(n)},be=function(t,e){var n,r;if("string"===e&&It(n=t.toString)&&!kt(r=_t(n,t)))return r;if(It(n=t.valueOf)&&!kt(r=_t(n,t)))return r;if("string"!==e&&It(n=t.toString)&&!kt(r=_t(n,t)))return r;throw new Rt("Can't convert object to primitive value")},ve=TypeError,de=fe("toPrimitive"),he=function(t,e){if(!se(t)||pe(t))return t;var n,r=ye(t,de);if(r){if(void 0===e&&(e="default"),n=le(r,t,e),!se(n)||pe(n))return n;throw new ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},ge=jt,me=function(t){var e=he(t,"string");return ge(e)?e:e+""},we=J,je=y.document,Oe=we(je)&&we(je.createElement),Se=function(t){return Oe?je.createElement(t):{}},Pe=!d&&!v((function(){return 7!==Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),Ee=d,Te=w,Fe=j,Ae=F,_e=Q,Ie=me,ke=Vt,Re=Pe,xe=Object.getOwnPropertyDescriptor;b.f=Ee?xe:function(t,e){if(t=_e(t),e=Ie(e),Re)try{return xe(t,e)}catch(t){}if(ke(t,e))return Ae(!Te(Fe.f,t,e),t[e])};var Ce={},Me=d&&v((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Be=J,ze=String,De=TypeError,Le=function(t){if(Be(t))return t;throw new De(ze(t)+" is not an object")},Ne=d,qe=Pe,Ge=Me,Ue=Le,We=me,$e=TypeError,He=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,Qe="enumerable",Ve="configurable",Xe="writable";Ce.f=Ne?Ge?function(t,e,n){if(Ue(t),e=We(e),Ue(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Xe in n&&!n[Xe]){var r=Ke(t,e);r&&r[Xe]&&(t[e]=n.value,n={configurable:Ve in n?n[Ve]:r[Ve],enumerable:Qe in n?n[Qe]:r[Qe],writable:!1})}return He(t,e,n)}:He:function(t,e,n){if(Ue(t),e=We(e),Ue(n),qe)try{return He(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new $e("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ye=Ce,Je=F,Ze=d?function(t,e,n){return Ye.f(t,e,Je(1,n))}:function(t,e,n){return t[e]=n,t},tn={exports:{}},en=d,nn=Vt,rn=Function.prototype,on=en&&Object.getOwnPropertyDescriptor,un=nn(rn,"name"),cn={EXISTS:un,PROPER:un&&"something"===function(){}.name,CONFIGURABLE:un&&(!en||en&&on(rn,"name").configurable)},an=X,fn=qt,ln=R(Function.toString);an(fn.inspectSource)||(fn.inspectSource=function(t){return ln(t)});var sn,pn,yn,bn=fn.inspectSource,vn=X,dn=y.WeakMap,hn=vn(dn)&&/native code/.test(String(dn)),gn=te,mn=Ut("keys"),wn={},jn=hn,On=y,Sn=J,Pn=Ze,En=Vt,Tn=qt,Fn=function(t){return mn[t]||(mn[t]=gn(t))},An=wn,_n="Object already initialized",In=On.TypeError,kn=On.WeakMap;if(jn||Tn.state){var Rn=Tn.state||(Tn.state=new kn);Rn.get=Rn.get,Rn.has=Rn.has,Rn.set=Rn.set,sn=function(t,e){if(Rn.has(t))throw new In(_n);return e.facade=t,Rn.set(t,e),e},pn=function(t){return Rn.get(t)||{}},yn=function(t){return Rn.has(t)}}else{var xn=Fn("state");An[xn]=!0,sn=function(t,e){if(En(t,xn))throw new In(_n);return e.facade=t,Pn(t,xn,e),e},pn=function(t){return En(t,xn)?t[xn]:{}},yn=function(t){return En(t,xn)}}var Cn={set:sn,get:pn,has:yn,enforce:function(t){return yn(t)?pn(t):sn(t,{})},getterFor:function(t){return function(e){var n;if(!Sn(e)||(n=pn(e)).type!==t)throw new In("Incompatible receiver, "+t+" required");return n}}},Mn=R,Bn=v,zn=X,Dn=Vt,Ln=d,Nn=cn.CONFIGURABLE,qn=bn,Gn=Cn.enforce,Un=Cn.get,Wn=String,$n=Object.defineProperty,Hn=Mn("".slice),Kn=Mn("".replace),Qn=Mn([].join),Vn=Ln&&!Bn((function(){return 8!==$n((function(){}),"length",{value:8}).length})),Xn=String(String).split("String"),Yn=tn.exports=function(t,e,n){"Symbol("===Hn(Wn(e),0,7)&&(e="["+Kn(Wn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Dn(t,"name")||Nn&&t.name!==e)&&(Ln?$n(t,"name",{value:e,configurable:!0}):t.name=e),Vn&&n&&Dn(n,"arity")&&t.length!==n.arity&&$n(t,"length",{value:n.arity});try{n&&Dn(n,"constructor")&&n.constructor?Ln&&$n(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Gn(t);return Dn(r,"source")||(r.source=Qn(Xn,"string"==typeof e?e:"")),t};Function.prototype.toString=Yn((function(){return zn(this)&&Un(this).source||qn(this)}),"toString");var Jn=tn.exports,Zn=X,tr=Ce,er=Jn,nr=Bt,rr=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Zn(n)&&er(n,i,r),r.global)o?t[e]=n:nr(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:tr.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},or={},ir=Math.ceil,ur=Math.floor,cr=Math.trunc||function(t){var e=+t;return(e>0?ur:ir)(e)},ar=function(t){var e=+t;return e!=e||0===e?0:cr(e)},fr=ar,lr=Math.max,sr=Math.min,pr=ar,yr=Math.min,br=function(t){var e=pr(t);return e>0?yr(e,9007199254740991):0},vr=function(t){return br(t.length)},dr=Q,hr=function(t,e){var n=fr(t);return n<0?lr(n+e,0):sr(n,e)},gr=vr,mr=function(t){return function(e,n,r){var o=dr(e),i=gr(o);if(0===i)return!t&&-1;var u,c=hr(r,i);if(t&&n!=n){for(;i>c;)if((u=o[c++])!=u)return!0}else for(;i>c;c++)if((t||c in o)&&o[c]===n)return t||c||0;return!t&&-1}},wr={includes:mr(!0),indexOf:mr(!1)},jr=Vt,Or=Q,Sr=wr.indexOf,Pr=wn,Er=R([].push),Tr=function(t,e){var n,r=Or(t),o=0,i=[];for(n in r)!jr(Pr,n)&&jr(r,n)&&Er(i,n);for(;e.length>o;)jr(r,n=e[o++])&&(~Sr(i,n)||Er(i,n));return i},Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ar=Tr,_r=Fr.concat("length","prototype");or.f=Object.getOwnPropertyNames||function(t){return Ar(t,_r)};var Ir={};Ir.f=Object.getOwnPropertySymbols;var kr=et,Rr=or,xr=Ir,Cr=Le,Mr=R([].concat),Br=kr("Reflect","ownKeys")||function(t){var e=Rr.f(Cr(t)),n=xr.f;return n?Mr(e,n(t)):e},zr=Vt,Dr=Br,Lr=b,Nr=Ce,qr=v,Gr=X,Ur=/#|\.prototype\./,Wr=function(t,e){var n=Hr[$r(t)];return n===Qr||n!==Kr&&(Gr(e)?qr(e):!!e)},$r=Wr.normalize=function(t){return String(t).replace(Ur,".").toLowerCase()},Hr=Wr.data={},Kr=Wr.NATIVE="N",Qr=Wr.POLYFILL="P",Vr=Wr,Xr=y,Yr=b.f,Jr=Ze,Zr=rr,to=Bt,eo=function(t,e,n){for(var r=Dr(e),o=Nr.f,i=Lr.f,u=0;u<r.length;u++){var c=r[u];zr(t,c)||n&&zr(n,c)||o(t,c,i(e,c))}},no=Vr,ro=function(t,e){var n,r,o,i,u,c=t.target,a=t.global,f=t.stat;if(n=a?Xr:f?Xr[c]||to(c,{}):Xr[c]&&Xr[c].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=Yr(n,r))&&u.value:n[r],!no(a?r:c+(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=B,io=R,uo=function(t){if("Function"===oo(t))return io(t)},co=Tt,ao=h,fo=uo(uo.bind),lo=B,so=Array.isArray||function(t){return"Array"===lo(t)},po={};po[fe("toStringTag")]="z";var yo="[object z]"===String(po),bo=yo,vo=X,ho=B,go=fe("toStringTag"),mo=Object,wo="Arguments"===ho(function(){return arguments}()),jo=bo?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=mo(t),go))?n:wo?ho(e):"Object"===(r=ho(e))&&vo(e.callee)?"Arguments":r},Oo=R,So=v,Po=X,Eo=jo,To=bn,Fo=function(){},Ao=et("Reflect","construct"),_o=/^\s*(?:class|function)\b/,Io=Oo(_o.exec),ko=!_o.test(Fo),Ro=function(t){if(!Po(t))return!1;try{return Ao(Fo,[],t),!0}catch(t){return!1}},xo=function(t){if(!Po(t))return!1;switch(Eo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ko||!!Io(_o,To(t))}catch(t){return!0}};xo.sham=!0;var Co=!Ao||So((function(){var t;return Ro(Ro.call)||!Ro(Object)||!Ro((function(){t=!0}))||t}))?xo:Ro,Mo=so,Bo=Co,zo=J,Do=fe("species"),Lo=Array,No=function(t){var e;return Mo(t)&&(e=t.constructor,(Bo(e)&&(e===Lo||Mo(e.prototype))||zo(e)&&null===(e=e[Do]))&&(e=void 0)),void 0===e?Lo:e},qo=function(t,e){return co(t),void 0===e?t:ao?fo(t,e):function(){return t.apply(e,arguments)}},Go=q,Uo=Ht,Wo=vr,$o=function(t,e){return new(No(t))(0===e?0:e)},Ho=R([].push),Ko=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,c=5===t||i;return function(a,f,l,s){for(var p,y,b=Uo(a),v=Go(b),d=Wo(v),h=qo(f,l),g=0,m=s||$o,w=e?m(a,d):n||u?m(a,0):void 0;d>g;g++)if((c||g in v)&&(y=h(p=v[g],g,b),t))if(e)w[g]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Ho(w,p)}else switch(t){case 4:return!1;case 7:Ho(w,p)}return i?-1:r||o?o:w}},Qo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Vo=v,Xo=st,Yo=fe("species"),Jo=Qo.filter;ro({target:"Array",proto:!0,forced:!function(t){return Xo>=51||!Vo((function(){var e=[];return(e.constructor={})[Yo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("filter")},{filter:function(t){return Jo(this,t,arguments.length>1?arguments[1]:void 0)}});var Zo=v,ti=ro,ei=q,ni=Q,ri=function(t,e){var n=[][t];return!!n&&Zo((function(){n.call(null,e||function(){return 1},1)}))},oi=R([].join);ti({target:"Array",proto:!0,forced:ei!==Object||!ri("join",",")},{join:function(t){return oi(ni(this),void 0===t?",":t)}});var ii=Tr,ui=Fr,ci=Object.keys||function(t){return ii(t,ui)},ai=d,fi=R,li=w,si=v,pi=ci,yi=Ir,bi=j,vi=Ht,di=q,hi=Object.assign,gi=Object.defineProperty,mi=fi([].concat),wi=!hi||si((function(){if(ai&&1!==hi({b:1},hi(gi({},"a",{enumerable:!0,get:function(){gi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==hi({},t)[n]||pi(hi({},e)).join("")!==r}))?function(t,e){for(var n=vi(t),r=arguments.length,o=1,i=yi.f,u=bi.f;r>o;)for(var c,a=di(arguments[o++]),f=i?mi(pi(a),i(a)):pi(a),l=f.length,s=0;l>s;)c=f[s++],ai&&!li(u,a,c)||(n[c]=a[c]);return n}:hi,ji=wi;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==ji},{assign:ji});var Oi=jo,Si=yo?{}.toString:function(){return"[object "+Oi(this)+"]"};yo||rr(Object.prototype,"toString",Si,{unsafe:!0});var Pi=t.fn.bootstrapTable.utils;Object.assign(t.fn.bootstrapTable.defaults,{treeEnable:!1,treeShowField:null,idField:"id",parentIdField:"pid",rootParentId:null}),t.BootstrapTable=function(e){function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n(this,i,arguments)}return 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&&a(t,e)}(i,e),r(i,[{key:"init",value:function(){this._rowStyle=this.options.rowStyle;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];f(i,"init",this)(e)}},{key:"initHeader",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];f(i,"initHeader",this)(e);var r=this.options.treeShowField;if(r){var u,c=o(this.header.fields);try{for(c.s();!(u=c.n()).done;){if(r===u.value){this.treeEnable=!0;break}}}catch(t){c.e(t)}finally{c.f()}}}},{key:"initBody",value:function(){this.treeEnable&&(this.options.virtualScroll=!1);for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];f(i,"initBody",this)(e)}},{key:"initTr",value:function(e,n,r,o){var u=this,c=r.filter((function(t){return e[u.options.idField]===t[u.options.parentIdField]}));o.append(f(i,"initRow",this)([e,n,r,o]));for(var a=c.length-1,l=0;l<=a;l++){var s=c[l],p=Pi.extend(!0,{},e);s._level=p._level+1,s._parent=p,l===a&&(s._last=1),this.options.rowStyle=function(t,e){var n=u._rowStyle(t,e),r=t[u.options.idField]?t[u.options.idField]:0,o=t[u.options.parentIdField]?t[u.options.parentIdField]:0;return n.classes=[n.classes||"","treegrid-".concat(r),"treegrid-parent-".concat(o)].join(" "),n},this.initTr(s,t.inArray(s,r),r,o)}}},{key:"initRow",value:function(t,e,n,r){var o=this;return this.treeEnable?(this.options.rootParentId===t[this.options.parentIdField]||!t[this.options.parentIdField])&&(void 0===t._level&&(t._level=0),this.options.rowStyle=function(t,e){var n=o._rowStyle(t,e),r=t[o.options.idField]?t[o.options.idField]:0;return n.classes=[n.classes||"","treegrid-".concat(r)].join(" "),n},this.initTr(t,e,n,r),!0):f(i,"initRow",this)([t,e,n,r])}},{key:"destroy",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];f(i,"destroy",this)(e),this.options.rowStyle=this._rowStyle}}])}(t.BootstrapTable)}));