/*! * devextreme-react * Version: 22.2.6 * Build date: Tue Apr 18 2023 * * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-react */ /// import dxGantt, { Properties } from "devextreme/ui/gantt"; import { Component as BaseComponent, IHtmlOptions } from "./core/component"; import NestedOption from "./core/nested-option"; declare type IGanttOptions = React.PropsWithChildren React.ReactNode; taskContentComponent?: React.ComponentType; taskContentKeyFn?: (data: any) => string; taskProgressTooltipContentRender?: (...params: any) => React.ReactNode; taskProgressTooltipContentComponent?: React.ComponentType; taskProgressTooltipContentKeyFn?: (data: any) => string; taskTimeTooltipContentRender?: (...params: any) => React.ReactNode; taskTimeTooltipContentComponent?: React.ComponentType; taskTimeTooltipContentKeyFn?: (data: any) => string; taskTooltipContentRender?: (...params: any) => React.ReactNode; taskTooltipContentComponent?: React.ComponentType; taskTooltipContentKeyFn?: (data: any) => string; }>; declare class Gantt extends BaseComponent> { get instance(): dxGantt; protected _WidgetClass: typeof dxGantt; protected independentEvents: string[]; protected _expectedChildren: { column: { optionName: string; isCollectionItem: boolean; }; contextMenu: { optionName: string; isCollectionItem: boolean; }; dependencies: { optionName: string; isCollectionItem: boolean; }; editing: { optionName: string; isCollectionItem: boolean; }; filterRow: { optionName: string; isCollectionItem: boolean; }; ganttHeaderFilter: { optionName: string; isCollectionItem: boolean; }; headerFilter: { optionName: string; isCollectionItem: boolean; }; resourceAssignments: { optionName: string; isCollectionItem: boolean; }; resources: { optionName: string; isCollectionItem: boolean; }; scaleTypeRange: { optionName: string; isCollectionItem: boolean; }; sorting: { optionName: string; isCollectionItem: boolean; }; stripLine: { optionName: string; isCollectionItem: boolean; }; tasks: { optionName: string; isCollectionItem: boolean; }; toolbar: { optionName: string; isCollectionItem: boolean; }; validation: { optionName: string; isCollectionItem: boolean; }; }; protected _templateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } declare type IColumnProps = React.PropsWithChildren<{ alignment?: any; allowEditing?: any; allowFiltering?: any; allowFixing?: any; allowHeaderFiltering?: any; allowHiding?: any; allowReordering?: any; allowResizing?: any; allowSearch?: any; allowSorting?: any; buttons?: any; calculateCellValue?: any; calculateDisplayValue?: any; calculateFilterExpression?: any; calculateSortValue?: any; caption?: any; cellTemplate?: any; columns?: any; cssClass?: any; customizeText?: any; dataField?: any; dataType?: any; editCellTemplate?: any; editorOptions?: any; encodeHtml?: any; falseText?: any; filterOperations?: any; filterType?: any; filterValue?: any; filterValues?: any; fixed?: any; fixedPosition?: any; format?: any; formItem?: any; headerCellTemplate?: any; headerFilter?: object | { allowSearch?: any; dataSource?: any; groupInterval?: any; height?: any; searchMode?: any; width?: any; }; hidingPriority?: any; isBand?: any; lookup?: any | { allowClearing?: any; calculateCellValue?: any; dataSource?: any; displayExpr?: any; valueExpr?: any; }; minWidth?: any; name?: any; ownerBand?: any; renderAsync?: any; selectedFilterOperation?: any; setCellValue?: any; showEditorAlways?: any; showInColumnChooser?: any; sortIndex?: any; sortingMethod?: any; sortOrder?: any; trueText?: any; type?: any; validationRules?: any; visible?: any; visibleIndex?: any; width?: any; defaultFilterValue?: any; onFilterValueChange?: (value: any) => void; defaultFilterValues?: any; onFilterValuesChange?: (value: any) => void; defaultSelectedFilterOperation?: any; onSelectedFilterOperationChange?: (value: any) => void; defaultSortOrder?: any; onSortOrderChange?: (value: any) => void; defaultVisible?: any; onVisibleChange?: (value: any) => void; defaultVisibleIndex?: any; onVisibleIndexChange?: (value: any) => void; cellRender?: (...params: any) => React.ReactNode; cellComponent?: React.ComponentType; cellKeyFn?: (data: any) => string; editCellRender?: (...params: any) => React.ReactNode; editCellComponent?: React.ComponentType; editCellKeyFn?: (data: any) => string; headerCellRender?: (...params: any) => React.ReactNode; headerCellComponent?: React.ComponentType; headerCellKeyFn?: (data: any) => string; }>; declare class Column extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static DefaultsProps: { defaultFilterValue: string; defaultFilterValues: string; defaultSelectedFilterOperation: string; defaultSortOrder: string; defaultVisible: string; defaultVisibleIndex: string; }; static ExpectedChildren: { columnHeaderFilter: { optionName: string; isCollectionItem: boolean; }; format: { optionName: string; isCollectionItem: boolean; }; headerFilter: { optionName: string; isCollectionItem: boolean; }; lookup: { optionName: string; isCollectionItem: boolean; }; }; static TemplateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } declare type IColumnHeaderFilterProps = React.PropsWithChildren<{ allowSearch?: any; dataSource?: any; groupInterval?: any; height?: any; searchMode?: any; width?: any; }>; declare class ColumnHeaderFilter extends NestedOption { static OptionName: string; } declare type IContextMenuProps = React.PropsWithChildren<{ enabled?: any; items?: any; }>; declare class ContextMenu extends NestedOption { static OptionName: string; static ExpectedChildren: { contextMenuItem: { optionName: string; isCollectionItem: boolean; }; item: { optionName: string; isCollectionItem: boolean; }; }; } declare type IContextMenuItemProps = React.PropsWithChildren<{ beginGroup?: any; closeMenuOnClick?: any; disabled?: any; html?: any; icon?: any; items?: any; name?: any; selectable?: any; selected?: any; template?: any; text?: any; visible?: any; render?: (...params: any) => React.ReactNode; component?: React.ComponentType; keyFn?: (data: any) => string; }>; declare class ContextMenuItem extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static TemplateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } declare type IDependenciesProps = React.PropsWithChildren<{ dataSource?: any; keyExpr?: any; predecessorIdExpr?: any; successorIdExpr?: any; typeExpr?: any; }>; declare class Dependencies extends NestedOption { static OptionName: string; } declare type IEditingProps = React.PropsWithChildren<{ allowDependencyAdding?: any; allowDependencyDeleting?: any; allowResourceAdding?: any; allowResourceDeleting?: any; allowResourceUpdating?: any; allowTaskAdding?: any; allowTaskDeleting?: any; allowTaskResourceUpdating?: any; allowTaskUpdating?: any; enabled?: any; }>; declare class Editing extends NestedOption { static OptionName: string; } declare type IFilterRowProps = React.PropsWithChildren<{ betweenEndText?: any; betweenStartText?: any; operationDescriptions?: any; resetOperationText?: any; showAllText?: any; showOperationChooser?: any; visible?: any; }>; declare class FilterRow extends NestedOption { static OptionName: string; static ExpectedChildren: { operationDescriptions: { optionName: string; isCollectionItem: boolean; }; }; } declare type IFormatProps = React.PropsWithChildren<{ currency?: any; formatter?: any; parser?: any; precision?: any; type?: any; useCurrencyAccountingStyle?: any; }>; declare class Format extends NestedOption { static OptionName: string; } declare type IGanttHeaderFilterProps = React.PropsWithChildren<{ allowSearch?: any; height?: any; searchTimeout?: any; texts?: any; visible?: any; width?: any; }>; declare class GanttHeaderFilter extends NestedOption { static OptionName: string; static ExpectedChildren: { texts: { optionName: string; isCollectionItem: boolean; }; }; } declare type IHeaderFilterProps = React.PropsWithChildren<{ allowSearch?: any; dataSource?: any; groupInterval?: any; height?: any; searchMode?: any; width?: any; searchTimeout?: any; texts?: any; visible?: any; }>; declare class HeaderFilter extends NestedOption { static OptionName: string; } declare type IItemProps = React.PropsWithChildren<{ beginGroup?: any; closeMenuOnClick?: any; disabled?: any; html?: any; icon?: any; items?: any; name?: any; selectable?: any; selected?: any; template?: any; text?: any; visible?: any; cssClass?: any; locateInMenu?: any; location?: any; menuItemTemplate?: any; options?: any; showText?: any; widget?: any; render?: (...params: any) => React.ReactNode; component?: React.ComponentType; keyFn?: (data: any) => string; menuItemRender?: (...params: any) => React.ReactNode; menuItemComponent?: React.ComponentType; menuItemKeyFn?: (data: any) => string; }>; declare class Item extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static TemplateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } declare type ILookupProps = React.PropsWithChildren<{ allowClearing?: any; calculateCellValue?: any; dataSource?: any; displayExpr?: any; valueExpr?: any; }>; declare class Lookup extends NestedOption { static OptionName: string; } declare type IOperationDescriptionsProps = React.PropsWithChildren<{ between?: any; contains?: any; endsWith?: any; equal?: any; greaterThan?: any; greaterThanOrEqual?: any; lessThan?: any; lessThanOrEqual?: any; notContains?: any; notEqual?: any; startsWith?: any; }>; declare class OperationDescriptions extends NestedOption { static OptionName: string; } declare type IResourceAssignmentsProps = React.PropsWithChildren<{ dataSource?: any; keyExpr?: any; resourceIdExpr?: any; taskIdExpr?: any; }>; declare class ResourceAssignments extends NestedOption { static OptionName: string; } declare type IResourcesProps = React.PropsWithChildren<{ colorExpr?: any; dataSource?: any; keyExpr?: any; textExpr?: any; }>; declare class Resources extends NestedOption { static OptionName: string; } declare type IScaleTypeRangeProps = React.PropsWithChildren<{ max?: any; min?: any; }>; declare class ScaleTypeRange extends NestedOption { static OptionName: string; } declare type ISortingProps = React.PropsWithChildren<{ ascendingText?: any; clearText?: any; descendingText?: any; mode?: any; showSortIndexes?: any; }>; declare class Sorting extends NestedOption { static OptionName: string; } declare type IStripLineProps = React.PropsWithChildren<{ cssClass?: any; end?: any; start?: any; title?: any; }>; declare class StripLine extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; } declare type ITasksProps = React.PropsWithChildren<{ colorExpr?: any; dataSource?: any; endExpr?: any; keyExpr?: any; parentIdExpr?: any; progressExpr?: any; startExpr?: any; titleExpr?: any; }>; declare class Tasks extends NestedOption { static OptionName: string; } declare type ITextsProps = React.PropsWithChildren<{ cancel?: any; emptyValue?: any; ok?: any; }>; declare class Texts extends NestedOption { static OptionName: string; } declare type IToolbarProps = React.PropsWithChildren<{ items?: any; }>; declare class Toolbar extends NestedOption { static OptionName: string; static ExpectedChildren: { item: { optionName: string; isCollectionItem: boolean; }; toolbarItem: { optionName: string; isCollectionItem: boolean; }; }; } declare type IToolbarItemProps = React.PropsWithChildren<{ cssClass?: any; disabled?: any; html?: any; locateInMenu?: any; location?: any; menuItemTemplate?: any; name?: any; options?: any; showText?: any; template?: any; text?: any; visible?: any; widget?: any; menuItemRender?: (...params: any) => React.ReactNode; menuItemComponent?: React.ComponentType; menuItemKeyFn?: (data: any) => string; render?: (...params: any) => React.ReactNode; component?: React.ComponentType; keyFn?: (data: any) => string; }>; declare class ToolbarItem extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static TemplateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } declare type IValidationProps = React.PropsWithChildren<{ autoUpdateParentTasks?: any; enablePredecessorGap?: any; validateDependencies?: any; }>; declare class Validation extends NestedOption { static OptionName: string; } export default Gantt; export { Gantt, IGanttOptions, Column, IColumnProps, ColumnHeaderFilter, IColumnHeaderFilterProps, ContextMenu, IContextMenuProps, ContextMenuItem, IContextMenuItemProps, Dependencies, IDependenciesProps, Editing, IEditingProps, FilterRow, IFilterRowProps, Format, IFormatProps, GanttHeaderFilter, IGanttHeaderFilterProps, HeaderFilter, IHeaderFilterProps, Item, IItemProps, Lookup, ILookupProps, OperationDescriptions, IOperationDescriptionsProps, ResourceAssignments, IResourceAssignmentsProps, Resources, IResourcesProps, ScaleTypeRange, IScaleTypeRangeProps, Sorting, ISortingProps, StripLine, IStripLineProps, Tasks, ITasksProps, Texts, ITextsProps, Toolbar, IToolbarProps, ToolbarItem, IToolbarItemProps, Validation, IValidationProps };