jqwidgets-ng
Version:
[](https://jqwidgets.com/license/)
1,254 lines (1,252 loc) • 56.2 kB
JavaScript
import '../jqwidgets/jqxcore';
if (!window['JQX']) {
window['JQX'] = { RenderMode: 'manual' };
}
else {
window['JQX'].RenderMode = 'manual';
}
import '../jqwidgets/jqxgantt.api';
import '../jqwidgets/jqxgantt';
import * as i0 from '@angular/core';
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
/// <reference path="../../jqwidgets.d.ts" />
class jqxGanttComponent {
constructor(containerElement) {
this.autoCreate = true;
this.properties = ['adjustToNonworkingTime', 'autoSchedule', 'autoScheduleStrictMode', 'autoScrollStep', 'columnMenu', 'columnMinWidth', 'columnResize', 'columnResizeFeedback', 'currentTime', 'currentTimeIndicator', 'currentTimeIndicatorInterval', 'dataExportFileName', 'source', 'dayFormat', 'dateEnd', 'dateStart', 'dateMarkers', 'disabled', 'disableAutoScroll', 'disableTaskDrag', 'disableTaskProgressChange', 'disableTaskResize', 'disableSelection', 'disableSegmentDrag', 'disableSegmentResize', 'disableWindowEditor', 'durationUnit', 'filterRow', 'firstDayOfWeek', 'groupByResources', 'headerTemplate', 'hideDateMarkers', 'hideTimelineHeader', 'hideTimelineHeaderDetails', 'hideTimelineSecondHeaderDetails', 'hideResourcePanel', 'horizontalScrollBarVisibility', 'hourFormat', 'infiniteTimeline', 'infiniteTimelineStep', 'inverted', 'keyboardNavigation', 'max', 'min', 'monthFormat', 'monthScale', 'nonworkingDays', 'nonworkingHours', 'onTaskRender', 'popupWindowCustomizationFunction', 'popupWindowTabs', 'progressLabelFormatFunction', 'quarterFormat', 'resources', 'resourceColumns', 'resourceFiltering', 'resourceGroupFormatFunction', 'resourcePanelHeaderTemplate', 'resourcePanelMin', 'resourcePanelSize', 'resourcePanelRefreshRate', 'resourceTimelineFormatFunction', 'resourceTimelineMode', 'resourceTimelineView', 'rightToLeft', 'selectedTaskIds', 'selectedResourceIds', 'shadeUntilCurrentTime', 'showSelectionColumn', 'showBaseline', 'showProgressLabel', 'snapToNearest', 'sortFunction', 'sortMode', 'tasks', 'taskColumns', 'taskFiltering', 'taskPanelMin', 'taskPanelSize', 'timelineMin', 'treeMin', 'treeSize', 'timelineHeaderFormatFunction', 'tooltip', 'verticalScrollBarVisibility', 'view', 'yearFormat', 'weekFormat', 'theme'];
// jqxGanttComponent events
this.onBeginUpdate = new EventEmitter();
this.onEndUpdate = new EventEmitter();
this.onConnectionStart = new EventEmitter();
this.onConnectionEnd = new EventEmitter();
this.onChange = new EventEmitter();
this.onColumnResize = new EventEmitter();
this.onClosing = new EventEmitter();
this.onClose = new EventEmitter();
this.onCollapse = new EventEmitter();
this.onDragStart = new EventEmitter();
this.onDragEnd = new EventEmitter();
this.onExpand = new EventEmitter();
this.onFilter = new EventEmitter();
this.onItemClick = new EventEmitter();
this.onItemInsert = new EventEmitter();
this.onItemRemove = new EventEmitter();
this.onItemUpdate = new EventEmitter();
this.onOpening = new EventEmitter();
this.onOpen = new EventEmitter();
this.onProgressChangeStart = new EventEmitter();
this.onProgressChangeEnd = new EventEmitter();
this.onResizeStart = new EventEmitter();
this.onResizeEnd = new EventEmitter();
this.onSort = new EventEmitter();
this.onScrollBottomReached = new EventEmitter();
this.onScrollTopReached = new EventEmitter();
this.onScrollLeftReached = new EventEmitter();
this.onScrollRightReached = new EventEmitter();
this.elementRef = containerElement;
JQXLite(window).resize(() => {
this.__updateRect__();
});
}
ngOnInit() {
if (this.autoCreate) {
this.createComponent();
}
}
;
ngAfterViewInit() {
window['JQX'].Render();
}
;
ngOnChanges(changes) {
if (this.host) {
for (let i = 0; i < this.properties.length; i++) {
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
let areEqual = false;
if (this[attrName] !== undefined) {
if (typeof this[attrName] === 'object') {
if (this[attrName] instanceof Array) {
areEqual = this.arraysEqual(this[attrName], this.host.jqxGantt(this.properties[i]));
}
if (areEqual) {
return false;
}
this.host.jqxGantt(this.properties[i], this[attrName]);
continue;
}
if (this[attrName] !== this.host.jqxGantt(this.properties[i])) {
this.host.jqxGantt(this.properties[i], this[attrName]);
}
}
}
}
}
arraysEqual(attrValue, hostValue) {
if ((attrValue && !hostValue) || (!attrValue && hostValue)) {
return false;
}
if (attrValue.length != hostValue.length) {
return false;
}
for (let i = 0; i < attrValue.length; i++) {
if (attrValue[i] !== hostValue[i]) {
return false;
}
}
return true;
}
manageAttributes() {
let options = {};
for (let i = 0; i < this.properties.length; i++) {
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
if (this[attrName] !== undefined) {
options[this.properties[i]] = this[attrName];
}
}
return options;
}
moveClasses(parentEl, childEl) {
let classes = parentEl.classList;
if (classes.length > 0) {
childEl.classList.add(...classes);
}
parentEl.className = '';
}
moveStyles(parentEl, childEl) {
let style = parentEl.style.cssText;
childEl.style.cssText = style;
parentEl.style.cssText = '';
}
createComponent(options) {
if (this.host) {
return;
}
if (options) {
JQXLite.extend(options, this.manageAttributes());
}
else {
options = this.manageAttributes();
}
this.host = JQXLite(this.elementRef.nativeElement.firstChild);
this.moveClasses(this.elementRef.nativeElement, this.host[0]);
this.moveStyles(this.elementRef.nativeElement, this.host[0]);
this.__wireEvents__();
this.widgetObject = jqwidgets.createInstance(this.host, 'jqxGantt', options);
this.__updateRect__();
}
createWidget(options) {
this.createComponent(options);
}
__updateRect__() {
if (this.host)
this.host.css({ width: this.attrWidth, height: this.attrHeight });
}
setOptions(options) {
this.host.jqxGantt('setOptions', options);
}
// jqxGanttComponent properties
adjustToNonworkingTime(arg) {
if (arg !== undefined) {
this.host.jqxGantt('adjustToNonworkingTime', arg);
}
else {
return this.host.jqxGantt('adjustToNonworkingTime');
}
}
autoSchedule(arg) {
if (arg !== undefined) {
this.host.jqxGantt('autoSchedule', arg);
}
else {
return this.host.jqxGantt('autoSchedule');
}
}
autoScheduleStrictMode(arg) {
if (arg !== undefined) {
this.host.jqxGantt('autoScheduleStrictMode', arg);
}
else {
return this.host.jqxGantt('autoScheduleStrictMode');
}
}
autoScrollStep(arg) {
if (arg !== undefined) {
this.host.jqxGantt('autoScrollStep', arg);
}
else {
return this.host.jqxGantt('autoScrollStep');
}
}
columnMenu(arg) {
if (arg !== undefined) {
this.host.jqxGantt('columnMenu', arg);
}
else {
return this.host.jqxGantt('columnMenu');
}
}
columnMinWidth(arg) {
if (arg !== undefined) {
this.host.jqxGantt('columnMinWidth', arg);
}
else {
return this.host.jqxGantt('columnMinWidth');
}
}
columnResize(arg) {
if (arg !== undefined) {
this.host.jqxGantt('columnResize', arg);
}
else {
return this.host.jqxGantt('columnResize');
}
}
columnResizeFeedback(arg) {
if (arg !== undefined) {
this.host.jqxGantt('columnResizeFeedback', arg);
}
else {
return this.host.jqxGantt('columnResizeFeedback');
}
}
currentTime(arg) {
if (arg !== undefined) {
this.host.jqxGantt('currentTime', arg);
}
else {
return this.host.jqxGantt('currentTime');
}
}
currentTimeIndicator(arg) {
if (arg !== undefined) {
this.host.jqxGantt('currentTimeIndicator', arg);
}
else {
return this.host.jqxGantt('currentTimeIndicator');
}
}
currentTimeIndicatorInterval(arg) {
if (arg !== undefined) {
this.host.jqxGantt('currentTimeIndicatorInterval', arg);
}
else {
return this.host.jqxGantt('currentTimeIndicatorInterval');
}
}
dataExportFileName(arg) {
if (arg !== undefined) {
this.host.jqxGantt('dataExportFileName', arg);
}
else {
return this.host.jqxGantt('dataExportFileName');
}
}
source(arg) {
if (arg !== undefined) {
this.host.jqxGantt('source', arg);
}
else {
return this.host.jqxGantt('source');
}
}
dayFormat(arg) {
if (arg !== undefined) {
this.host.jqxGantt('dayFormat', arg);
}
else {
return this.host.jqxGantt('dayFormat');
}
}
dateEnd(arg) {
if (arg !== undefined) {
this.host.jqxGantt('dateEnd', arg);
}
else {
return this.host.jqxGantt('dateEnd');
}
}
dateStart(arg) {
if (arg !== undefined) {
this.host.jqxGantt('dateStart', arg);
}
else {
return this.host.jqxGantt('dateStart');
}
}
dateMarkers(arg) {
if (arg !== undefined) {
this.host.jqxGantt('dateMarkers', arg);
}
else {
return this.host.jqxGantt('dateMarkers');
}
}
disabled(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disabled', arg);
}
else {
return this.host.jqxGantt('disabled');
}
}
disableAutoScroll(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableAutoScroll', arg);
}
else {
return this.host.jqxGantt('disableAutoScroll');
}
}
disableTaskDrag(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableTaskDrag', arg);
}
else {
return this.host.jqxGantt('disableTaskDrag');
}
}
disableTaskProgressChange(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableTaskProgressChange', arg);
}
else {
return this.host.jqxGantt('disableTaskProgressChange');
}
}
disableTaskResize(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableTaskResize', arg);
}
else {
return this.host.jqxGantt('disableTaskResize');
}
}
disableSelection(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableSelection', arg);
}
else {
return this.host.jqxGantt('disableSelection');
}
}
disableSegmentDrag(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableSegmentDrag', arg);
}
else {
return this.host.jqxGantt('disableSegmentDrag');
}
}
disableSegmentResize(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableSegmentResize', arg);
}
else {
return this.host.jqxGantt('disableSegmentResize');
}
}
disableWindowEditor(arg) {
if (arg !== undefined) {
this.host.jqxGantt('disableWindowEditor', arg);
}
else {
return this.host.jqxGantt('disableWindowEditor');
}
}
durationUnit(arg) {
if (arg !== undefined) {
this.host.jqxGantt('durationUnit', arg);
}
else {
return this.host.jqxGantt('durationUnit');
}
}
filterRow(arg) {
if (arg !== undefined) {
this.host.jqxGantt('filterRow', arg);
}
else {
return this.host.jqxGantt('filterRow');
}
}
firstDayOfWeek(arg) {
if (arg !== undefined) {
this.host.jqxGantt('firstDayOfWeek', arg);
}
else {
return this.host.jqxGantt('firstDayOfWeek');
}
}
groupByResources(arg) {
if (arg !== undefined) {
this.host.jqxGantt('groupByResources', arg);
}
else {
return this.host.jqxGantt('groupByResources');
}
}
headerTemplate(arg) {
if (arg !== undefined) {
this.host.jqxGantt('headerTemplate', arg);
}
else {
return this.host.jqxGantt('headerTemplate');
}
}
hideDateMarkers(arg) {
if (arg !== undefined) {
this.host.jqxGantt('hideDateMarkers', arg);
}
else {
return this.host.jqxGantt('hideDateMarkers');
}
}
hideTimelineHeader(arg) {
if (arg !== undefined) {
this.host.jqxGantt('hideTimelineHeader', arg);
}
else {
return this.host.jqxGantt('hideTimelineHeader');
}
}
hideTimelineHeaderDetails(arg) {
if (arg !== undefined) {
this.host.jqxGantt('hideTimelineHeaderDetails', arg);
}
else {
return this.host.jqxGantt('hideTimelineHeaderDetails');
}
}
hideTimelineSecondHeaderDetails(arg) {
if (arg !== undefined) {
this.host.jqxGantt('hideTimelineSecondHeaderDetails', arg);
}
else {
return this.host.jqxGantt('hideTimelineSecondHeaderDetails');
}
}
hideResourcePanel(arg) {
if (arg !== undefined) {
this.host.jqxGantt('hideResourcePanel', arg);
}
else {
return this.host.jqxGantt('hideResourcePanel');
}
}
horizontalScrollBarVisibility(arg) {
if (arg !== undefined) {
this.host.jqxGantt('horizontalScrollBarVisibility', arg);
}
else {
return this.host.jqxGantt('horizontalScrollBarVisibility');
}
}
hourFormat(arg) {
if (arg !== undefined) {
this.host.jqxGantt('hourFormat', arg);
}
else {
return this.host.jqxGantt('hourFormat');
}
}
infiniteTimeline(arg) {
if (arg !== undefined) {
this.host.jqxGantt('infiniteTimeline', arg);
}
else {
return this.host.jqxGantt('infiniteTimeline');
}
}
infiniteTimelineStep(arg) {
if (arg !== undefined) {
this.host.jqxGantt('infiniteTimelineStep', arg);
}
else {
return this.host.jqxGantt('infiniteTimelineStep');
}
}
inverted(arg) {
if (arg !== undefined) {
this.host.jqxGantt('inverted', arg);
}
else {
return this.host.jqxGantt('inverted');
}
}
keyboardNavigation(arg) {
if (arg !== undefined) {
this.host.jqxGantt('keyboardNavigation', arg);
}
else {
return this.host.jqxGantt('keyboardNavigation');
}
}
max(arg) {
if (arg !== undefined) {
this.host.jqxGantt('max', arg);
}
else {
return this.host.jqxGantt('max');
}
}
min(arg) {
if (arg !== undefined) {
this.host.jqxGantt('min', arg);
}
else {
return this.host.jqxGantt('min');
}
}
monthFormat(arg) {
if (arg !== undefined) {
this.host.jqxGantt('monthFormat', arg);
}
else {
return this.host.jqxGantt('monthFormat');
}
}
monthScale(arg) {
if (arg !== undefined) {
this.host.jqxGantt('monthScale', arg);
}
else {
return this.host.jqxGantt('monthScale');
}
}
nonworkingDays(arg) {
if (arg !== undefined) {
this.host.jqxGantt('nonworkingDays', arg);
}
else {
return this.host.jqxGantt('nonworkingDays');
}
}
nonworkingHours(arg) {
if (arg !== undefined) {
this.host.jqxGantt('nonworkingHours', arg);
}
else {
return this.host.jqxGantt('nonworkingHours');
}
}
onTaskRender(arg) {
if (arg !== undefined) {
this.host.jqxGantt('onTaskRender', arg);
}
else {
return this.host.jqxGantt('onTaskRender');
}
}
popupWindowCustomizationFunction(arg) {
if (arg !== undefined) {
this.host.jqxGantt('popupWindowCustomizationFunction', arg);
}
else {
return this.host.jqxGantt('popupWindowCustomizationFunction');
}
}
popupWindowTabs(arg) {
if (arg !== undefined) {
this.host.jqxGantt('popupWindowTabs', arg);
}
else {
return this.host.jqxGantt('popupWindowTabs');
}
}
progressLabelFormatFunction(arg) {
if (arg !== undefined) {
this.host.jqxGantt('progressLabelFormatFunction', arg);
}
else {
return this.host.jqxGantt('progressLabelFormatFunction');
}
}
quarterFormat(arg) {
if (arg !== undefined) {
this.host.jqxGantt('quarterFormat', arg);
}
else {
return this.host.jqxGantt('quarterFormat');
}
}
resources(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resources', arg);
}
else {
return this.host.jqxGantt('resources');
}
}
resourceColumns(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourceColumns', arg);
}
else {
return this.host.jqxGantt('resourceColumns');
}
}
resourceFiltering(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourceFiltering', arg);
}
else {
return this.host.jqxGantt('resourceFiltering');
}
}
resourceGroupFormatFunction(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourceGroupFormatFunction', arg);
}
else {
return this.host.jqxGantt('resourceGroupFormatFunction');
}
}
resourcePanelHeaderTemplate(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourcePanelHeaderTemplate', arg);
}
else {
return this.host.jqxGantt('resourcePanelHeaderTemplate');
}
}
resourcePanelMin(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourcePanelMin', arg);
}
else {
return this.host.jqxGantt('resourcePanelMin');
}
}
resourcePanelSize(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourcePanelSize', arg);
}
else {
return this.host.jqxGantt('resourcePanelSize');
}
}
resourcePanelRefreshRate(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourcePanelRefreshRate', arg);
}
else {
return this.host.jqxGantt('resourcePanelRefreshRate');
}
}
resourceTimelineFormatFunction(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourceTimelineFormatFunction', arg);
}
else {
return this.host.jqxGantt('resourceTimelineFormatFunction');
}
}
resourceTimelineMode(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourceTimelineMode', arg);
}
else {
return this.host.jqxGantt('resourceTimelineMode');
}
}
resourceTimelineView(arg) {
if (arg !== undefined) {
this.host.jqxGantt('resourceTimelineView', arg);
}
else {
return this.host.jqxGantt('resourceTimelineView');
}
}
rightToLeft(arg) {
if (arg !== undefined) {
this.host.jqxGantt('rightToLeft', arg);
}
else {
return this.host.jqxGantt('rightToLeft');
}
}
selectedTaskIds(arg) {
if (arg !== undefined) {
this.host.jqxGantt('selectedTaskIds', arg);
}
else {
return this.host.jqxGantt('selectedTaskIds');
}
}
selectedResourceIds(arg) {
if (arg !== undefined) {
this.host.jqxGantt('selectedResourceIds', arg);
}
else {
return this.host.jqxGantt('selectedResourceIds');
}
}
shadeUntilCurrentTime(arg) {
if (arg !== undefined) {
this.host.jqxGantt('shadeUntilCurrentTime', arg);
}
else {
return this.host.jqxGantt('shadeUntilCurrentTime');
}
}
showSelectionColumn(arg) {
if (arg !== undefined) {
this.host.jqxGantt('showSelectionColumn', arg);
}
else {
return this.host.jqxGantt('showSelectionColumn');
}
}
showBaseline(arg) {
if (arg !== undefined) {
this.host.jqxGantt('showBaseline', arg);
}
else {
return this.host.jqxGantt('showBaseline');
}
}
showProgressLabel(arg) {
if (arg !== undefined) {
this.host.jqxGantt('showProgressLabel', arg);
}
else {
return this.host.jqxGantt('showProgressLabel');
}
}
snapToNearest(arg) {
if (arg !== undefined) {
this.host.jqxGantt('snapToNearest', arg);
}
else {
return this.host.jqxGantt('snapToNearest');
}
}
sortFunction(arg) {
if (arg !== undefined) {
this.host.jqxGantt('sortFunction', arg);
}
else {
return this.host.jqxGantt('sortFunction');
}
}
sortMode(arg) {
if (arg !== undefined) {
this.host.jqxGantt('sortMode', arg);
}
else {
return this.host.jqxGantt('sortMode');
}
}
tasks(arg) {
if (arg !== undefined) {
this.host.jqxGantt('tasks', arg);
}
else {
return this.host.jqxGantt('tasks');
}
}
taskColumns(arg) {
if (arg !== undefined) {
this.host.jqxGantt('taskColumns', arg);
}
else {
return this.host.jqxGantt('taskColumns');
}
}
taskFiltering(arg) {
if (arg !== undefined) {
this.host.jqxGantt('taskFiltering', arg);
}
else {
return this.host.jqxGantt('taskFiltering');
}
}
taskPanelMin(arg) {
if (arg !== undefined) {
this.host.jqxGantt('taskPanelMin', arg);
}
else {
return this.host.jqxGantt('taskPanelMin');
}
}
taskPanelSize(arg) {
if (arg !== undefined) {
this.host.jqxGantt('taskPanelSize', arg);
}
else {
return this.host.jqxGantt('taskPanelSize');
}
}
timelineMin(arg) {
if (arg !== undefined) {
this.host.jqxGantt('timelineMin', arg);
}
else {
return this.host.jqxGantt('timelineMin');
}
}
treeMin(arg) {
if (arg !== undefined) {
this.host.jqxGantt('treeMin', arg);
}
else {
return this.host.jqxGantt('treeMin');
}
}
treeSize(arg) {
if (arg !== undefined) {
this.host.jqxGantt('treeSize', arg);
}
else {
return this.host.jqxGantt('treeSize');
}
}
timelineHeaderFormatFunction(arg) {
if (arg !== undefined) {
this.host.jqxGantt('timelineHeaderFormatFunction', arg);
}
else {
return this.host.jqxGantt('timelineHeaderFormatFunction');
}
}
tooltip(arg) {
if (arg !== undefined) {
this.host.jqxGantt('tooltip', arg);
}
else {
return this.host.jqxGantt('tooltip');
}
}
verticalScrollBarVisibility(arg) {
if (arg !== undefined) {
this.host.jqxGantt('verticalScrollBarVisibility', arg);
}
else {
return this.host.jqxGantt('verticalScrollBarVisibility');
}
}
view(arg) {
if (arg !== undefined) {
this.host.jqxGantt('view', arg);
}
else {
return this.host.jqxGantt('view');
}
}
yearFormat(arg) {
if (arg !== undefined) {
this.host.jqxGantt('yearFormat', arg);
}
else {
return this.host.jqxGantt('yearFormat');
}
}
weekFormat(arg) {
if (arg !== undefined) {
this.host.jqxGantt('weekFormat', arg);
}
else {
return this.host.jqxGantt('weekFormat');
}
}
theme(arg) {
if (arg !== undefined) {
this.host.jqxGantt('theme', arg);
}
else {
return this.host.jqxGantt('theme');
}
}
// jqxGanttComponent functions
addFilter(columns, filterGroup) {
this.host.jqxGantt('addFilter', columns, filterGroup);
}
clearFilters() {
this.host.jqxGantt('clearFilters');
}
clearSort() {
this.host.jqxGantt('clearSort');
}
clearSelection() {
this.host.jqxGantt('clearSelection');
}
clearState() {
this.host.jqxGantt('clearState');
}
clearTasks() {
this.host.jqxGantt('clearTasks');
}
clearResources() {
this.host.jqxGantt('clearResources');
}
createConnection(startTaskIndex, taskEndIndex, connectionType, lag) {
this.host.jqxGantt('createConnection', startTaskIndex, taskEndIndex, connectionType, lag);
}
collapse(id) {
this.host.jqxGantt('collapse', id);
}
beginUpdate() {
this.host.jqxGantt('beginUpdate');
}
endUpdate() {
this.host.jqxGantt('endUpdate');
}
ensureVisible(taskId) {
this.host.jqxGantt('ensureVisible', taskId);
}
expand(id) {
this.host.jqxGantt('expand', id);
}
exportData(dataFormat, callback) {
this.host.jqxGantt('exportData', dataFormat, callback);
}
getConnections() {
return this.host.jqxGantt('getConnections');
}
getConnectionDetails(connectionId) {
return this.host.jqxGantt('getConnectionDetails', connectionId);
}
getState() {
return this.host.jqxGantt('getState');
}
getItemPath(item) {
return this.host.jqxGantt('getItemPath', item);
}
getTask(itemId) {
return this.host.jqxGantt('getTask', itemId);
}
getTasks() {
return this.host.jqxGantt('getTasks');
}
getTaskIndex(task) {
return this.host.jqxGantt('getTaskIndex', task);
}
getTaskConnections(taskId) {
return this.host.jqxGantt('getTaskConnections', taskId);
}
getTaskProject(task) {
return this.host.jqxGantt('getTaskProject', task);
}
getResource(itemId) {
return this.host.jqxGantt('getResource', itemId);
}
getResources() {
return this.host.jqxGantt('getResources');
}
getResourceIndex(resource) {
return this.host.jqxGantt('getResourceIndex', resource);
}
getResourceTasks(resource) {
return this.host.jqxGantt('getResourceTasks', resource);
}
getSelectedIds() {
return this.host.jqxGantt('getSelectedIds');
}
getSelectedTasks() {
return this.host.jqxGantt('getSelectedTasks');
}
getSelectedResources() {
return this.host.jqxGantt('getSelectedResources');
}
getWorkingHours() {
return this.host.jqxGantt('getWorkingHours');
}
hideTooltip() {
return this.host.jqxGantt('hideTooltip');
}
isWorkingDay(date) {
this.host.jqxGantt('isWorkingDay', date);
}
loadState(state) {
this.host.jqxGantt('loadState', state);
}
removeAllConnections() {
this.host.jqxGantt('removeAllConnections');
}
removeConnection(startTaskIndex, taskEndIndex, connectionType) {
return this.host.jqxGantt('removeConnection', startTaskIndex, taskEndIndex, connectionType);
}
removeTaskConnection(taskStart, taskEnd) {
this.host.jqxGantt('removeTaskConnection', taskStart, taskEnd);
}
showTooltip(target, content) {
this.host.jqxGantt('showTooltip', target, content);
}
saveState(state) {
this.host.jqxGantt('saveState', state);
}
insertTask(taskObject, project, index) {
return this.host.jqxGantt('insertTask', taskObject, project, index);
}
updateTask(taskId, taskObject) {
this.host.jqxGantt('updateTask', taskId, taskObject);
}
removeTask(taskId) {
this.host.jqxGantt('removeTask', taskId);
}
insertResource(resourceId, resourceObject) {
this.host.jqxGantt('insertResource', resourceId, resourceObject);
}
updateResource(resourceId, taskObject) {
this.host.jqxGantt('updateResource', resourceId, taskObject);
}
removeResource(resourceId) {
this.host.jqxGantt('removeResource', resourceId);
}
openWindow(taskId) {
this.host.jqxGantt('openWindow', taskId);
}
closeWindow() {
this.host.jqxGantt('closeWindow');
}
print() {
this.host.jqxGantt('print');
}
setWorkTime(settings) {
this.host.jqxGantt('setWorkTime', settings);
}
selectTask(id) {
this.host.jqxGantt('selectTask', id);
}
selectResource(id) {
this.host.jqxGantt('selectResource', id);
}
unselectTask(id) {
this.host.jqxGantt('unselectTask', id);
}
unselectResource(id) {
this.host.jqxGantt('unselectResource', id);
}
unsetWorkTime(settings) {
this.host.jqxGantt('unsetWorkTime', settings);
}
sort(columns) {
this.host.jqxGantt('sort', columns);
}
__wireEvents__() {
this.host.on('beginUpdate', (eventData) => { this.onBeginUpdate.emit(eventData); });
this.host.on('endUpdate', (eventData) => { this.onEndUpdate.emit(eventData); });
this.host.on('connectionStart', (eventData) => { this.onConnectionStart.emit(eventData); });
this.host.on('connectionEnd', (eventData) => { this.onConnectionEnd.emit(eventData); });
this.host.on('change', (eventData) => { this.onChange.emit(eventData); });
this.host.on('columnResize', (eventData) => { this.onColumnResize.emit(eventData); });
this.host.on('closing', (eventData) => { this.onClosing.emit(eventData); });
this.host.on('close', (eventData) => { this.onClose.emit(eventData); });
this.host.on('collapse', (eventData) => { this.onCollapse.emit(eventData); });
this.host.on('dragStart', (eventData) => { this.onDragStart.emit(eventData); });
this.host.on('dragEnd', (eventData) => { this.onDragEnd.emit(eventData); });
this.host.on('expand', (eventData) => { this.onExpand.emit(eventData); });
this.host.on('filter', (eventData) => { this.onFilter.emit(eventData); });
this.host.on('itemClick', (eventData) => { this.onItemClick.emit(eventData); });
this.host.on('itemInsert', (eventData) => { this.onItemInsert.emit(eventData); });
this.host.on('itemRemove', (eventData) => { this.onItemRemove.emit(eventData); });
this.host.on('itemUpdate', (eventData) => { this.onItemUpdate.emit(eventData); });
this.host.on('opening', (eventData) => { this.onOpening.emit(eventData); });
this.host.on('open', (eventData) => { this.onOpen.emit(eventData); });
this.host.on('progressChangeStart', (eventData) => { this.onProgressChangeStart.emit(eventData); });
this.host.on('progressChangeEnd', (eventData) => { this.onProgressChangeEnd.emit(eventData); });
this.host.on('resizeStart', (eventData) => { this.onResizeStart.emit(eventData); });
this.host.on('resizeEnd', (eventData) => { this.onResizeEnd.emit(eventData); });
this.host.on('sort', (eventData) => { this.onSort.emit(eventData); });
this.host.on('scrollBottomReached', (eventData) => { this.onScrollBottomReached.emit(eventData); });
this.host.on('scrollTopReached', (eventData) => { this.onScrollTopReached.emit(eventData); });
this.host.on('scrollLeftReached', (eventData) => { this.onScrollLeftReached.emit(eventData); });
this.host.on('scrollRightReached', (eventData) => { this.onScrollRightReached.emit(eventData); });
}
} //jqxGanttComponent
jqxGanttComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxGanttComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
jqxGanttComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: jqxGanttComponent, selector: "jqxGantt", inputs: { attrAdjustToNonworkingTime: ["adjustToNonworkingTime", "attrAdjustToNonworkingTime"], attrAutoSchedule: ["autoSchedule", "attrAutoSchedule"], attrAutoScheduleStrictMode: ["autoScheduleStrictMode", "attrAutoScheduleStrictMode"], attrAutoScrollStep: ["autoScrollStep", "attrAutoScrollStep"], attrColumnMenu: ["columnMenu", "attrColumnMenu"], attrColumnMinWidth: ["columnMinWidth", "attrColumnMinWidth"], attrColumnResize: ["columnResize", "attrColumnResize"], attrColumnResizeFeedback: ["columnResizeFeedback", "attrColumnResizeFeedback"], attrCurrentTime: ["currentTime", "attrCurrentTime"], attrCurrentTimeIndicator: ["currentTimeIndicator", "attrCurrentTimeIndicator"], attrCurrentTimeIndicatorInterval: ["currentTimeIndicatorInterval", "attrCurrentTimeIndicatorInterval"], attrDataExportFileName: ["dataExportFileName", "attrDataExportFileName"], attrSource: ["source", "attrSource"], attrDayFormat: ["dayFormat", "attrDayFormat"], attrDateEnd: ["dateEnd", "attrDateEnd"], attrDateStart: ["dateStart", "attrDateStart"], attrDateMarkers: ["dateMarkers", "attrDateMarkers"], attrDisabled: ["disabled", "attrDisabled"], attrDisableAutoScroll: ["disableAutoScroll", "attrDisableAutoScroll"], attrDisableTaskDrag: ["disableTaskDrag", "attrDisableTaskDrag"], attrDisableTaskProgressChange: ["disableTaskProgressChange", "attrDisableTaskProgressChange"], attrDisableTaskResize: ["disableTaskResize", "attrDisableTaskResize"], attrDisableSelection: ["disableSelection", "attrDisableSelection"], attrDisableSegmentDrag: ["disableSegmentDrag", "attrDisableSegmentDrag"], attrDisableSegmentResize: ["disableSegmentResize", "attrDisableSegmentResize"], attrDisableWindowEditor: ["disableWindowEditor", "attrDisableWindowEditor"], attrDurationUnit: ["durationUnit", "attrDurationUnit"], attrFilterRow: ["filterRow", "attrFilterRow"], attrFirstDayOfWeek: ["firstDayOfWeek", "attrFirstDayOfWeek"], attrGroupByResources: ["groupByResources", "attrGroupByResources"], attrHeaderTemplate: ["headerTemplate", "attrHeaderTemplate"], attrHideDateMarkers: ["hideDateMarkers", "attrHideDateMarkers"], attrHideTimelineHeader: ["hideTimelineHeader", "attrHideTimelineHeader"], attrHideTimelineHeaderDetails: ["hideTimelineHeaderDetails", "attrHideTimelineHeaderDetails"], attrHideTimelineSecondHeaderDetails: ["hideTimelineSecondHeaderDetails", "attrHideTimelineSecondHeaderDetails"], attrHideResourcePanel: ["hideResourcePanel", "attrHideResourcePanel"], attrHorizontalScrollBarVisibility: ["horizontalScrollBarVisibility", "attrHorizontalScrollBarVisibility"], attrHourFormat: ["hourFormat", "attrHourFormat"], attrInfiniteTimeline: ["infiniteTimeline", "attrInfiniteTimeline"], attrInfiniteTimelineStep: ["infiniteTimelineStep", "attrInfiniteTimelineStep"], attrInverted: ["inverted", "attrInverted"], attrKeyboardNavigation: ["keyboardNavigation", "attrKeyboardNavigation"], attrMax: ["max", "attrMax"], attrMin: ["min", "attrMin"], attrMonthFormat: ["monthFormat", "attrMonthFormat"], attrMonthScale: ["monthScale", "attrMonthScale"], attrNonworkingDays: ["nonworkingDays", "attrNonworkingDays"], attrNonworkingHours: ["nonworkingHours", "attrNonworkingHours"], attrOnTaskRender: ["onTaskRender", "attrOnTaskRender"], attrPopupWindowCustomizationFunction: ["popupWindowCustomizationFunction", "attrPopupWindowCustomizationFunction"], attrPopupWindowTabs: ["popupWindowTabs", "attrPopupWindowTabs"], attrProgressLabelFormatFunction: ["progressLabelFormatFunction", "attrProgressLabelFormatFunction"], attrQuarterFormat: ["quarterFormat", "attrQuarterFormat"], attrResources: ["resources", "attrResources"], attrResourceColumns: ["resourceColumns", "attrResourceColumns"], attrResourceFiltering: ["resourceFiltering", "attrResourceFiltering"], attrResourceGroupFormatFunction: ["resourceGroupFormatFunction", "attrResourceGroupFormatFunction"], attrResourcePanelHeaderTemplate: ["resourcePanelHeaderTemplate", "attrResourcePanelHeaderTemplate"], attrResourcePanelMin: ["resourcePanelMin", "attrResourcePanelMin"], attrResourcePanelSize: ["resourcePanelSize", "attrResourcePanelSize"], attrResourcePanelRefreshRate: ["resourcePanelRefreshRate", "attrResourcePanelRefreshRate"], attrResourceTimelineFormatFunction: ["resourceTimelineFormatFunction", "attrResourceTimelineFormatFunction"], attrResourceTimelineMode: ["resourceTimelineMode", "attrResourceTimelineMode"], attrResourceTimelineView: ["resourceTimelineView", "attrResourceTimelineView"], attrRightToLeft: ["rightToLeft", "attrRightToLeft"], attrSelectedTaskIds: ["selectedTaskIds", "attrSelectedTaskIds"], attrSelectedResourceIds: ["selectedResourceIds", "attrSelectedResourceIds"], attrShadeUntilCurrentTime: ["shadeUntilCurrentTime", "attrShadeUntilCurrentTime"], attrShowSelectionColumn: ["showSelectionColumn", "attrShowSelectionColumn"], attrShowBaseline: ["showBaseline", "attrShowBaseline"], attrShowProgressLabel: ["showProgressLabel", "attrShowProgressLabel"], attrSnapToNearest: ["snapToNearest", "attrSnapToNearest"], attrSortFunction: ["sortFunction", "attrSortFunction"], attrSortMode: ["sortMode", "attrSortMode"], attrTasks: ["tasks", "attrTasks"], attrTaskColumns: ["taskColumns", "attrTaskColumns"], attrTaskFiltering: ["taskFiltering", "attrTaskFiltering"], attrTaskPanelMin: ["taskPanelMin", "attrTaskPanelMin"], attrTaskPanelSize: ["taskPanelSize", "attrTaskPanelSize"], attrTimelineMin: ["timelineMin", "attrTimelineMin"], attrTreeMin: ["treeMin", "attrTreeMin"], attrTreeSize: ["treeSize", "attrTreeSize"], attrTimelineHeaderFormatFunction: ["timelineHeaderFormatFunction", "attrTimelineHeaderFormatFunction"], attrTooltip: ["tooltip", "attrTooltip"], attrVerticalScrollBarVisibility: ["verticalScrollBarVisibility", "attrVerticalScrollBarVisibility"], attrView: ["view", "attrView"], attrYearFormat: ["yearFormat", "attrYearFormat"], attrWeekFormat: ["weekFormat", "attrWeekFormat"], attrTheme: ["theme", "attrTheme"], attrWidth: ["width", "attrWidth"], attrHeight: ["height", "attrHeight"], autoCreate: ["auto-create", "autoCreate"] }, outputs: { onBeginUpdate: "onBeginUpdate", onEndUpdate: "onEndUpdate", onConnectionStart: "onConnectionStart", onConnectionEnd: "onConnectionEnd", onChange: "onChange", onColumnResize: "onColumnResize", onClosing: "onClosing", onClose: "onClose", onCollapse: "onCollapse", onDragStart: "onDragStart", onDragEnd: "onDragEnd", onExpand: "onExpand", onFilter: "onFilter", onItemClick: "onItemClick", onItemInsert: "onItemInsert", onItemRemove: "onItemRemove", onItemUpdate: "onItemUpdate", onOpening: "onOpening", onOpen: "onOpen", onProgressChangeStart: "onProgressChangeStart", onProgressChangeEnd: "onProgressChangeEnd", onResizeStart: "onResizeStart", onResizeEnd: "onResizeEnd", onSort: "onSort", onScrollBottomReached: "onScrollBottomReached", onScrollTopReached: "onScrollTopReached", onScrollLeftReached: "onScrollLeftReached", onScrollRightReached: "onScrollRightReached" }, usesOnChanges: true, ngImport: i0, template: '<div><ng-content></ng-content></div>', isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: jqxGanttComponent, decorators: [{
type: Component,
args: [{
selector: 'jqxGantt',
template: '<div><ng-content></ng-content></div>'
}]
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { attrAdjustToNonworkingTime: [{
type: Input,
args: ['adjustToNonworkingTime']
}], attrAutoSchedule: [{
type: Input,
args: ['autoSchedule']
}], attrAutoScheduleStrictMode: [{
type: Input,
args: ['autoScheduleStrictMode']
}], attrAutoScrollStep: [{
type: Input,
args: ['autoScrollStep']
}], attrColumnMenu: [{
type: Input,
args: ['columnMenu']
}], attrColumnMinWidth: [{
type: Input,
args: ['columnMinWidth']
}], attrColumnResize: [{
type: Input,
args: ['columnResize']
}], attrColumnResizeFeedback: [{
type: Input,
args: ['columnResizeFeedback']
}], attrCurrentTime: [{
type: Input,
args: ['currentTime']
}], attrCurrentTimeIndicator: [{
type: Input,
args: ['currentTimeIndicator']
}], attrCurrentTimeIndicatorInterval: [{
type: Input,
args: ['currentTimeIndicatorInterval']
}], attrDataExportFileName: [{
type: Input,
args: ['dataExportFileName']
}], attrSource: [{
type: Input,
args: ['source']
}], attrDayFormat: [{
type: Input,
args: ['dayFormat']
}], attrDateEnd: [{
type: Input,
args: ['dateEnd']
}], attrDateStart: [{
type: Input,
args: ['dateStart']
}], attrDateMarkers: [{
type: Input,
args: ['dateMarkers']
}], attrDisabled: [{
type: Input,
args: ['disabled']
}], attrDisableAutoScroll: [{
type: Input,
args: ['disableAutoScroll']
}], attrDisableTaskDrag: [{
type: Input,
args: ['disableTaskDrag']
}], attrDisableTaskProgressChange: [{
type: Input,
args: ['disableTaskProgressChange']
}], attrDisableTaskResize: [{
type: Input,
args: ['disableTaskResize']
}], attrDisableSelection: [{
type: Input,
args: ['disableSelection']
}], attrDisableSegmentDrag: [{
type: Input,
args: ['disableSegmentDrag']
}], attrDisableSegmentResize: [{
type: Input,
args: ['disableSegmentResize']
}], attrDisableWindowEditor: [{
type: Input,
args: ['disableWindowEditor']
}], attrDurationUnit: [{
type: Input,
args: ['durationUnit']
}], attrFilterRow: [{
type: Input,
args: ['filterRow']
}], attrFirstDayOfWeek: [{
type: Input,
args: ['firstDayOfWeek']
}], attrGroupByResources: [{
type: Input,
args: ['groupByResources']
}], attrHeaderTemplate: [{
type: Input,
args: ['headerTemplate']
}], attrHideDateMarkers: [{
type: Input,
args: ['hideDateMarkers']
}], attrHideTimelineHeader: [{
type: Input,
args: ['hideTimelineHeader']
}], attrHideTimelineHeaderDetails: [{
type: Input,
args: ['hideTimelineHeaderDetails']
}], attrHideTimelineSecondHeaderDetails: [{
type: Input,
args: ['hideTimelineSecondHeaderDetails']
}], attrHideResourcePanel: [{
type: Input,
args: ['hideResourcePanel']
}], attrHorizontalScrollBarVisibility: [{
type: Input,
args: ['horizontalScrollBarVisibility']
}], attrHourFormat: [{
type: Input,
args: ['hourFormat']
}], attrInfiniteTimeline: [{
type: Input,
args: ['infiniteTimeline']
}], attrInfiniteTimelineStep: [{
type: Input,
args: ['infiniteTimelineStep']
}], attrInverted: [{
type: Input,
args: ['inverted']
}], attrKeyboardNavigation: [{
type: Input,
args: ['keyboardNavigation']
}], attrMax: [{
type: Input,
args: ['max']
}], attrMin: [{
type: Input,
args: ['min']
}], attrMonthFormat: [{
type: Input,
args: ['monthFormat']
}], attrMonthScale: [{
type: Input,
args: ['monthScale']
}], attrNonworkingDays: [{
type: Input,
args: ['nonworkingDays']
}], attrNonworkingHours: [{
type: Input,
args: ['nonworkingHours']
}], attrOnTaskRender: [{
type: Input,
args: ['onTaskRender']
}], attrPopupWindowCustomizationFunction: [{
type: Input,
args: ['popupWindowCustomizationFunction']
}], attrPopupWindowTabs: [{
type: Input,
args: ['popupWindowTabs']
}], attrProgressLabelFormatFunction: [{
type: Input,
args: ['progressLabelFormatFunction']
}], attrQuarterFormat: [{
type: Input,
args: ['quarterFormat']
}], attrResources: [{
type: Input,
args: ['resources']
}], attrResourceColumns: [{
type: Input,
args: ['resourceColumns']
}], attrResourceFiltering: [{
type: Input,
args: ['resourceFiltering']
}], attrResourceGroupFormatFunction: [{
type: Input,
args: ['resourceGroupFormatFunction']
}], attrResourcePanelHeaderTemplate: [{
type: Input,
args: ['resourcePanelHeaderTemplate']
}], attrResourcePanelMin: [{
type: Input,
args: ['resourcePanelMin']
}], attrResourcePanelSize: [{
type: Input,
args: ['resourcePanelSize']
}], attrResourcePanelRefreshRate: [{
type: Input,
args: ['resourcePanelRefreshRate']
}], attrResourceTimelineFormatFunction: [{
type: Input,
args: ['resourceTimelineFormatFunction']
}],