{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/tableListGroupV2/1.0.0/src/com.jsx','pandav:/npm/jquery/2.1.4'],function(a,b,c){var d=c('pandav:/npm/bcore/0.0.18/event'),e=c('pandav:/npm/react/17.0.2'),f=c('pandav:/npm/react-dom/17.0.2'),g=c('pandav:/com/tableListGroupV2/1.0.0/src/com.jsx'),h=c('pandav:/npm/jquery/2.1.4');return a.exports=d.extend(function(a,b){this.config={theme:{}},this.container=a,this.apis=b.apis,this.containSize={boxWidth:h(a)&&h(a).width(),boxHeight:h(a)&&h(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},mergeConfig:function(a){var b;return a?(b=a,this.config=a):b=this.config,b},updateOptions:function(a){this.render(this._data,a)},data:function(a){return a&&(this._data=a),this._data},setColors:function(){},resize:function(a,b){this.containSize={boxWidth:a,boxHeight:b},this.render(this._data,this.config)},render:function(a,b){a=this.data(a);var c=this.mergeConfig(b);f.render(e.createElement(g,Object.assign({width:this.containSize.boxWidth,height:this.containSize.boxHeight,emitEvent:this.emit.bind(this),config:c.options,data:a,id:this.__id})),this.container)},destroy:function(){return!!this.container&&void(f.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/src/com.jsx" ], "buildLevel": 1, "outputDir": "/com/tableListGroupV2/1.0.0", "outputPath": "/com/tableListGroupV2/1.0.0/index.js", "fileName": "/index.js" }, "pandav:/src/Body.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/Body.jsx',['pandav:/npm/react/17.0.2','pandav:/npm/lodash/4.6.1','pandav:/com/common-utils/1.0.0','pandav:/com/tableListGroupV2/1.0.0/src/utils','pandav:/com/tableListGroupV2/1.0.0/src/Content.jsx','pandav:/com/tableListGroupV2/1.0.0/src/ChildWrap.jsx'],function(a,b,c){function d(a,b){return j(a)||h(a,b)||f(a,b)||e()}function e(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function f(a,b){if(a){if('string'==typeof a)return g(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?g(a,b):void 0}}function g(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cd-f-c&&R(g.slice(0,Q.length+1))},onMouseDown:function(a){var b=a.currentTarget,c=function(a){b.scrollTop-=a.movementY};document.addEventListener('mousemove',c),document.addEventListener('mouseup',function a(){document.removeEventListener('mousemove',c),document.removeEventListener('mouseup',a)})}},Q.map(function(a,b){var c=U+b+E,d=W[b%W.length],e=d.main,f=d.child;return k.createElement('div',{key:b},k.createElement('div',{style:l.assign({},aa,v(e),{height:K}),onClick:function(){return h(U+b)}},t&&k.createElement('div',{style:l.assign({},_,r(D),{minWidth:x,maxWidth:x,marginLeft:B,justifyContent:u(C)}),onClick:function(){return p(c)}},k.createElement('span',{style:l.assign({},_,w(X.get(c)||X.get('default')),{justifyContent:u(C)})},c)),Y.map(function(b,c){var d=a[b.mapping.key];return k.createElement('div',{key:c,style:Object.assign({minWidth:b.width,maxWidth:b.width,marginLeft:b.gap},r(b.font)),onClick:function(){return p(d)}},k.createElement(y,{value:d,style:b}))})),k.createElement(A,{style:l.assign({},{position:'relative',height:b==$?G:0,opacity:b==$?1:0},v(f),{transition:'height '.concat(L,'s linear, opacity ').concat(L,'s linear'),overflow:'scroll'}),onClick:function(){return ba(a)}},Z.map(function(b,c){var d=b.position,e=b.mapping,f=a[e.key];return f?k.createElement('div',{key:c,style:Object.assign({position:'absolute',left:d.x,top:d.y,width:b.width},r(b.font)),onClick:function(){return p(f)}},k.createElement(z,{value:f,style:Object.assign(Object.assign({},b),{},{displayName:e.displayName})})):null})))}))});return a.exports=B,a.exports});", "requires": [ "pandav:/src/utils.js", "pandav:/src/Content.jsx", "pandav:/src/ChildWrap.jsx" ], "buildLevel": 5, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/Body.jsx", "fileName": "/src/Body.jsx" }, "pandav:/src/ChildWrap.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/ChildWrap.jsx',['pandav:/npm/styled-components/6.1.13','pandav:/npm/react/17.0.2'],function(a,b,c){var d=c('pandav:/npm/styled-components/6.1.13'),e=c('pandav:/npm/react/17.0.2'),f=d.div(function(){return'\\n &::-webkit-scrollbar {\\n display: \\'none\\';\\n width: 0px;\\n height: 0px;\\n }\\n'});return a.exports=f,a.exports});", "requires": [], "buildLevel": 8, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/ChildWrap.jsx", "fileName": "/src/ChildWrap.jsx" }, "pandav:/src/com.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/com.jsx',['pandav:/npm/react/17.0.2','pandav:/com/tableListGroupV2/1.0.0/src/Wrap.jsx','pandav:/com/tableListGroupV2/1.0.0/src/Header.jsx','pandav:/com/tableListGroupV2/1.0.0/src/Body.jsx','pandav:/com/tableListGroupV2/1.0.0/src/ScrollBar.jsx'],function(a,b,c){function d(a,b){return j(a)||h(a,b)||f(a,b)||e()}function e(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function f(a,b){if(a){if('string'==typeof a)return g(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?g(a,b):void 0}}function g(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a&&(b+=e((d-b)/a)*a,R(function(a){return(a+1)%h.length})),$.current=requestAnimationFrame(c)};c()}var c=a.width,e=a.height,f=a.emitEvent,g=a.config,h=a.data,i=a.id,j=g.chart,u=j.rowCount,v=j.rowGap,w=j.hScroll,x=j.openChild,y=x.autoOpen,z=x.duration,A=x.interval,B=x.mode,C=x.scrollBar,D=g.rowCfg,E=D.header,F=E.show,G=E.height,H=D.header,I=D.row,J=g.colCfg,K=g.childCfg,L=JSON.stringify(h),M=K.height,N=(e-(F?G:0)-M-(u-1)*v)/u,O=n('click'!==B||y?0:-1),P=d(O,2),Q=P[0],R=P[1],S=n('auto'===B),T=d(S,2),U=T[0],V=T[1],W=n(0),X=d(W,2),Y=X[0],Z=X[1],$=m(),_=m(),aa=m(U?'play':'stop'),ba=e-(F?G:0)-(-1==Q?M:0),ca=N*h.length+(h.length-1)*v+(-1==Q?0:M),da=function(a,b){f&&f(a,b)},ea=p(function(){return J},[JSON.stringify(J)]),fa=p(function(){return H},[JSON.stringify(H)]),ga=p(function(){return K},[JSON.stringify(K)]),ha=p(function(){return I},[JSON.stringify(I)]),ia=p(function(){return{index:Q,canLoop:U,rowCount:u,duration:z,containHeight:ba,rowGap:v,height:N,autoOpen:y}},[Q,U,u,N,y,z,ba,v]),ja=p(function(){return h},[L]),ka=p(function(){return C},[JSON.stringify(C)]),la=o(function(a){R(a),da('clickLine',h[a]),U&&'play'===aa.current&&(cancelAnimationFrame($.current),b(1e3*A))},[A,U,h]),ma=o(function(a){da('clickChild',a)},[]),na=o(function(a){da('clickItem',{value:a})},[]);l(function(){return R(('click'!==B||y)&&h[0]?0:-1),'auto'===B&&b(1e3*A),function(){cancelAnimationFrame($.current)}},[y,A,B,L]),l(function(){V('auto'===B)},[B]),l(function(){-1!==Q&&da('openChild',h[Q])},[L,Q]),l(function(){aa.current=U?'play':'stop'},[U]);var oa=function(){cancelAnimationFrame($.current),b(1e3*A),V(!0)},pa=function(){cancelAnimationFrame($.current),aa.current='pause'},qa=function(){cancelAnimationFrame($.current),V(!1),R(0)};l(function(){return document.addEventListener('startLoop_'.concat(i),oa),document.addEventListener('pauseLoop_'.concat(i),pa),document.addEventListener('stopLoop_'.concat(i),qa),function(){document.removeEventListener('startLoop_'.concat(i),oa),document.removeEventListener('pauseLoop_'.concat(i),pa),document.removeEventListener('stopLoop_'.concat(i),qa)}},[]);return k.createElement('div',{className:'__pandav-component',style:{width:c,height:e},id:i,onMouseEnter:function(){U&&(cancelAnimationFrame($.current),aa.current='pause')},onMouseLeave:function(){'pause'===aa.current&&(b(1e3*A),aa.current='play')}},k.createElement(q,{scroll:w,style:{width:'100%',height:'100%',overflow:w.show?'scroll hidden':'hidden'}},k.createElement(r,{config:fa,colCfg:ea}),k.createElement(s,{containerRef:_,data:ja,config:ia,row:ha,colCfg:ea,childCfg:ga,click:la,clickChild:ma,clickItem:na,setScrollTop:Z})),!U&&h.length>u&&k.createElement(t,{height:ba/ca*ba,value:Y/ca*ba,style:{position:'absolute',left:c,bottom:-1===Q?M:0,height:ba},config:ka,scrollBar:function(a){_.current.scrollTop+=3*a.movementY}}))},a.exports});", "requires": [ "pandav:/src/Wrap.jsx", "pandav:/src/Header.jsx", "pandav:/src/Body.jsx", "pandav:/src/ScrollBar.jsx" ], "buildLevel": 2, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/com.jsx", "fileName": "/src/com.jsx" }, "pandav:/src/Content.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/Content.jsx',['pandav:/npm/react/17.0.2','pandav:/com/common-utils/1.0.0','pandav:/com/tableListGroupV2/1.0.0/src/utils','pandav:/com/cube-chart/0.0.2'],function(a,b,c){var d=c('pandav:/npm/react/17.0.2'),e=d.memo,f=c('pandav:/com/common-utils/1.0.0'),g=f.getFontStyle,h=f.getColor,i=c('pandav:/com/tableListGroupV2/1.0.0/src/utils'),j=i.flexAlign,k=c('pandav:/com/cube-chart/0.0.2'),l=k.TextOverflow,m=e(function(a){var b=a.value,c=a.style,e=c.translate,f=c.align,h=c.contentType,i=c.textOverflow,k=c.speed,m=c.fixed,n=c.suffix,o=n.show,p=n.key,q=n.font,r=c.clip,s=c.mask,t=c.size,u=t.width,v=t.height;return d.createElement('div',{style:{transform:'translate('.concat(e.x,'px, ').concat(e.y,'px)'),display:'flex',justifyContent:j(f)}},function(){return'text'===h?d.createElement(l,{value:b,speed:k,type:i,style:{textAlign:f,justifyContent:j(f)}}):'image'===h?d.createElement('div',{style:{background:b?'url('.concat(b,') 0 0/100% 100%'):'',width:u,height:v,WebkitMaskImage:s?'url('.concat(s,')'):'',maskImage:s?'url('.concat(s,')'):''}}):d.createElement('div',null,r?(+(+b).toFixed(m)).toLocaleString():+(+b).toFixed(m),o&&d.createElement('span',{style:g(q)},p))}())}),n=e(function(a){var b=a.value,c=a.style,e=c.displayName,f=c.align,g=c.layout,h=c.contentType,i=c.textOverflow,k=c.speed;return function(){var c='text'===h?d.createElement(l,{value:b,speed:k,type:i,style:{textAlign:f,justifyContent:j(f)}}):d.createElement(o,a);return'vertical'===g?d.createElement('div',null,e?''.concat(e,': '):'',c):d.createElement('div',null,'text'===h?d.createElement(l,{value:''.concat(e?''.concat(e,': '):'').concat(b),speed:k,type:i,style:{textAlign:f,justifyContent:j(f)}}):d.createElement(o,a))}()}),o=function(a){var b=a.style,c=a.value,e=b.imageSize,f=e.width,g=e.height,h=b.mask,i=b.maskSize,j=i.width,k=i.height,l=c?'url(\\''.concat(c,'\\') 0 0/100% 100%'):'',m=h?'url('.concat(h,')'):'';return d.createElement('div',{style:{background:l,width:f,height:g,WebkitMaskImage:m,maskImage:m,maskSize:''.concat(j,'px ').concat(k,'px'),WebkitMaskSize:''.concat(j,'px ').concat(k,'px')}})};return a.exports={Content:m,ChildContent:n},a.exports});", "requires": [ "pandav:/src/utils.js" ], "buildLevel": 7, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/Content.jsx", "fileName": "/src/Content.jsx" }, "pandav:/src/Header.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/Header.jsx',['pandav:/npm/react/17.0.2','pandav:/com/common-utils/1.0.0'],function(a,b,c){var e=c('pandav:/npm/react/17.0.2'),f=e.memo,g=c('pandav:/com/common-utils/1.0.0'),h=g.getFontStyle,i=g.getColor,j=f(function(a){var b=a.config,c=a.colCfg,d=b.show,f=b.height,g=b.font,j=b.align,k=b.background,l=k.fillType,m=k.color,n=k.image;if(!d)return null;var o=c.num,p=c.col,q=o.show,r=o.title,s=o.width,t=o.gap,u=o.align;return e.createElement('div',{style:Object.assign({width:'fit-content',height:f,textAlign:j,display:'flex',alignItems:'center',flexWrap:'nowrap',background:'color'===l?i(m):'url('.concat(n,') 0 0/100% 100%')},h(g))},q&&e.createElement('div',{style:{minWidth:s,textAlign:'auto'===j?u:'inherit',marginLeft:t}},r),Object.values(p).map(function(a,b){return e.createElement('div',{key:b,style:{minWidth:a.width,marginLeft:a.gap,textAlign:'auto'===j?a.align:'inherit'}},a.mapping.displayName||a.mapping.key)}))});return a.exports=j,a.exports});", "requires": [], "buildLevel": 4, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/Header.jsx", "fileName": "/src/Header.jsx" }, "pandav:/src/utils.js": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/utils',['pandav:/com/common-utils/1.0.0','pandav:/npm/lodash/4.6.1'],function(a,b,c){var d=c('pandav:/com/common-utils/1.0.0'),e=d.getFontStyle,f=d.getColor,g=c('pandav:/npm/lodash/4.6.1');return a.exports={getLineStyle:function(a){var b=a.fillType,c=a.image,d=a.color,e=a.radius,g=a.borderWidth,h=a.borderColor;return{borderColor:h,borderWidth:g,borderStyle:'solid',borderRadius:e,background:'color'==b?f(d):c?'url('.concat(c,') 0 0/100% 100%'):'transparent'}},flexAlign:function(a){return'left'==a?'flex-start':'right'==a?'flex-end':'center'},getNumStyle:function(a){if(!a)return{};var b=a.background,c=b.fillType,d=b.color,h=b.image,i=b.size,j=i.width,k=i.height,l=a.font,m=a.translate,n=m.x,o=m.y;return g.assign({},e(l),{background:'color'==c?f(d):h?'url('.concat(h,') 0 0/100% 100%'):'transparent',transform:'translate('.concat(n,'px,').concat(o,'px)'),width:j,height:k})}},a.exports});", "requires": [], "buildLevel": 6, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/utils.js", "fileName": "/src/utils.js" }, "pandav:/src/ScrollBar.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/ScrollBar.jsx',['pandav:/npm/react/17.0.2'],function(a,b,c){var d=c('pandav:/npm/react/17.0.2'),e=d.memo,f=e(function(a){var b=a.style,c=a.config,e=c.show,f=c.track,g=f.width,h=f.color,i=f.radius,j=c.thumb,k=j.width,l=j.color,m=j.radius,n=a.height,o=a.value,p=a.scrollBar,q=function(a){return p(a)},r=function a(){document.removeEventListener('mousemove',q),document.removeEventListener('mouseup',a)};return e?d.createElement('div',{style:Object.assign(b,{width:g,background:h,borderRadius:i*g/2})},d.createElement('div',{style:{width:k,height:n,background:l,borderRadius:m*k/2,position:'absolute',top:0,left:(g-k)/2,transform:'translateY('.concat(o,'px)'),cursor:'pointer',transition:'all linear 0.1s'},onMouseDown:function(){document.addEventListener('mousemove',q),document.addEventListener('mouseup',r)}})):null});return a.exports=f,a.exports});", "requires": [], "buildLevel": 6, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/ScrollBar.jsx", "fileName": "/src/ScrollBar.jsx" }, "pandav:/src/Wrap.jsx": { "cubeCode": "Cube('pandav:/com/tableListGroupV2/1.0.0/src/Wrap.jsx',['pandav:/npm/styled-components/6.1.13','pandav:/npm/react/17.0.2'],function(a,b,c){var d=c('pandav:/npm/styled-components/6.1.13'),e=c('pandav:/npm/react/17.0.2'),f=d.div(function(a){var b=a.scroll,c=b.show,d=b.on,e=b.track,f=b.thumb,g=e.width,h=e.color,i=e.radius,j=f.width,k=f.color,l=f.radius;return c?'\\n &::-webkit-scrollbar {\\n display: '.concat(d?'block':'none',';\\n width: ').concat(g,'px;\\n height: ').concat(g,'px;\\n }\\n &::-webkit-scrollbar-thumb {\\n background: ').concat(k,';\\n border: ').concat((.5-j/g/2)*g,'px solid transparent;\\n border-left-width: 0;\\n border-right-width: 0;\\n border-radius: ').concat(l*g*j,'px;\\n background-clip: content-box;\\n }\\n &::-webkit-scrollbar-track {\\n background-color: ').concat(h,';\\n border-radius: ').concat(i*g/2,'px;\\n }\\n'):null});return a.exports=f,a.exports});", "requires": [], "buildLevel": 3, "outputDir": "/com/tableListGroupV2/1.0.0/src", "outputPath": "/com/tableListGroupV2/1.0.0/src/Wrap.jsx", "fileName": "/src/Wrap.jsx" } }