UNPKG

iamferraz-gantt-chart

Version:

Gantt Chart Component using Echarts library

2 lines 19.3 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("echarts/core"),require("ngx-echarts")):"function"==typeof define&&define.amd?define("iamferraz-gantt-chart",["exports","@angular/core","echarts/core","ngx-echarts"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["iamferraz-gantt-chart"]={},t.ng.core,t.echarts,t.ngxEcharts)}(this,(function(t,e,a,r){"use strict";var i=function(){},n=function(){function t(){}return t.datediff=function(t,e){return Math.round((e-t)/864e5)},t.daysLeft=function(t,e){var a=this.datediff(t,(new Date).getTime());return a<0?-a+" "+(e?e.TO_END:"TO_END"):a+" "+(e?e.DELAYED:"DELAYED")},t}(),o=function(){function t(t,e){this.COLOURS=t,this._enableGroup=e}return t.prototype.mapData=function(t){for(var e=this.mapGroups(t),a=[],r=0;r<t.length;r++){var i=t[r],n=0,o=e[i.groupName];null!=o&&o.tasks.length>1&&o.tasks.indexOf(i.taskId)<o.tasks.length-1&&(n=1);var s="";s=0==this._enableGroup?this.getColorHex(r):o.color;var l=[r,i.taskName,i.start,i.end,i.taskId,i.donePercentage,i.owner,i.image,i.groupName,n,s];a.push(l)}return a},t.prototype.mapZebra=function(t){for(var e=[],a=0;a<t.length;a++){var r=t[a],i=[a,this.getMinDate(t),this.getMaxDate(t),r.taskId];e.push(i)}return e},t.prototype.getMinDate=function(t){for(var e=new Date(864e13),a=0;a<t.length;a++){var r=t[a];r.start<e&&(e=r.start)}return new Date(e)},t.prototype.getMaxDate=function(t){for(var e=new Date(-864e13),a=0;a<t.length;a++){var r=t[a];r.end>e&&(e=r.end)}return new Date(e)},t.prototype.mapGroups=function(t){if(0==this._enableGroup)return{};for(var e=0,a={},r=0;r<t.length;r++)null==a[t[r].groupName]?(a[t[r].groupName]={},a[t[r].groupName].color=this.getColorHex(e),a[t[r].groupName].tasks=[t[r].taskId],e+=1):a[t[r].groupName].tasks.push(t[r].taskId);return a},t.prototype.compareTasks=function(t,e){var a=0;t.start>e.start&&(a=-1),e.start>t.start&&(a=1);var r=0;t.groupOrder>e.groupOrder&&(r=-1),e.groupOrder>t.groupOrder&&(r=1);var i=0;return t.taskName>e.taskName&&(i=-1),e.taskName>t.taskName&&(i=1),r||i||a},t.prototype.getTaskById=function(t,e){for(var a=0;a<t.length;a++)if(t[a].taskId==e)return t[a];return null},t.prototype.getTaskByIdInMappedData=function(t,e){for(var a=0;a<t.length;a++)if(t[a][4]==e)return t[a];return null},t.prototype.randomInt=function(t,e){return t+Math.floor((e-t)*Math.random())},t.prototype.getRandomHexColor=function(){return this.COLOURS[this.randomInt(0,this.COLOURS.length)]},t.prototype.getColorHex=function(t){return t>=this.COLOURS.length&&(t=0),this.COLOURS[t]},t}(),s=function(){function t(t,e,a,r,i,n,s,l){void 0===s&&(s=!0),void 0===l&&(l=!1),this.arrowColors=["#000","#fff"],this.zebraColor=[["#f2f2f2","#e6e6e6"],["#212529","#2C3034"]],this._taskData=t,this._mappedData=e,this.taskDataManipulator=new o(a,s),this.DATE_FORMAT=r,this.HEIGHT_RATIO=i,this._darkTheme=l,this._enableGroup=s,this._translation=n}return t.prototype.renderGanttItem=function(t,e){var r=e.value(0),i=e.value(1),n=e.coord([e.value(2),r]),o=e.coord([e.value(3),r]),s=(e.value(4),e.value(5)),l=e.value(10),h=o[0]-n[0],p=e.size([0,1])[1]*this.HEIGHT_RATIO,u=n[0],c=n[1]-p-p/3,d=h>a.format.getTextRect(i).width+40&&u+h>=180?i:"",y=this.clipRectByRect(t,{x:u,y:c,width:h,height:p}),g=this.clipRectByRect(t,{x:u,y:c,width:h,height:p}),f=this.clipRectByRect(t,{x:u,y:c,width:h*s/100,height:3});return{type:"group",children:[{type:"rect",ignore:!y,shape:y,style:e.style({fill:l})},{type:"rect",ignore:!g,shape:g,style:e.style({fill:"transparent",stroke:"transparent",text:d,textFill:"#fff"})},{type:"rect",ignore:!f,shape:f,style:e.style({fill:"rgba(214, 40, 40, 1)",stroke:"transparent"})}]}},t.prototype.renderAxisLabelItem=function(t,e){var a=e.value(0),r=e.value(1),i=(e.value(4),e.value(5)),o=(e.value(2),e.value(3)),s=(e.value(6),e.value(7)),l=e.value(8),h=e.value(9),p=e.value(10),u=n.daysLeft(o,this._translation),c=e.coord([0,a])[1],d=e.size([0,1])[1];100==i&&(u=this._translation?this._translation.FINISHED:"FINISHED");var y={type:"group",silent:!0,position:[10,c],children:[{type:"rect",shape:{x:0,y:t.coordSys.y-2*d+d/6,width:210,height:46},style:{fill:p}},{type:"image",style:{image:s,x:5,y:t.coordSys.y-2*d+d/3,width:25,height:25}},{type:"text",style:{x:35,y:t.coordSys.y-2*d+.5*d,text:r,textVerticalAlign:"bottom",textAlign:"left",textFill:"#000"}},{type:"text",style:{x:35,y:t.coordSys.y-2*d+.7*d,textVerticalAlign:"bottom",textAlign:"left",text:u,textFill:"#000",fontSize:9}}]};return this._enableGroup&&(1==h?y.children.push({type:"rect",shape:{x:105,y:t.coordSys.y-2*d-d/3,width:10,height:46},style:{fill:p}}):y.children.push({type:"text",style:{x:-10,y:t.coordSys.y-2*d+d/9,text:l,textVerticalAlign:"bottom",textAlign:"left",textFill:this._darkTheme?"#fff":"#000"}})),y},t.prototype.renderArrowsItem=function(t,e){for(var a=e.value(0),r=(e.value(1),e.coord([e.value(2),a])),i=e.coord([e.value(3),a]),n=(e.value(4),i[0],r[0],e.size([0,1])[1]*this.HEIGHT_RATIO),o=r[0],s=r[1]-n-n/3,l=[],h=this._taskData[t.dataIndex].taskDependencies,p=0;p<h.length;p++){var u=this.taskDataManipulator.getTaskByIdInMappedData(this._mappedData,h[p]);if(null!=u){var c=u[0],d=e.coord([u[2],c]),y=e.coord([u[3],c])[0]-d[0],g=e.size([0,1])[1]*this.HEIGHT_RATIO,f=d[0],m=d[1]-g-g/3,D=this._darkTheme?this.arrowColors[1]:this.arrowColors[0],k={};k=o<f+y/2?s>m?{type:"polygon",shape:{points:[[f+y/2-5,s-10],[f+y/2+5,s-10],[f+y/2,s]]},style:e.style({fill:D})}:{type:"polygon",shape:{points:[[f+y/2-5,s+g+10],[f+y/2+5,s+g+10],[f+y/2,s+g]]},style:e.style({fill:D})}:{type:"polygon",shape:{points:[[o-5,s+n/2-5],[o-5,s+n/2+5],[o+5,s+n/2]]},style:e.style({fill:D})};var x={type:"line",shape:{x1:f+y/2,y1:m+g,x2:f+y/2,y2:s+g/2},style:e.style({fill:D,stroke:D})},v={type:"line",shape:{x1:f+y/2,y1:s+g/2,x2:o,y2:s+g/2},style:e.style({fill:D,stroke:D})};l.push({type:"group",children:[x,v,k]})}}return{type:"group",children:l}},t.prototype.renderArrowsItem2=function(t,e){for(var a=e.value(0),r=(e.value(1),e.coord([e.value(2),a])),i=e.coord([e.value(3),a]),n=(e.value(4),i[0],r[0],e.size([0,1])[1]*this.HEIGHT_RATIO),o=r[0],s=r[1]-n,l=[],h=this._taskData[t.dataIndex].taskDependencies,p=0;p<h.length;p++){var u=this.taskDataManipulator.getTaskByIdInMappedData(this._mappedData,h[p]);if(null!=u){var c=u[0],d=e.coord([u[2],c]),y=e.coord([u[3],c])[0]-d[0],g=e.size([0,1])[1]*this.HEIGHT_RATIO,f=d[0],m=d[1]-g;l.push({type:"group",children:[{type:"line",shape:{x1:f+y,y1:m+g/2,x2:o,y2:m+g/2},style:e.style({fill:"#000",stroke:"#000"})},{type:"line",shape:{x1:o,y1:m+g/2,x2:o-10,y2:s+n/2},style:e.style({fill:"#000",stroke:"#000"})},{type:"polygon",shape:{points:[[o-5,s+n/2-5],[o-5,s+n/2+10],[o+5,s+n/2]]},style:e.style({fill:"#000",stroke:"#000"})}]})}}return{type:"group",children:l}},t.prototype.renderZebra=function(t,e){var a=e.value(0),r=e.coord([new Date,a]),i=e.coord([e.value(1),a]),n=e.coord([e.value(2),a])[0]-(i[0]>r[0]?r[0]:i[0]),o=e.size([0,1])[1],s=i[0]>r[0]?r[0]:i[0],l=i[1]-o,h=this.clipRectByRect(t,{x:s,y:l,width:n,height:o});return{type:"group",silent:!0,children:[{type:"rect",ignore:!h,shape:h,style:e.style({fill:this._darkTheme?a%2==0?this.zebraColor[1][0]:this.zebraColor[1][1]:a%2==0?this.zebraColor[0][0]:this.zebraColor[0][1]})}]}},t.prototype.renderToday=function(t,e){var r=e.coord([e.value(0),0]),i=e.size([0,1])[1],n=r[0],o=i,s=1e3*i,l=a.time.format(new Date,this.DATE_FORMAT,!1);return{type:"group",silent:!0,children:[{type:"text",style:{x:n-a.format.getTextRect(l).width/2,y:o,text:l,textVerticalAlign:"bottom",textAlign:"left",textFill:"#a14b27"}},{type:"line",shape:{x1:n,y1:o,x2:n,y2:s},style:e.style({fill:"#a14b27",stroke:"#a14b27"})}]}},t.prototype.clipRectByRect=function(t,e){return a.graphic.clipRectByRect(e,{x:t.coordSys.x,y:t.coordSys.y,width:t.coordSys.width,height:t.coordSys.height})},t}(),l=function(){function t(){this.taskData=[],this.taskDataChange=new e.EventEmitter,this.editClicked=new e.EventEmitter,this.taskClicked=new e.EventEmitter,this.enableDataZoom=!1,this.enableDarkTheme=!1,this.enableGroup=!0,this.chartTitle="",this.dateFormat="{MM}/{dd}/{yyyy}",this.colours=["#F94144","#F3722C","#F8961E","#F9844A","#F9C74F","#90BE6D","#43AA8B","#4D908E","#577590","#277DA1"],this.heightRatio=.6,this.loading=!1,this.height=300,this.translation={DONE:"done",TO_END:"days to finish",DELAYED:"delayed",FINISHED:"completed",JANUARY:"Jan",FEBRUARY:"Fev",MARCH:"Mar",APRIL:"Apr",MAY:"May",JUNE:"Jun",JULY:"Jul",AUGUST:"Aug",SEPTEMBER:"Sep",OCTOBER:"Oct",NOVEMBER:"Nov",DECEMBER:"Dec"},this.ganttWidth=700,this.ganttHeight=500,this.taskDataManipulator=new o(this.colours,this.enableGroup),this.taskData=this.taskData.sort(this.taskDataManipulator.compareTasks),this.mappedData=this.taskDataManipulator.mapData(this.taskData),this.zebraData=this.taskDataManipulator.mapZebra(this.taskData),this.todayData=[new Date]}return t.prototype.getTitleOption=function(){return""===this.chartTitle?{}:{text:this.chartTitle,textStyle:{color:this.enableDarkTheme?"#fff":"#000"},left:"center"}},t.prototype.getGridOption=function(){return{show:!0,top:70,bottom:20,left:225,right:20,backgroundColor:"#fff",borderWidth:0}},t.prototype.getTooltipOption=function(){var t=this.dateFormat,e=this.translation;return{confine:!0,appendToBody:!0,trigger:"item",formatter:function(r){if(null!=r&&2!=r.seriesIndex)return"";var i=r.value,n=i[1],o=a.time.format(new Date(i[2]),t,!1),s=a.time.format(new Date(i[3]),t,!1),l=i[5];return['<div class="tooltip-title">'+a.format.encodeHTML(n)+"</div>",o+" - ",s+"<br>",l+"% "+(e?e.DONE:"DONE")].join("")}}},t.prototype.resetZoomAction=function(){this.echartsInstance.dispatchAction({type:"dataZoom",start:0,end:100})},t.prototype.editAction=function(){this.editClicked.emit(!0)},t.prototype.getToolboxOption=function(){return{left:20,top:0,itemSize:20,feature:{myEditor:{show:!0,title:"Edit",icon:"path://M990.55 380.08 q11.69 0 19.88 8.19 q7.02 7.01 7.02 18.71 l0 480.65 q-1.17 43.27 -29.83 71.93 q-28.65 28.65 -71.92 29.82 l-813.96 0 q-43.27 -1.17 -72.5 -30.41 q-28.07 -28.07 -29.24 -71.34 l0 -785.89 q1.17 -43.27 29.24 -72.5 q29.23 -29.24 72.5 -29.24 l522.76 0 q11.7 0 18.71 7.02 q8.19 8.18 8.19 18.71 q0 11.69 -7.6 19.29 q-7.6 7.61 -19.3 7.61 l-518.08 0 q-22.22 1.17 -37.42 16.37 q-15.2 15.2 -15.2 37.42 l0 775.37 q0 23.39 15.2 38.59 q15.2 15.2 37.42 15.2 l804.6 0 q22.22 0 37.43 -15.2 q15.2 -15.2 16.37 -38.59 l0 -474.81 q0 -11.7 7.02 -18.71 q8.18 -8.19 18.71 -8.19 l0 0 ZM493.52 723.91 l-170.74 -170.75 l509.89 -509.89 q23.39 -23.39 56.13 -21.05 q32.75 1.17 59.65 26.9 l47.94 47.95 q25.73 26.89 27.49 59.64 q1.75 32.75 -21.64 57.3 l-508.72 509.9 l0 0 ZM870.09 80.69 l-56.13 56.14 l94.72 95.9 l56.14 -57.31 q8.19 -9.35 8.19 -21.05 q-1.17 -12.86 -10.53 -22.22 l-47.95 -49.12 q-10.52 -9.35 -23.39 -9.35 q-11.69 -1.17 -21.05 7.01 l0 0 ZM867.75 272.49 l-93.56 -95.9 l-380.08 380.08 l94.73 94.73 l378.91 -378.91 l0 0 ZM322.78 553.16 l38.59 39.77 l-33.92 125.13 l125.14 -33.92 l38.59 38.6 l-191.79 52.62 q-5.85 1.17 -12.28 0 q-6.44 -1.17 -11.11 -5.84 q-4.68 -4.68 -5.85 -11.7 q-2.34 -5.85 0 -11.69 l52.63 -192.97 l0 0 Z",onclick:this.editAction.bind(this)},myZoomMinus:this.enableDataZoom?{show:!0,title:"Reset Zoom",icon:"path://M10,1.344c-4.781,0-8.656,3.875-8.656,8.656c0,4.781,3.875,8.656,8.656,8.656c4.781,0,8.656-3.875,8.656-8.656C18.656,5.219,14.781,1.344,10,1.344z M10,17.903c-4.365,0-7.904-3.538-7.904-7.903S5.635,2.096,10,2.096S17.903,5.635,17.903,10S14.365,17.903,10,17.903z M13.388,9.624H6.613c-0.208,0-0.376,0.168-0.376,0.376s0.168,0.376,0.376,0.376h6.775c0.207,0,0.377-0.168,0.377-0.376S13.595,9.624,13.388,9.624z",onclick:this.resetZoomAction.bind(this)}:{},saveAsImage:{show:!0,icon:"path://M6.523,7.683c0.96,0,1.738-0.778,1.738-1.738c0-0.96-0.778-1.738-1.738-1.738c-0.96,0-1.738,0.778-1.738,1.738 C4.785,6.904,5.563,7.683,6.523,7.683z M5.944,5.365h1.159v1.159H5.944V5.365z M18.113,0.729H1.888 c-0.64,0-1.159,0.519-1.159,1.159v16.224c0,0.64,0.519,1.159,1.159,1.159h16.225c0.639,0,1.158-0.52,1.158-1.159V1.889 C19.271,1.249,18.752,0.729,18.113,0.729z M18.113,17.532c0,0.321-0.262,0.58-0.58,0.58H2.467c-0.32,0-0.579-0.259-0.579-0.58 V2.468c0-0.32,0.259-0.579,0.579-0.579h15.066c0.318,0,0.58,0.259,0.58,0.579V17.532z M15.91,7.85l-4.842,5.385l-3.502-2.488 c-0.127-0.127-0.296-0.18-0.463-0.17c-0.167-0.009-0.336,0.043-0.463,0.17l-3.425,4.584c-0.237,0.236-0.237,0.619,0,0.856 c0.236,0.236,0.62,0.236,0.856,0l3.152-4.22l3.491,2.481c0.123,0.123,0.284,0.179,0.446,0.174c0.16,0.005,0.32-0.051,0.443-0.174 l5.162-5.743c0.238-0.236,0.238-0.619,0-0.856C16.529,7.614,16.146,7.614,15.91,7.85z"}}}},t.prototype.getXAxisOption=function(){return{type:"time",position:"top",splitLine:{lineStyle:{color:["#E9EDFF"]}},axisLine:{show:!1},axisTick:{lineStyle:{color:"#929ABA"}},axisLabel:{color:"#929ABA",inside:!1,align:"center",formatter:this.formatLabelDate.bind(this)}}},t.prototype.formatLabelDate=function(t,e){var a=new Date(t),r=a.getDate(),i=a.getMonth();return this.isFirstDay(r,i)?this.getMonthName(i):r+""},t.prototype.getLastDayMonth=function(t,e){return new Date((new Date).getFullYear(),e+1,0).getDate()==t},t.prototype.isFirstDay=function(t,e){return 1==t},t.prototype.getMonthName=function(t){switch(t){case 0:return this.translation?this.translation.JANUARY:"Jan";case 1:return this.translation?this.translation.FEBRUARY:"Fev";case 2:return this.translation?this.translation.MARCH:"Mar";case 3:return this.translation?this.translation.APRIL:"Apr";case 4:return this.translation?this.translation.MAY:"May";case 5:return this.translation?this.translation.JUNE:"Jun";case 6:return this.translation?this.translation.JULY:"Jul";case 7:return this.translation?this.translation.AUGUST:"Aug";case 8:return this.translation?this.translation.SEPTEMBER:"Sep";case 9:return this.translation?this.translation.OCTOBER:"Oct";case 10:return this.translation?this.translation.NOVEMBER:"Nov";case 11:return this.translation?this.translation.DECEMBER:"Dec"}return""},t.prototype.getYAxisOption=function(){return{axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},axisLabel:{show:!1},min:0,max:this.taskData.length}},t.prototype.getSerieZebra=function(){return{id:"zebra",type:"custom",renderItem:this.renderers.renderZebra.bind(this.renderers),dimensions:[{name:"index",type:"number"},{name:"start",type:"time"},{name:"end",type:"time"},{name:"taskId",type:"number"}],encode:{x:-1,y:3},data:this.zebraData}},t.prototype.getSerieArrow=function(t){return{id:"arrow",type:"custom",clip:!0,silent:!0,itemStyle:{borderType:"dashed"},renderItem:this.renderers.renderArrowsItem.bind(this.renderers),dimensions:t,tooltip:null,encode:{x:-1,y:4},data:this.mappedData}},t.prototype.getSerieGantt=function(t){return{id:"taskData",type:"custom",itemStyle:{},renderItem:this.renderers.renderGanttItem.bind(this.renderers),dimensions:t,encode:{x:[1,2,3,4],y:4,tooltip:[0,1,2]},data:this.mappedData}},t.prototype.getSerieAxisY=function(t){return{type:"custom",renderItem:this.renderers.renderAxisLabelItem.bind(this.renderers),dimensions:t,encode:{x:-1,y:4,tooltip:[0,1,2]},data:this.mappedData}},t.prototype.getSerieToday=function(){return{id:"today",type:"custom",renderItem:this.renderers.renderToday.bind(this.renderers),dimensions:[{name:"today",type:"time"}],encode:{x:0,y:-1},data:this.todayData}},t.prototype.getDataZoom=function(){return 0==this.enableDataZoom?[]:[{type:"slider",xAxisIndex:0,filterMode:"weakFilter",height:30,bottom:0,start:0,end:30,showDetail:!1},{type:"inside",id:"insideX",xAxisIndex:0,filterMode:"weakFilter",start:0,end:30,zoomOnMouseWheel:!1,moveOnMouseMove:!1,moveOnMouseWheel:!0,preventDefaultMouseMove:!1,preventDefaultMouseWheel:!1}]},t.prototype.getSeries=function(){var t=[{name:"index",type:"number"},{name:"taskName",type:"ordinal"},{name:"start",type:"time"},{name:"end",type:"time"},{name:"taskId",type:"number"},{name:"donePercentage",type:"number"},{name:"owner",type:"ordinal"},{name:"image",type:"ordinal"},{name:"groupName",type:"ordinal"},{name:"isToDrawGroup",type:"number"},{name:"groupColor",type:"ordinal"}];return[this.getSerieZebra(),this.getSerieArrow(t),this.getSerieGantt(t),this.getSerieAxisY(t),this.getSerieToday()]},t.prototype.setChartOptions=function(){this.chartOptions={backgroundColor:"transparent",tooltip:this.getTooltipOption(),animation:!1,toolbox:this.getToolboxOption(),title:this.getTitleOption(),dataZoom:this.getDataZoom(),grid:this.getGridOption(),xAxis:this.getXAxisOption(),yAxis:this.getYAxisOption(),series:this.getSeries()}},t.prototype.ngOnInit=function(){this.setChartOptions()},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnChanges=function(t){this.echartsInstance&&this.echartsInstance.clear(),this.taskDataManipulator=new o(this.colours,this.enableGroup),this.taskData=this.taskData.sort(this.taskDataManipulator.compareTasks),this.mappedData=this.taskDataManipulator.mapData(this.taskData),this.zebraData=this.taskDataManipulator.mapZebra(this.taskData),this.todayData=[new Date],this.renderers=new s(this.taskData,this.mappedData,this.colours,this.dateFormat,this.heightRatio,this.translation,this.enableGroup,this.enableDarkTheme),this.setChartOptions()},t.prototype.ngAfterContentChecked=function(){if(null!=this.wrapper){this.ganttWidth=this.wrapper.nativeElement.offsetWidth,this.ganttHeight=this.wrapper.nativeElement.offsetHeight;var t=80*this.taskData.length;this.ganttHeight=t<300?300:t}},t.prototype.onChartInit=function(t){this.echartsInstance=t,this.echartsInstance.resize()},t.prototype.onTaskClicked=function(t){if(null!=t){var e=this.taskDataManipulator.getTaskById(this.taskData,t.value[4]);null!=this.taskClicked&&this.taskClicked.emit(e)}},t.prototype.resizeChart=function(){this.echartsInstance&&this.echartsInstance.resize()},t.prototype.sizeChange=function(t){this.resizeChart()},t}();l.decorators=[{type:e.Component,args:[{selector:"iamferraz-gantt",template:'<div class="wrapper" [style.width.%]="100" [style.height.%]="100" #wrapper>\n <div echarts class="gantt-chart" [options]="chartOptions" [loading]="loading" (chartInit)="onChartInit($event)" (chartClick)="onTaskClicked($event)" [style.width.px]="ganttWidth" [style.height.px]="ganttHeight" #gantt></div>\n</div>',styles:[".wrapper{display:inline-block;width:100%;overflow-y:auto;overflow-x:hidden}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888}::-webkit-scrollbar-thumb:hover{background:#555}"]}]}],l.ctorParameters=function(){return[]},l.propDecorators={wrapper:[{type:e.ViewChild,args:["wrapper"]}],gantt:[{type:e.ViewChild,args:["gantt"]}],taskData:[{type:e.Input}],taskDataChange:[{type:e.Output}],editClicked:[{type:e.Output}],taskClicked:[{type:e.Output}],enableDataZoom:[{type:e.Input}],enableDarkTheme:[{type:e.Input}],enableGroup:[{type:e.Input}],chartTitle:[{type:e.Input}],dateFormat:[{type:e.Input}],colours:[{type:e.Input}],heightRatio:[{type:e.Input}],loading:[{type:e.Input}],height:[{type:e.Input}],translation:[{type:e.Input}],sizeChange:[{type:e.HostListener,args:["window:resize",["$event"]]}]};var h=function(){};h.decorators=[{type:e.NgModule,args:[{declarations:[l],imports:[r.NgxEchartsModule],exports:[l]}]}],t.GanttChartModule=h,t.GanttComponent=l,t.TaskModel=i,Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=iamferraz-gantt-chart.umd.min.js.map