/** Angular */ import * as ng from "@angular/core"; import { Button } from "../../moreOptions/moreOptions"; import { BaseGraphNode } from "../baseGraphNode"; import { PageBag } from "../../page/pageBag"; export declare const MIN_HEIGHT: number; export declare const MIN_WIDTH: number; export declare const MAX_WIDTH: number; /** * @whatItDoes * * This component is used to represent a generic node in the NodeEditor * with a header with title and a vertical list iof inputs and outputs side by side * * @howToUse * * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `string` : **id** - See `BaseGraphNode` ; * `boolean` : **collapsed** - See `BaseGraphNode` * `boolean` : **selected** - See `BaseGraphNode` * `GraphNodeIOPort[]` : **inputPorts** - See `BaseGraphNode` * `GraphNodeIOPort[]` : **outputPorts** - See `BaseGraphNode` * `any` : **internalPortLinked** - See `BaseGraphNode` * `any` : **portHighlighted** - See `BaseGraphNode` * `function` : **internalPortMagnetizedCallback** - See `BaseGraphNode` * `function` : **outputPortHighlightedCallback** - See `BaseGraphNode` * `boolean` : **hasSettings** - SIf node has settings * `string` : **invalidLinkMessage** - The message to show when a link is invalid * `string` : **headerIcon** - The header icon class * `string` : **headerTitle** - The header title * `boolean` : **isGhost** - If the aspect of the component is in "ghost" mode witch consists in a shape more rounded and more transparent * * ### Outputs * `NodeCollapsedOrExpandedArgs` : **collapseClicked** - See `BaseGraphNode` * `string` : **removeClicked** - See `BaseGraphNode` * `PortHighlightedArgs` : **internalPortHighlighted** - See `BaseGraphNode` * `string` : **settingsClicked** - See `BaseGraphNode` * * @description * * ## WidgetGraphNode * * ### Dependencies * * #### Components * * MoreOptionsDropdown : cmf.core.controls` * * #### Services * _This component does not depend in any service_ * * #### Directives * _This component does not depend in any directive_ * */ export declare class SimpleGraphNode extends BaseGraphNode implements ng.OnDestroy, ng.OnChanges { private _elementRef; private _ngZone; private _pageBag; /** * Hamburger menu options */ _menuOptions: Button[]; /** * Menu element */ private _menuElement; /** * The icon class of the header icon */ headerIcon: string; /** * The title of the header */ headerTitle: string; /** * If is a ghost element (different visual) */ isGhost: boolean; /** * Invalid link message */ invalidLinkMessage: string; /** * If node has settings */ hasSettings: boolean; /** * Constructor */ constructor(_elementRef: ng.ElementRef, _ngZone: ng.NgZone, _pageBag: PageBag); /** * On menu option click * @param option the option */ onMenuOptionClick(option: Button): void; /** * On collapse or expand * @return the new component dimensions */ protected onCollapseOrExpand(): void; /** * Remove events */ private removeEvents; /** * Update events */ private updateEvents; /** * On destroy */ ngOnDestroy(): void; /** * On changes method * * @param changes the changes made to the component properties */ ngOnChanges(changes: ng.SimpleChanges): void; } export declare class SimpleGraphNodeModule { }