/// import { OnSelect, WithDndDragProps, ConnectDragSource, ConnectDropTarget } from '../../../behavior'; import { ShapeProps } from '../../../components'; import { GraphElement, LabelPosition, BadgeLocation, Node } from '../../../types'; import { RunStatus } from '../../types'; import { TaskGroupPillLabelProps } from './TaskGroupPillLabel'; export interface EdgeCreationTypes { spacerNodeType?: string; edgeType?: string; spacerEdgeType?: string; finallyNodeTypes?: string[]; finallyEdgeType?: string; } export interface DefaultTaskGroupProps { /** Additional content added to the node */ children?: React.ReactNode; /** Additional classes added to the group */ className?: string; /** The graph group node element to represent */ element: GraphElement; /** Flag if the node accepts drop operations */ droppable?: boolean; /** Flag if the current drag operation can be dropped on the node */ canDrop?: boolean; /** Flag if the node is the current drop target */ dropTarget?: boolean; /** Flag if the user is dragging the node */ dragging?: boolean; /** Flag if drag operation is a regroup operation */ dragRegroupable?: boolean; /** RunStatus to depict, supported on collapsed groups only. */ status?: RunStatus; /** Flag indicating the status indicator, supported on collapsed groups only */ showStatusState?: boolean; /** Statuses to show at when details are hidden, supported on collapsed groups only */ hiddenDetailsShownStatuses?: RunStatus[]; /** Custom icon to use as the status icon (for collapsed groups, or if using a GroupLabelComponent that accepts a customStatus icon, such as TaskGroupPillLabel). */ customStatusIcon?: React.ReactNode; /** Flag indicating the node should be scaled, best on hover of the node at lowest scale level */ scaleNode?: boolean; /** Flag to hide details at medium scale */ hideDetailsAtMedium?: boolean; /** Flag to show the label when hovering and details are hidden (effects expanded only) */ showLabelOnHover?: boolean; /** Flag if the user is hovering on the node */ hover?: boolean; /** Label for the node. Defaults to element.getLabel() */ label?: string; /** Secondary label for the node */ secondaryLabel?: string; /** Flag to show the label */ showLabel?: boolean; /** Position of the label, top or bottom. Defaults to element.getLabelPosition() or bottom */ labelPosition?: LabelPosition; /** The maximum length of the label before truncation */ truncateLength?: number; /** Space between the label and the group. Defaults to 17 */ labelOffset?: number; /** Label to show for the group, Defaults to NodeLabel, only applicable to expanded groups */ GroupLabelComponent?: React.FC; /** Center the label on the edge, overrides the label offset, only applicable to expanded groups */ centerLabelOnEdge?: boolean; /** The Icon class to show in the label, ignored when labelIcon is specified */ labelIconClass?: string; /** The label icon component to show in the label, takes precedence over labelIconClass */ labelIcon?: string; /** Padding for the label's icon */ labelIconPadding?: number; /** Text for the label's badge */ badge?: string; /** Color to use for the label's badge background */ badgeColor?: string; /** Color to use for the label's badge text */ badgeTextColor?: string; /** Color to use for the label's badge border */ badgeBorderColor?: string; /** Additional classes to use for the label's badge */ badgeClassName?: string; /** Location of the badge relative to the label's text, inner or below */ badgeLocation?: BadgeLocation; /** Flag if the group is collapsible */ collapsible?: boolean; /** Width of the collapsed group */ collapsedWidth?: number; /** Height of the collapsed group */ collapsedHeight?: number; /** Callback when the group is collapsed */ onCollapseChange?: (group: Node, collapsed: boolean) => void; /** Shape of the collapsed group */ getCollapsedShape?: (node: Node) => React.FunctionComponent; /** Number of shadows to shop for collapse groups. Defaults to 2 */ collapsedShadowCount?: number; /** Shadow offset for the collapsed group */ collapsedShadowOffset?: number; /** Radius of the border on expanded groups. Defaults to 16px */ borderRadius?: number; /** Flag if the element selected. Part of WithSelectionProps */ selected?: boolean; /** Function to call when the element should become selected (or deselected). Part of WithSelectionProps */ onSelect?: OnSelect; /** A ref to add to the node for dragging. Part of WithDragNodeProps */ dragNodeRef?: WithDndDragProps['dndDragRef']; /** A ref to add to the node for drag and drop. Part of WithDndDragProps */ dndDragRef?: ConnectDragSource; /** A ref to add to the node for dropping. Part of WithDndDropProps */ dndDropRef?: ConnectDropTarget; /** Function to call to show a context menu for the node */ onContextMenu?: (e: React.MouseEvent) => void; /** Flag indicating that the context menu for the node is currently open */ contextMenuOpen?: boolean; /** Flag to recreate the layout when the group is expanded/collapsed. Be sure you are registering "pipelineElementFactory" when set to true. */ recreateLayoutOnCollapseChange?: boolean; /** Function to return types used to re-create edges on a group collapse/expand (should be the same as calls to getEdgesFromNodes) */ getEdgeCreationTypes?: () => { spacerNodeType?: string; edgeType?: string; spacerEdgeType?: string; finallyNodeTypes?: string[]; finallyEdgeType?: string; }; } declare const DefaultTaskGroup: React.FunctionComponent; export default DefaultTaskGroup; //# sourceMappingURL=DefaultTaskGroup.d.ts.map