UNPKG

@syncfusion/ej2-vue-gantt

Version:
12 lines (11 loc) 18 kB
/*! * filename: ej2-vue-gantt.umd.min.js * version : 29.1.35 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-gantt"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-gantt","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2Gantt,e.ej2VueBase,e.ej2Base)}(this,function(t,n,o,a){"use strict";var i=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-columns"}}}),s={name:"e-columns",install:function(e){e.component(s.name,i)}},r=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-column"}}}),c={name:"e-column",install:function(e){e.component(c.name,r)}},l=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-add-dialog-fields"}}}),u={name:"e-add-dialog-fields",install:function(e){e.component(u.name,l)}},d=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-add-dialog-field"}}}),m={name:"e-add-dialog-field",install:function(e){e.component(m.name,d)}},f=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-edit-dialog-fields"}}}),h={name:"e-edit-dialog-fields",install:function(e){e.component(h.name,f)}},g=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-edit-dialog-field"}}}),p={name:"e-edit-dialog-field",install:function(e){e.component(p.name,g)}},I=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-day-working-time-collection"}}}),j={name:"e-day-working-time-collection",install:function(e){e.component(j.name,I)}},k=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-day-working-time"}}}),v={name:"e-day-working-time",install:function(e){e.component(v.name,k)}},D=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-week-working-times"}}}),C={name:"e-week-working-times",install:function(e){e.component(C.name,D)}},y=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-week-working-time"}}}),x={name:"e-week-working-time",install:function(e){e.component(x.name,y)}},T=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-holidays"}}}),w={name:"e-holidays",install:function(e){e.component(w.name,T)}},E=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-holidays"}}}),S={name:"e-holidays",install:function(e){e.component(S.name,E)}},b=o.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!o.isExecute)return t=null,(o.isExecute?e:o.gh)("div",{class:"e-directive"},t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!o.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-event-markers"}}}),P={name:"e-event-markers",install:function(e){e.component(P.name,b)}},R=o.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-event-marker"}}}),M={name:"e-event-marker",install:function(e){e.component(M.name,R)}},e=["isLazyUpdate","plugins","UpdateOffsetOnTaskbarEdit","addDialogFields","allowExcelExport","allowFiltering","allowKeyboard","allowParentDependency","allowPdfExport","allowReordering","allowResizing","allowRowDragAndDrop","allowSelection","allowSorting","allowTaskbarDragAndDrop","allowTaskbarOverlap","allowUnscheduledTasks","autoCalculateDateScheduling","autoFocusTasks","baselineColor","collapseAllParentTasks","columnMenuItems","columns","connectorLineBackground","connectorLineWidth","contextMenuItems","dataSource","dateFormat","dayWorkingTime","disableHtmlEncode","durationUnit","editDialogFields","editSettings","enableAdaptiveUI","enableContextMenu","enableCriticalPath","enableHtmlSanitizer","enableImmutableMode","enableMultiTaskbar","enablePersistence","enablePredecessorValidation","enableRtl","enableTimelineVirtualization","enableUndoRedo","enableVirtualMaskRow","enableVirtualization","eventMarkers","filterSettings","gridLines","height","highlightWeekends","holidays","includeWeekend","labelSettings","loadChildOnDemand","loadingIndicator","locale","milestoneTemplate","parentTaskbarTemplate","projectEndDate","projectStartDate","query","readOnly","renderBaseline","resourceFields","resourceIDMapping","resourceNameMapping","resources","rowHeight","searchSettings","segmentData","selectedRowIndex","selectionSettings","showColumnMenu","showInlineNotes","showOverAllocation","sortSettings","splitterSettings","taskFields","taskMode","taskType","taskbarHeight","taskbarTemplate","timelineSettings","timelineTemplate","timezone","toolbar","tooltipSettings","treeColumnIndex","undoRedoActions","undoRedoStepsCount","updateOffsetOnTaskbarEdit","validateManualTasksOnLinking","viewType","weekWorkingTime","width","workUnit","workWeek","zoomingLevels","actionBegin","actionComplete","actionFailure","beforeExcelExport","beforePdfExport","beforeTooltipRender","cellDeselected","cellDeselecting","cellEdit","cellSelected","cellSelecting","collapsed","collapsing","columnDrag","columnDragStart","columnDrop","columnMenuClick","columnMenuOpen","contextMenuClick","contextMenuOpen","created","dataBound","dataStateChange","destroyed","endEdit","excelExportComplete","excelHeaderQueryCellInfo","excelQueryCellInfo","expanded","expanding","headerCellInfo","load","onMouseMove","onTaskbarClick","pdfColumnHeaderQueryCellInfo","pdfExportComplete","pdfQueryCellInfo","pdfQueryTaskbarInfo","pdfQueryTimelineCellInfo","queryCellInfo","queryTaskbarInfo","recordDoubleClick","resizeStart","resizeStop","resizing","rowDataBound","rowDeselected","rowDeselecting","rowDrag","rowDragStart","rowDragStartHelper","rowDrop","rowSelected","rowSelecting","splitterResizeStart","splitterResized","splitterResizing","taskbarEdited","taskbarEditing","toolbarClick"],U=["dataSource"],$=o.getProps({props:e}),A=$[0],$=$[1],B=Object.keys($);B.push("modelchanged","update:modelValue");for(var O=0,F=U;O<F.length;O++)B.push("update:"+F[O]);var W=o.vueDefineComponent({name:"GanttComponent",mixins:[o.ComponentBase],props:A,watch:$,emits:B,model:{event:"modelchanged"},provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.Gantt({}),propKeys:e,models:U,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-columns":"e-column","e-add-dialog-fields":"e-add-dialog-field","e-edit-dialog-fields":"e-edit-dialog-field","e-day-working-time-collection":"e-day-working-time","e-week-working-times":"e-week-working-time","e-holidays":"e-holidays","e-event-markers":"e-event-marker"},tagNameMapper:{"e-add-dialog-fields":"e-addDialogFields","e-edit-dialog-fields":"e-editDialogFields","e-day-working-time-collection":"e-dayWorkingTime","e-week-working-times":"e-weekWorkingTime","e-event-markers":"e-eventMarkers"},isVue3:!o.isExecute,templateCollection:{}}},created:function(){this.ej2Instances._trigger=this.ej2Instances.trigger,this.ej2Instances.trigger=this.trigger,this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=null;return(o.isExecute?e:o.gh)("div",t=a.isNullOrUndefined(this.$slots.default)?t:o.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],s=this.templateCollection[i];if(s&&s.length){for(var o=0,a=s;o<a.length;o++){var r=a[o];this.destroyPortals(r)}delete this.templateCollection[i]}}},setProperties:function(n,e){var i=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){i.models.map(function(e){t!==e||/datasource/i.test(t)||(i.isVue3?i.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(i.$emit("update:"+t,n[t]),i.$emit("modelchanged",n[t])))})})},trigger:function(e,t,n){var i,s;o.isExecute||(this.models=this.models||this.ej2Instances.referModels),"change"!==e&&"input"!==e||!this.models||0===this.models.length?"actionBegin"===e&&"dateNavigate"===t.requestType&&this.models&&0!==this.models.length&&(s=(i=this.models.toString().match(/currentView|selectedDate/)||[])[0],t)&&i&&!a.isUndefined(t[s])&&(o.isExecute?(this.$emit("update:"+s,t[s]),this):(this.ej2Instances.vueInstance.$emit("update:"+s,t[s]),this.ej2Instances.vueInstance)).$emit("modelchanged",t[s]):(s=(i=this.models.toString().match(/checked|value/)||[])[0],t&&i&&!a.isUndefined(t[s])&&(o.isExecute?("change"===e||this.$props&&!this.$props.isLazyUpdate)&&(this.$emit("update:"+s,t[s]),this.$emit("modelchanged",t[s])):(this.ej2Instances.vueInstance.$emit("update:"+s,t[s]),this.ej2Instances.vueInstance.$emit("modelchanged",t[s]),this.ej2Instances.vueInstance.$emit("update:modelValue",t[s])))),this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t,n)},custom:function(){this.updated()},addPredecessor:function(e,t){return this.ej2Instances.addPredecessor(e,t)},addRecord:function(e,t,n){return this.ej2Instances.addRecord(e,t,n)},cancelEdit:function(){return this.ej2Instances.cancelEdit()},changeTaskMode:function(e){return this.ej2Instances.changeTaskMode(e)},clearFiltering:function(e){return this.ej2Instances.clearFiltering(e)},clearRedoCollection:function(){return this.ej2Instances.clearRedoCollection()},clearSelection:function(){return this.ej2Instances.clearSelection()},clearSorting:function(){return this.ej2Instances.clearSorting()},clearUndoCollection:function(){return this.ej2Instances.clearUndoCollection()},collapseAll:function(){return this.ej2Instances.collapseAll()},collapseByID:function(e){return this.ej2Instances.collapseByID(e)},collapseByIndex:function(e){return this.ej2Instances.collapseByIndex(e)},convertToMilestone:function(e){return this.ej2Instances.convertToMilestone(e)},csvExport:function(e,t,n,i){return this.ej2Instances.csvExport(e,t,n,i)},deleteRecord:function(e){return this.ej2Instances.deleteRecord(e)},enableItems:function(e,t){return this.ej2Instances.enableItems(e,t)},excelExport:function(e,t,n,i){return this.ej2Instances.excelExport(e,t,n,i)},expandAll:function(){return this.ej2Instances.expandAll()},expandByID:function(e){return this.ej2Instances.expandByID(e)},expandByIndex:function(e){return this.ej2Instances.expandByIndex(e)},filterByColumn:function(e,t,n,i,s,o){return this.ej2Instances.filterByColumn(e,t,n,i,s,o)},fitToProject:function(){return this.ej2Instances.fitToProject()},getCriticalTasks:function(){return this.ej2Instances.getCriticalTasks()},getDurationString:function(e,t){return this.ej2Instances.getDurationString(e,t)},getExpandedRecords:function(e){return this.ej2Instances.getExpandedRecords(e)},getFormatedDate:function(e,t){return this.ej2Instances.getFormatedDate(e,t)},getGanttColumns:function(){return this.ej2Instances.getGanttColumns()},getGridColumns:function(){return this.ej2Instances.getGridColumns()},getRecordByID:function(e){return this.ej2Instances.getRecordByID(e)},getRedoActions:function(){return this.ej2Instances.getRedoActions()},getRowByID:function(e){return this.ej2Instances.getRowByID(e)},getRowByIndex:function(e){return this.ej2Instances.getRowByIndex(e)},getTaskByUniqueID:function(e){return this.ej2Instances.getTaskByUniqueID(e)},getTaskbarHeight:function(){return this.ej2Instances.getTaskbarHeight()},getUndoActions:function(){return this.ej2Instances.getUndoActions()},getWorkString:function(e,t){return this.ej2Instances.getWorkString(e,t)},hideColumn:function(e,t){return this.ej2Instances.hideColumn(e,t)},hideMaskRow:function(){return this.ej2Instances.hideMaskRow()},hideSpinner:function(){return this.ej2Instances.hideSpinner()},indent:function(){return this.ej2Instances.indent()},keyActionHandler:function(e){return this.ej2Instances.keyActionHandler(e)},mergeTask:function(e,t){return this.ej2Instances.mergeTask(e,t)},nextTimeSpan:function(e){return this.ej2Instances.nextTimeSpan(e)},openAddDialog:function(){return this.ej2Instances.openAddDialog()},openEditDialog:function(e){return this.ej2Instances.openEditDialog(e)},outdent:function(){return this.ej2Instances.outdent()},pdfExport:function(e,t,n,i){return this.ej2Instances.pdfExport(e,t,n,i)},previousTimeSpan:function(e){return this.ej2Instances.previousTimeSpan(e)},redo:function(){return this.ej2Instances.redo()},removeCriticalPathStyles:function(){return this.ej2Instances.removeCriticalPathStyles()},removePredecessor:function(e){return this.ej2Instances.removePredecessor(e)},removeSortColumn:function(e){return this.ej2Instances.removeSortColumn(e)},reorderColumns:function(e,t){return this.ej2Instances.reorderColumns(e,t)},reorderRows:function(e,t,n){return this.ej2Instances.reorderRows(e,t,n)},scrollToDate:function(e){return this.ej2Instances.scrollToDate(e)},scrollToTask:function(e){return this.ej2Instances.scrollToTask(e)},search:function(e){return this.ej2Instances.search(e)},selectCell:function(e,t){return this.ej2Instances.selectCell(e,t)},selectCells:function(e){return this.ej2Instances.selectCells(e)},selectRow:function(e,t){return this.ej2Instances.selectRow(e,t)},selectRows:function(e){return this.ej2Instances.selectRows(e)},setScrollTop:function(e){return this.ej2Instances.setScrollTop(e)},setSplitterPosition:function(e,t){return this.ej2Instances.setSplitterPosition(e,t)},showColumn:function(e,t){return this.ej2Instances.showColumn(e,t)},showCriticalPath:function(e){return this.ej2Instances.showCriticalPath(e)},showMaskRow:function(){return this.ej2Instances.showMaskRow()},showSpinner:function(){return this.ej2Instances.showSpinner()},sortColumn:function(e,t,n){return this.ej2Instances.sortColumn(e,t,n)},splitTask:function(e,t){return this.ej2Instances.splitTask(e,t)},undo:function(){return this.ej2Instances.undo()},updateChartScrollOffset:function(e,t){return this.ej2Instances.updateChartScrollOffset(e,t)},updateDataSource:function(e,t){return this.ej2Instances.updateDataSource(e,t)},updatePredecessor:function(e,t){return this.ej2Instances.updatePredecessor(e,t)},updateProjectDates:function(e,t,n,i){return this.ej2Instances.updateProjectDates(e,t,n,i)},updateRecordByID:function(e){return this.ej2Instances.updateRecordByID(e)},updateRecordByIndex:function(e,t){return this.ej2Instances.updateRecordByIndex(e,t)},updateTaskId:function(e,t){return this.ej2Instances.updateTaskId(e,t)},zoomIn:function(){return this.ej2Instances.zoomIn()},zoomOut:function(){return this.ej2Instances.zoomOut()}}}),z={name:"ejs-gantt",install:function(e){e.component(z.name,W),e.component(c.name,r),e.component(s.name,i),e.component(m.name,d),e.component(u.name,l),e.component(p.name,g),e.component(h.name,f),e.component(v.name,k),e.component(j.name,I),e.component(x.name,y),e.component(C.name,D),e.component(S.name,E),e.component(w.name,T),e.component(M.name,R),e.component(P.name,b)}};Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),t.AddDialogFieldDirective=d,t.AddDialogFieldPlugin=m,t.AddDialogFieldsDirective=l,t.AddDialogFieldsPlugin=u,t.ColumnDirective=r,t.ColumnPlugin=c,t.ColumnsDirective=i,t.ColumnsPlugin=s,t.DayWorkingTimeCollectionDirective=I,t.DayWorkingTimeCollectionPlugin=j,t.DayWorkingTimeDirective=k,t.DayWorkingTimePlugin=v,t.EditDialogFieldDirective=g,t.EditDialogFieldPlugin=p,t.EditDialogFieldsDirective=f,t.EditDialogFieldsPlugin=h,t.EventMarkerDirective=R,t.EventMarkerPlugin=M,t.EventMarkersDirective=b,t.EventMarkersPlugin=P,t.GanttComponent=W,t.GanttPlugin=z,t.HolidayDirective=E,t.HolidayPlugin=S,t.HolidaysDirective=T,t.HolidaysPlugin=w,t.WeekWorkingTimeDirective=y,t.WeekWorkingTimePlugin=x,t.WeekWorkingTimesDirective=D,t.WeekWorkingTimesPlugin=C,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=ej2-vue-gantt.umd.min.js.map