public_html/layouts/basic/modules/Project/resources/Gantt.min.js.map
{"version":3,"file":"Gantt.min.js","sources":["Gantt.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\nclass Gantt {\n\t/**\n\t * Constructor\n\t *\n\t * @param {jQuery|HTMLElement|string} container\n\t * @param {object} projectData\n\t */\n\tconstructor(container, projectData) {\n\t\tthis.container = $(container);\n\t\tthis.containerParent = this.container.parent();\n\t\tthis.headerContainer = this.containerParent.parent().find('.js-gantt-header').eq(0);\n\t\tthis.weekStart = 6 - CONFIG.firstDayOfWeekNos;\n\t\tlet workingDays = [1, 2, 3, 4, 5];\n\t\tthis.options = {\n\t\t\tslots: {\n\t\t\t\theader: {\n\t\t\t\t\tbeforeOptions: `<button class=\"btn btn-primary pb-2 mr-2 h-100 js-gantt__front-filter\"><span class=\"fas fa-filter\"></span> ${LANG.JS_GANTT_FILTER}</button>`\n\t\t\t\t}\n\t\t\t},\n\t\t\tmaxRows: 30,\n\t\t\ttimes: {\n\t\t\t\ttimeZoom: 20\n\t\t\t},\n\t\t\tcalendar: {\n\t\t\t\tworkingDays\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\tlabel: LANG.JS_GANTT_TITLE,\n\t\t\t\thtml: true\n\t\t\t},\n\t\t\ttaskList: {\n\t\t\t\texpander: {\n\t\t\t\t\tstraight: false\n\t\t\t\t},\n\t\t\t\tcolumns: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 1,\n\t\t\t\t\t\tlabel: app.vtranslate('JS_NO.'),\n\t\t\t\t\t\thtml: true,\n\t\t\t\t\t\tvalue: 'number',\n\t\t\t\t\t\twidth: 65\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 2,\n\t\t\t\t\t\tlabel: app.vtranslate('JS_NAME'),\n\t\t\t\t\t\thtml: true,\n\t\t\t\t\t\tvalue: 'label',\n\t\t\t\t\t\twidth: 280,\n\t\t\t\t\t\texpander: true\n\t\t\t\t\t},\n\t\t\t\t\t{ id: 3, label: app.vtranslate('JS_PRIORITY'), value: 'priority_label', width: 70 },\n\t\t\t\t\t{ id: 3, label: app.vtranslate('JS_STATUS'), value: 'status_label', width: 80 },\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 4,\n\t\t\t\t\t\tlabel: app.vtranslate('JS_DAYS'),\n\t\t\t\t\t\tvalue: (task) => {\n\t\t\t\t\t\t\treturn task.duration / 24 / 60 / 60 / 1000;\n\t\t\t\t\t\t},\n\t\t\t\t\t\twidth: 75,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t'task-list-header-label': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'task-list-item-value-container': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 5,\n\t\t\t\t\t\tlabel: app.vtranslate('JS_PLANNED'),\n\t\t\t\t\t\tvalue: (task) => {\n\t\t\t\t\t\t\treturn task.planned_duration;\n\t\t\t\t\t\t},\n\t\t\t\t\t\twidth: 85,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t'task-list-header-label': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'task-list-item-value-container': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 6,\n\t\t\t\t\t\tlabel: app.vtranslate('JS_REALISATION'),\n\t\t\t\t\t\tvalue: 'sum_time',\n\t\t\t\t\t\twidth: 85,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t'task-list-header-label': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'task-list-item-value-container': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 7,\n\t\t\t\t\t\tlabel: app.vtranslate('JS_ASSIGNED', 'Project'),\n\t\t\t\t\t\tvalue: 'assigned_user_name',\n\t\t\t\t\t\twidth: 110\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 8,\n\t\t\t\t\t\tlabel: '%',\n\t\t\t\t\t\tvalue: 'progress',\n\t\t\t\t\t\twidth: 35,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t'task-list-header-label': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'task-list-item-value-container': {\n\t\t\t\t\t\t\t\t'text-align': 'center',\n\t\t\t\t\t\t\t\twidth: '100%'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t};\n\t\tthis.dynamicStyle = {\n\t\t\t'chart-expander-wrapper': {\n\t\t\t\t'line-height': '1'\n\t\t\t},\n\t\t\t'chart-row-bar-polygon': {\n\t\t\t\tstroke: '#E74C3C00',\n\t\t\t\t'stroke-width': 0,\n\t\t\t\tfill: '#F75C4C'\n\t\t\t},\n\t\t\t'chart-row-progress-bar-outline': {\n\t\t\t\tstroke: '#E74C3C00',\n\t\t\t\t'stroke-width': 0\n\t\t\t},\n\t\t\t'chart-days-highlight-rect': {\n\t\t\t\tfill: '#f3f5f780'\n\t\t\t},\n\t\t\t'header-title': {\n\t\t\t\tfloat: 'none',\n\t\t\t\tdisplay: 'inline-flex',\n\t\t\t\toverflow: 'hidden'\n\t\t\t},\n\t\t\t'header-options': {\n\t\t\t\tfloat: 'none',\n\t\t\t\tdisplay: 'inline-flex'\n\t\t\t},\n\t\t\t'header-title--html': {\n\t\t\t\t'white-space': 'nowrap',\n\t\t\t\toverflow: 'hidden',\n\t\t\t\t'text-overflow': 'ellipsis',\n\t\t\t\t'padding-left': '0',\n\t\t\t\t'letter-spacing': '0'\n\t\t\t},\n\t\t\t'slot-header-beforeOptions': {\n\t\t\t\theight: '100%',\n\t\t\t\t'vertical-align': 'top'\n\t\t\t}\n\t\t};\n\t\tthis.registerLanguage();\n\t\tif (typeof projectData !== 'undefined') {\n\t\t\tthis.options.title.label = projectData;\n\t\t\tthis.loadProject(projectData);\n\t\t}\n\t\tthis.registerEvents();\n\t}\n\n\t/**\n\t * Register language translations globally (replace old ones)\n\t */\n\tregisterLanguage() {\n\t\tthis.options.locale = {\n\t\t\tname: CONFIG.langKey,\n\t\t\tweekStart: this.weekStart,\n\t\t\tweekdays: [\n\t\t\t\tLANG.JS_SUNDAY,\n\t\t\t\tLANG.JS_MONDAY,\n\t\t\t\tLANG.JS_TUESDAY,\n\t\t\t\tLANG.JS_WEDNESDAY,\n\t\t\t\tLANG.JS_THURSDAY,\n\t\t\t\tLANG.JS_FRIDAY,\n\t\t\t\tLANG.JS_SATURDAY\n\t\t\t],\n\t\t\tweekdaysShort: [LANG.JS_SUN, LANG.JS_MON, LANG.JS_TUE, LANG.JS_WED, LANG.JS_THU, LANG.JS_FRI, LANG.JS_SAT],\n\t\t\tweekdaysMin: [LANG.JS_SUN, LANG.JS_MON, LANG.JS_TUE, LANG.JS_WED, LANG.JS_THU, LANG.JS_FRI, LANG.JS_SAT],\n\t\t\tmonths: [\n\t\t\t\tLANG.JS_JANUARY,\n\t\t\t\tLANG.JS_FEBRUARY,\n\t\t\t\tLANG.JS_MARCH,\n\t\t\t\tLANG.JS_APRIL,\n\t\t\t\tLANG.JS_MAY,\n\t\t\t\tLANG.JS_JUNE,\n\t\t\t\tLANG.JS_JULY,\n\t\t\t\tLANG.JS_AUGUST,\n\t\t\t\tLANG.JS_SEPTEMBER,\n\t\t\t\tLANG.JS_OCTOBER,\n\t\t\t\tLANG.JS_NOVEMBER,\n\t\t\t\tLANG.JS_DECEMBER\n\t\t\t],\n\t\t\tmonthsShort: [\n\t\t\t\tLANG.JS_JAN,\n\t\t\t\tLANG.JS_FEB,\n\t\t\t\tLANG.JS_MAR,\n\t\t\t\tLANG.JS_APR,\n\t\t\t\tLANG.JS_MAY,\n\t\t\t\tLANG.JS_JUN,\n\t\t\t\tLANG.JS_JUL,\n\t\t\t\tLANG.JS_AUG,\n\t\t\t\tLANG.JS_SEP,\n\t\t\t\tLANG.JS_OCT,\n\t\t\t\tLANG.JS_NOV,\n\t\t\t\tLANG.JS_DEC\n\t\t\t],\n\t\t\tordinal: (n) => `${n}`,\n\t\t\tNow: LANG.JS_GANTT_NOW,\n\t\t\t'X-Scale': LANG.JS_GANTT_ZOOM_X,\n\t\t\t'Y-Scale': LANG.JS_GANTT_ZOOM_Y,\n\t\t\t'Task list width': LANG.JS_GANTT_TASKLIST,\n\t\t\t'Before/After': LANG.JS_GANTT_EXPAND,\n\t\t\t'Display task list': LANG.JS_GANTT_TASKLIST_VISIBLE\n\t\t};\n\t}\n\n\t/**\n\t * Filter project data\n\t *\n\t * @param {Object} _projectData\n\t * @returns {Object}\n\t */\n\tfilterProjectData(_projectData) {\n\t\tlet tasks = this.allTasks.map((task) => Object.assign({}, task));\n\t\tfor (let moduleName in this.filter.status) {\n\t\t\tif (this.filter.status.hasOwnProperty(moduleName)) {\n\t\t\t\tconst visibleLabels = this.filter.status[moduleName].map((status) => status.label);\n\t\t\t\ttasks = tasks.filter((task) => {\n\t\t\t\t\treturn task.module !== moduleName || visibleLabels.indexOf(task.status_label) >= 0;\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\treturn tasks;\n\t}\n\n\t/**\n\t * Add icons to tasks\n\t * @param {array} tasks\n\t * @returns {array}\n\t */\n\taddIcons(tasks) {\n\t\treturn tasks.map((task) => {\n\t\t\tlet icon = 'briefcase';\n\t\t\tif (task.type === 'milestone') {\n\t\t\t\ticon = 'folder';\n\t\t\t} else if (task.type === 'task') {\n\t\t\t\ticon = 'file';\n\t\t\t}\n\t\t\tconst iconClass = 'fas fa-' + icon;\n\t\t\ttask.label = `<span class=\"${iconClass} fa-lg mr-1\"></span> ${task.label}`;\n\t\t\treturn task;\n\t\t});\n\t}\n\n\t/**\n\t * Resize gantt chart\n\t */\n\tresize() {\n\t\tlet offsetTop = this.container.offset().top;\n\t\tlet contentHeight = $('body').eq(0).height() - $('.js-footer').eq(0).height();\n\t\tlet height = contentHeight - offsetTop - 100;\n\t\tif (height < 300) {\n\t\t\theight = 300;\n\t\t}\n\t\tthis.options.maxHeight = height;\n\t\tif (typeof this.ganttState !== 'undefined' && this.ganttState) {\n\t\t\tthis.ganttState.maxHeight = height;\n\t\t}\n\t}\n\n\t/**\n\t * Register gantt header actions\n\t */\n\tregisterHeaderActions() {\n\t\tthis.headerContainer.find('.js-gantt-header__btn-filter').on('click', (e) => {\n\t\t\te.preventDefault();\n\t\t\tthis.showFiltersModal();\n\t\t});\n\t\tthis.headerContainer.find('.js-gantt-header__btn-center').on('click', (e) => {\n\t\t\tthis.ganttElastic.$emit('recenterPosition');\n\t\t});\n\t\tthis.headerContainer.find('.js-gantt-header__range-slider--x').on('input', (e) => {\n\t\t\tthis.ganttElastic.$emit('times-timeZoom-change', Number(e.target.value));\n\t\t});\n\t\tthis.headerContainer.find('.js-gantt-header__range-slider--y').on('input', (e) => {\n\t\t\tthis.ganttElastic.$emit('row-height-change', Number(e.target.value));\n\t\t});\n\t\tthis.headerContainer.find('.js-gantt-header__range-slider--task-list-width').on('input', (e) => {\n\t\t\tthis.ganttElastic.$emit('taskList-width-change', Number(e.target.value));\n\t\t});\n\t\tthis.headerContainer.find('.js-gantt-header__range-slider--scope').on('input', (e) => {\n\t\t\tthis.ganttElastic.$emit('scope-change', Number(e.target.value));\n\t\t});\n\t\tthis.headerContainer.find('.js-gantt-header__range-slider--task-list-visible').on('change', (e) => {\n\t\t\tthis.ganttState.options.taskList.display = $(e.target).is(':checked');\n\t\t});\n\t\tthis.ganttElastic.$watch('state.taskList.display', (value) => {\n\t\t\tthis.headerContainer.find('.js-gantt-header__range-slider--task-list-visible').prop('checked', value);\n\t\t});\n\t\tthis.headerContainer\n\t\t\t.find('.js-gantt-header__range-slider--task-list-visible')\n\t\t\t.prop('checked', this.ganttState.options.taskList.display ? 'checked' : false);\n\t}\n\n\t/**\n\t * Load project\n\t */\n\tloadProject(projectData) {\n\t\tthis.projectData = projectData;\n\t\tif (typeof this.projectData.tasks === 'undefined' || this.projectData.tasks.length === 0) {\n\t\t\t$('.js-hide-filter').addClass('d-none');\n\t\t\t$('.js-show-add-record').removeClass('d-none');\n\t\t\treturn;\n\t\t} else {\n\t\t\tthis.allTasks = this.addIcons(this.projectData.tasks);\n\t\t}\n\t\tthis.statuses = this.projectData.statuses;\n\t\tthis.filter = { status: this.projectData.activeStatuses };\n\t\tthis.container.closest('form').on('submit', (ev) => {\n\t\t\tev.preventDefault();\n\t\t\tev.stopPropagation();\n\t\t\treturn false;\n\t\t});\n\t\tthis.resize();\n\t\tconst self = this;\n\t\tif (typeof self.ganttElastic === 'undefined') {\n\t\t\tthis.ganttApp = GanttElastic.mount({\n\t\t\t\tel: '#' + this.container.attr('id'),\n\t\t\t\tdata: {\n\t\t\t\t\ttasks: this.allTasks,\n\t\t\t\t\toptions: this.options,\n\t\t\t\t\tdynamicStyle: this.dynamicStyle\n\t\t\t\t},\n\t\t\t\tready(ganttElasticInstance) {\n\t\t\t\t\tself.ganttElastic = ganttElasticInstance;\n\t\t\t\t\tself.ganttState = ganttElasticInstance.state;\n\t\t\t\t\tself.registerHeaderActions();\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.container = this.containerParent.find('.gantt-elastic').eq(0);\n\t\t} else {\n\t\t\tself.ganttApp.tasks = this.allTasks;\n\t\t}\n\t}\n\n\t/**\n\t * Load project from ajax request\n\t * @param {object} params - request params such as module/action and projectId\n\t */\n\tloadProjectFromAjax(params) {\n\t\tconst self = this,\n\t\t\tprogressInstance = jQuery.progressIndicator({\n\t\t\t\tblockInfo: {\n\t\t\t\t\tenabled: true,\n\t\t\t\t\tonBlock: () => {\n\t\t\t\t\t\tAppConnector.request(params).done((response) => {\n\t\t\t\t\t\t\tself.loadProject(response.result);\n\t\t\t\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\t/**\n\t * Load new data to gantt\n\t *\n\t * @param {Object} data\n\t */\n\treloadData(data) {\n\t\tthis.loadProject(data);\n\t}\n\n\t/**\n\t * Save filter and reload data.\n\t *\n\t * @param {Object} filterOptions\n\t */\n\tsaveFilter(filterOptions) {\n\t\tthis.filter = filterOptions;\n\t\tthis.ganttApp.tasks = this.filterProjectData(this.projectData);\n\t}\n\n\t/**\n\t * Get status from value (object with other props)\n\t * @param {String} value\n\t * @param {String} moduleName\n\t * @returns {Object}\n\t */\n\tgetStatusFromValue(value, moduleName) {\n\t\tfor (let status of this.statuses[moduleName]) {\n\t\t\tif (status.value === value) {\n\t\t\t\treturn Object.assign({}, status);\n\t\t\t}\n\t\t}\n\t\tapp.errorLog(`Status not found [${value}]`);\n\t}\n\n\t/**\n\t * Open modal with status filters\n\t */\n\tshowFiltersModal() {\n\t\tconst self = this;\n\t\tapp.showModalHtml({\n\t\t\theaderIcon: 'fas fa-filter',\n\t\t\theader: app.vtranslate('JS_FILTER_BY_STATUSES'),\n\t\t\tbody: `<div class=\"js-gantt__filter-modal form\" data-js=\"container\">\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label>${app.vtranslate('JS_PROJECT_STATUSES')}:</label>\n\t\t\t\t\t<select class=\"select2 form-control js-gantt__filter-project\" multiple>\n\t\t\t\t\t\t${self.statuses.Project.map((status) => {\n\t\t\t\t\t\t\treturn `<option value=\"${status.value}\" ${\n\t\t\t\t\t\t\t\tthis.filter.status.Project.map((status) => status.value).indexOf(status.value) >= 0 ? 'selected' : ''\n\t\t\t\t\t\t\t}>${status.label}</option>`;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t<label>${app.vtranslate('JS_MILESTONE_STATUSES')}:</label>\n\t\t\t\t\t<select class=\"select2 form-control js-gantt__filter-milestone\" multiple>\n\t\t\t\t\t\t${self.statuses.ProjectMilestone.map((status) => {\n\t\t\t\t\t\t\treturn `<option value=\"${status.value}\" ${\n\t\t\t\t\t\t\t\tthis.filter.status.ProjectMilestone.map((status) => status.value).indexOf(status.value) >= 0\n\t\t\t\t\t\t\t\t\t? 'selected'\n\t\t\t\t\t\t\t\t\t: ''\n\t\t\t\t\t\t\t}>${status.label}</option>`;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t<label>${app.vtranslate('JS_TASK_STATUSES')}:</label>\n\t\t\t\t\t<select class=\"select2 form-control js-gantt__filter-task\" multiple>\n\t\t\t\t\t\t${self.statuses.ProjectTask.map((status) => {\n\t\t\t\t\t\t\treturn `<option value=\"${status.value}\" ${\n\t\t\t\t\t\t\t\tthis.filter.status.ProjectTask.map((status) => status.value).indexOf(status.value) >= 0\n\t\t\t\t\t\t\t\t\t? 'selected'\n\t\t\t\t\t\t\t\t\t: ''\n\t\t\t\t\t\t\t}>${status.label}</option>`;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>`,\n\t\t\tfooterButtons: [\n\t\t\t\t{ text: app.vtranslate('JS_UPDATE_GANTT'), icon: 'fas fa-check', class: 'btn-success js-success' },\n\t\t\t\t{ text: app.vtranslate('JS_CANCEL'), icon: 'fas fa-times', class: 'btn-danger', data: { dismiss: 'modal' } }\n\t\t\t],\n\t\t\tcb: function (modal) {\n\t\t\t\tmodal.on('click', '.js-success', function (e) {\n\t\t\t\t\tself.saveFilter({\n\t\t\t\t\t\tstatus: {\n\t\t\t\t\t\t\tProject: modal\n\t\t\t\t\t\t\t\t.find('.js-gantt__filter-project')\n\t\t\t\t\t\t\t\t.val()\n\t\t\t\t\t\t\t\t.map((status) => {\n\t\t\t\t\t\t\t\t\treturn self.getStatusFromValue(status, 'Project');\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tProjectMilestone: modal\n\t\t\t\t\t\t\t\t.find('.js-gantt__filter-milestone')\n\t\t\t\t\t\t\t\t.val()\n\t\t\t\t\t\t\t\t.map((status) => {\n\t\t\t\t\t\t\t\t\treturn self.getStatusFromValue(status, 'ProjectMilestone');\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tProjectTask: modal\n\t\t\t\t\t\t\t\t.find('.js-gantt__filter-task')\n\t\t\t\t\t\t\t\t.val()\n\t\t\t\t\t\t\t\t.map((status) => {\n\t\t\t\t\t\t\t\t\treturn self.getStatusFromValue(status, 'ProjectTask');\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Register events for gantt actions in current container\n\t */\n\tregisterEvents() {\n\t\tconst container = this.container;\n\t\tcontainer.find('[data-toggle=\"tooltip\"]').tooltip();\n\t\twindow.addEventListener('resize', () => {\n\t\t\tthis.resize();\n\t\t});\n\t}\n}\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_createForOfIteratorHelper","allowArrayLike","it","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","err","normalCompletion","didErr","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","toString","slice","name","from","test","arr","len","arr2","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","Number","Gantt","container","projectData","$","containerParent","parent","headerContainer","find","eq","weekStart","CONFIG","firstDayOfWeekNos","options","slots","header","beforeOptions","concat","LANG","JS_GANTT_FILTER","maxRows","times","timeZoom","calendar","workingDays","title","label","JS_GANTT_TITLE","html","taskList","expander","straight","columns","id","app","vtranslate","width","task","duration","style","\"task-list-header-label\"","\"text-align\"","\"task-list-item-value-container\"","planned_duration","dynamicStyle","\"chart-expander-wrapper\"","\"line-height\"","\"chart-row-bar-polygon\"","stroke","\"stroke-width\"","fill","\"chart-row-progress-bar-outline\"","\"chart-days-highlight-rect\"","\"header-title\"","float","display","overflow","\"header-options\"","\"header-title--html\"","\"white-space\"","\"text-overflow\"","\"padding-left\"","\"letter-spacing\"","\"slot-header-beforeOptions\"","height","\"vertical-align\"","registerLanguage","loadProject","registerEvents","locale","langKey","weekdays","JS_SUNDAY","JS_MONDAY","JS_TUESDAY","JS_WEDNESDAY","JS_THURSDAY","JS_FRIDAY","JS_SATURDAY","weekdaysShort","JS_SUN","JS_MON","JS_TUE","JS_WED","JS_THU","JS_FRI","JS_SAT","weekdaysMin","months","JS_JANUARY","JS_FEBRUARY","JS_MARCH","JS_APRIL","JS_MAY","JS_JUNE","JS_JULY","JS_AUGUST","JS_SEPTEMBER","JS_OCTOBER","JS_NOVEMBER","JS_DECEMBER","monthsShort","JS_JAN","JS_FEB","JS_MAR","JS_APR","JS_JUN","JS_JUL","JS_AUG","JS_SEP","JS_OCT","JS_NOV","JS_DEC","ordinal","Now","JS_GANTT_NOW","\"X-Scale\"","JS_GANTT_ZOOM_X","\"Y-Scale\"","JS_GANTT_ZOOM_Y","\"Task list width\"","JS_GANTT_TASKLIST","\"Before/After\"","JS_GANTT_EXPAND","\"Display task list\"","JS_GANTT_TASKLIST_VISIBLE","filterProjectData","_this","tasks","allTasks","map","assign","_loop","moduleName","filter","status","hasOwnProperty","visibleLabels","module","indexOf","status_label","addIcons","icon","type","iconClass","resize","offsetTop","offset","top","contentHeight","maxHeight","ganttState","registerHeaderActions","_this2","on","preventDefault","showFiltersModal","ganttElastic","$emit","is","$watch","prop","addClass","removeClass","statuses","activeStatuses","closest","ev","stopPropagation","self","ganttApp","GanttElastic","mount","el","attr","data","ready","ganttElasticInstance","state","loadProjectFromAjax","params","progressInstance","jQuery","progressIndicator","blockInfo","enabled","onBlock","AppConnector","request","response","result","mode","reloadData","saveFilter","filterOptions","getStatusFromValue","_step","_iterator","errorLog","_this3","showModalHtml","headerIcon","body","Project","ProjectMilestone","ProjectTask","footerButtons","text","class","dismiss","cb","modal","val","hideModalWindow","_this4","tooltip","window","addEventListener"],"mappings":";;AAAA,kKACA,YAAY,CAAC,SAAAA,OAAAC,CAAAA,CAAA,mCAAAD,OAAA,CAAA,UAAA,EAAA,OAAAE,MAAA,EAAA,QAAA,EAAA,OAAAA,MAAA,CAAAC,QAAA,CAAAF,SAAAA,CAAA,CAAAA,CAAAA,OAAAA,OAAAA,CAAA,CAAAA,CAAAA,SAAAA,CAAA,CAAAA,CAAAA,OAAAA,CAAA,EAAAC,UAAAA,EAAAA,OAAAA,MAAA,EAAAD,CAAA,CAAAG,WAAA,GAAAF,MAAA,EAAAD,CAAA,GAAAC,MAAA,CAAAG,SAAA,CAAA,QAAA,CAAA,OAAAJ,CAAA,CAAA,CAAAD,OAAA,CAAAC,CAAA,CAAA,CAAA,SAAAK,2BAAAL,CAAA,CAAAM,cAAA,CAAA,CAAA,IAAAC,EAAA,CAAA,WAAA,EAAA,OAAAN,MAAA,EAAAD,CAAA,CAAAC,MAAA,CAAAC,QAAA,CAAA,EAAAF,CAAA,CAAAO,YAAAA,CAAAA,CAAAA,GAAAA,CAAAA,EAAA,CAAAC,CAAAA,GAAAA,K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