import { ACTION_STACK_SIZE, ActionStack, AddConnectionAction, AddNodeAction, AdjacencyLayout, ApplyLayoutAction, BackgroundConfig, BackgroundStyle, BreadthAdjacencyLayout, BreadthLayout, ButtonsComponentConfig, Canvas, Canvas as Canvas$1, CanvasConfig, ClosedShape, CollabAction, CollabActionSerialized, CollabClient, CollabTimestamp, CollabTimestampSet, ComponentsConfig, ConnectionLook, ConnectionLookConfig, ConnectionTemplateConfig, ConnectionTypeConfig, ContextMenuButtonConfig, ContextMenuConfig, Corner, Corner as Corner$1, DagaConnection, DagaDecorator, DagaExporter, DagaImporter, DagaModel, DagaModel as DagaModel$1, DagaNode, DagaObject, DagaPort, DagaSection, DiagramAction, DiagramActionMethod, DiagramActions, DiagramActions as DiagramActions$1, DiagramButtons, DiagramButtons as DiagramButtons$1, DiagramCanvas, DiagramConfig, DiagramConfig as DiagramConfig$1, DiagramConnection, DiagramConnectionSet, DiagramConnectionType, DiagramDecorator, DiagramDecoratorSet, DiagramDoubleClickEvent, DiagramDraggingNodeEvent, DiagramEditor, DiagramEditor as DiagramEditor$1, DiagramElement, DiagramElementSet, DiagramEntity, DiagramEntitySet, DiagramError, DiagramError as DiagramError$1, DiagramEvent, DiagramEvent as DiagramEvent$1, DiagramEvents, DiagramField, DiagramFieldSet, DiagramHighlightedEvent, DiagramLayout, DiagramModel, DiagramModelExporter, DiagramModelImporter, DiagramNode, DiagramNodeGeometry, DiagramNodeSet, DiagramNodeType, DiagramObject, DiagramObjectSet, DiagramPort, DiagramPortSet, DiagramPortType, DiagramSecondaryClickEvent, DiagramSection, DiagramSectionGeometry, DiagramSectionSet, DiagramSelectionEvent, DiagramValidator, DiagramZoomEvent, DotsGridConfig, EditFieldAction, EmptyGridConfig, ErrorsComponentConfig, FieldConfig, ForceLayout, GridConfig, GridStyle, HorizontalAlign, HorizontalLayout, ImageBackgroundConfig, ImageGridConfig, ImageLook, ImageLookConfig, Line, LineShape, LineStyle, LinesGridConfig, Look, LookConfig, MarkerImageLook, MarkerImageLookConfig, MoveAction, NodeTemplateConfig, NodeTypeConfig, Palette, Palette as Palette$1, PaletteComponentConfig, PaletteSectionConfig, PaletteSectionConfig as PaletteSectionConfig$1, PasteAction, Point, PortConfig, PortTypeConfig, PriorityLayout, Property, Property as Property$1, PropertyEditor, PropertyEditor as PropertyEditor$1, PropertyEditorComponentConfig, PropertySet, Rectangle, RemoveAction, ResizableMode, SectionConfig, SectionGridConfig, SetGeometryAction, SetParentAction, ShapedLook, ShapedLookConfig, Side, Side as Side$1, SolidBackgroundConfig, StretchableImageLook, StretchableImageLookConfig, TreeLayout, Type, Type as Type$1, UpdateValuesAction, UserActionConfig, ValueSet, ValueSet as ValueSet$1, VerticalAlign, VerticalLayout, getLocationsOfNodes, layouts } from "@metadev/daga"; import * as i0 from "@angular/core"; import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from "@angular/core"; import { Observable } from "rxjs"; import * as d3 from "d3"; import * as i10 from "@angular/common"; import * as i11 from "@angular/forms"; /** * Button used to collapse components that implement it. * @private */ export declare class CollapseButtonComponent implements AfterViewInit { collapsableSelector: string | ElementRef | HTMLElement; collapsableAdditionalSelector: string; collapsed: boolean; disabled: boolean; direction: Side$1; rule: string; collapsedValue: string; visibleValue: string; Side: typeof Side$1; ngAfterViewInit(): void; toggleCollapse(): void; setCollapse(): void; getClass(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Buttons used to trigger diagram functionalities by the user. * @private */ export declare class DiagramButtonsComponent implements DiagramButtons$1, OnInit, AfterViewInit, OnDestroy { #private; get canvas(): Canvas$1; collapsableButtons: ElementRef; location: Corner$1; direction: Side$1; centerAnimationDuration: number | undefined; enableAction: boolean; enableFilter: boolean; enableLayout: boolean; enableSelection: boolean; enableZoom: boolean; filterOn: boolean; collapsed: boolean; animationOngoing: boolean; DiagramActions: typeof DiagramActions$1; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; init(config: DiagramConfig$1): void; recalculateSizeOfButtons(): void; toggleCollapse(): Promise; zoomIn(): void; zoomOut(): void; center(): void; layout(): void; filter(): void; undo(): void; redo(): void; copySelection(): void; cutSelection(): void; pasteSelection(): void; deleteSelection(): void; startMultipleSelection(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Palette that the user can drag and drop nodes from. * @private * @see DiagramConfig * @see DiagramNode */ export declare class PaletteComponent implements Palette$1, OnInit, AfterViewInit, OnDestroy { #private; get canvas(): Canvas$1; panel: ElementRef; palettes: PaletteSectionConfig$1[]; currentPalette: PaletteSectionConfig$1; currentCategory: string; collapsed: boolean; location: Corner$1; direction: Side$1; width: string; length: string; gap: string; justifyContent: string; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; init(config: DiagramConfig$1): void; refreshPalette(): void; switchPalette(palette: PaletteSectionConfig$1): void; selectPanel(): d3.Selection; selectPalette(): d3.Selection; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Editor of the values of a value set. * @private * @see ValueSet */ export declare class PropertyEditorComponent implements PropertyEditor$1, OnInit, AfterViewInit, OnDestroy { #private; panel: ElementRef; collapsed: boolean; location: Corner$1; direction: Side$1; width: string; length: string; title?: string; _valueSet: ValueSet$1 | undefined; get valueSet(): ValueSet$1 | undefined; set valueSet(valueSet: ValueSet$1 | undefined); settings?: boolean; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; init(config: DiagramConfig$1): void; setPanelWidth(): void; selectPanel(): d3.Selection; highlightProperty(...propertyNames: string[]): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * The context of a diagram. Every separate diagram must be contained within its own {@link DiagramComponent} and every {@link DiagramComponent} must contain its own {@link DiagramEditorComponent}. * This component defines a {@link DagaConfigurationService} and a {@link CanvasProviderService}, which is shared by all the components within and allows accessing the configuration and the canvas of this component's diagram, respectively. * @public */ export declare class DiagramComponent implements DiagramEditor$1, OnInit, AfterViewInit, OnDestroy { #private; appendTo: ElementRef; diagramButtons: DiagramButtonsComponent; palette: PaletteComponent; propertyEditor: PropertyEditorComponent; /** * Getter for the configuration of this diagram. * @public */ get config(): DiagramConfig$1; /** * Setter for the configuration for the diagram. * @public */ set config(config: DiagramConfig$1); /** * Subject used to track when the diagram configuration has been updated. * @public */ get config$(): Observable; /** * Getter for the canvas of this diagram. * @public */ get canvas(): Canvas$1; /** * Subject used to track when the canvas has been updated. * @public */ get canvas$(): Observable; /** * Subject used to track when the view has been initialized after updating the canvas. * @public */ get viewInitialized$(): Observable; /** * Serialized model for the diagram. Used for data binding to the model. * @public */ get model(): DagaModel$1; /** * Serialized model for the diagram. Used for data binding to the model. * @public */ set model(model: DagaModel$1); /** * Output for changes to the diagram's model. * @public */ modelChange: EventEmitter; /** * Output for user events on the diagram. * @public */ diagramEvent: EventEmitter; Corner: typeof Corner$1; Side: typeof Side$1; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Displays the errors detected by a diagram's validators. * @private * @see DiagramValidator */ export declare class ErrorsComponent implements AfterViewInit, OnDestroy { #private; get canvas(): Canvas$1; errorsContainer: ElementRef; errors: DiagramError$1[]; Side: typeof Side$1; ngAfterViewInit(): void; ngOnDestroy(): void; selectPanel(): d3.Selection; validate(): void; showError(error: DiagramError$1): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Editor of a value set within a property editor. * @private * @see PropertyEditor * @see ValueSet */ export declare class ObjectEditorComponent { #private; get canvas(): Canvas$1; get userCanEdit(): boolean; _valueSet?: ValueSet$1; get valueSet(): ValueSet$1 | undefined; set valueSet(valueSet: ValueSet$1 | undefined); /** How many object-editor elements are parents of this object-editor element. @private */ depth: number; Type: typeof Type$1; getStyleClassName: (s: string) => string; setValue(property: Property$1, value: unknown): void; dateToLocalDatetimeString(date: string | number | Date | null | undefined): string; localDatetimeStringToDate(string: string): Date; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Editor of a property of text list type within a property editor. * @private * @see Type.TextList * @see PropertyEditor * @see ValueSet */ export declare class TextListEditorComponent { #private; set value(value: string[]); get value(): string[]; valueInput: string; allowRepeats: boolean; disabled: boolean; valueChange: EventEmitter; getValueFromEvent(event: Event): string; hasValue(value: string): boolean; removeFromValue(index: number): void; editFromValue(item: string, index: number): void; addToValue(): void; clearInput(): void; onKeyUp(event: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Editor of a property of text map type within a property editor. * @private * @see Type.TextMap * @see PropertyEditor * @see ValueSet */ export declare class TextMapEditorComponent { #private; set value(value: { [name: string]: string; }); get value(): { [name: string]: string; }; keyInput: string; valueInput: string; disabled: boolean; valueChange: EventEmitter<{ [name: string]: string; }>; getValueFromEvent(event: Event): string; removeFromValue(key: string): void; editKey(oldKey: string, newKey: string): void; editValue(key: string, value: string): void; addToValue(): void; clearKeyInput(): void; clearValueInput(): void; onKeyUp(event: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class DagaModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * A provider for the {@link Canvas} associated with a {@link DiagramComponent} context. * @public */ export declare class CanvasProviderService { #private; /** * Subject used to track when the canvas has been updated. * @public */ canvas$: import("rxjs").Observable; /** * Subject used to track when the view of the canvas has been updated after updating the canvas. * @public */ viewInitialized$: import("rxjs").Observable; /** * Initialize the diagram canvas object of this context using the given diagram configuration. * @private * @param parentComponent A diagram editor. * @param config A diagram configuration. */ initCanvas(parentComponent: DiagramEditor$1, config: DiagramConfig$1): void; /** * Attach the canvas of this context to an HTML element to render it there. * @private * @param appendTo An HTML element. */ initCanvasView(appendTo: HTMLElement): void; /** * Get the current canvas of this context. * @public * @returns A canvas. */ getCanvas(): Canvas$1; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * A provider for the {@link DiagramConfig} associated with a {@link DiagramComponent} context. * @public */ export declare class DagaConfigurationService { #private; /** * Subject used to track when the diagram configuration has been updated. * @public */ config$: import("rxjs").Observable; /** * Set the diagram configuration of this context. * @private * @param config A diagram configuration. */ init(config: DiagramConfig$1): void; /** * Get the current diagram configuration of this context. * @public * @returns A diagram configuration. */ getConfig(): DiagramConfig$1; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { ACTION_STACK_SIZE, ActionStack, AddConnectionAction, AddNodeAction, AdjacencyLayout, ApplyLayoutAction, BackgroundConfig, BackgroundStyle, BreadthAdjacencyLayout, BreadthLayout, ButtonsComponentConfig, Canvas, CanvasConfig, ClosedShape, CollabAction, CollabActionSerialized, CollabClient, CollabTimestamp, CollabTimestampSet, ComponentsConfig, ConnectionLook, ConnectionLookConfig, ConnectionTemplateConfig, ConnectionTypeConfig, ContextMenuButtonConfig, ContextMenuConfig, Corner, DagaConnection, DagaDecorator, DagaExporter, DagaImporter, DagaModel, DagaNode, DagaObject, DagaPort, DagaSection, DiagramAction, DiagramActionMethod, DiagramActions, DiagramButtons, DiagramCanvas, DiagramConfig, DiagramConnection, DiagramConnectionSet, DiagramConnectionType, DiagramDecorator, DiagramDecoratorSet, DiagramDoubleClickEvent, DiagramDraggingNodeEvent, DiagramEditor, DiagramElement, DiagramElementSet, DiagramEntity, DiagramEntitySet, DiagramError, DiagramEvent, DiagramEvents, DiagramField, DiagramFieldSet, DiagramHighlightedEvent, DiagramLayout, DiagramModel, DiagramModelExporter, DiagramModelImporter, DiagramNode, DiagramNodeGeometry, DiagramNodeSet, DiagramNodeType, DiagramObject, DiagramObjectSet, DiagramPort, DiagramPortSet, DiagramPortType, DiagramSecondaryClickEvent, DiagramSection, DiagramSectionGeometry, DiagramSectionSet, DiagramSelectionEvent, DiagramValidator, DiagramZoomEvent, DotsGridConfig, EditFieldAction, EmptyGridConfig, ErrorsComponentConfig, FieldConfig, ForceLayout, GridConfig, GridStyle, HorizontalAlign, HorizontalLayout, ImageBackgroundConfig, ImageGridConfig, ImageLook, ImageLookConfig, Line, LineShape, LineStyle, LinesGridConfig, Look, LookConfig, MarkerImageLook, MarkerImageLookConfig, MoveAction, NodeTemplateConfig, NodeTypeConfig, Palette, PaletteComponentConfig, PaletteSectionConfig, PasteAction, Point, PortConfig, PortTypeConfig, PriorityLayout, Property, PropertyEditor, PropertyEditorComponentConfig, PropertySet, Rectangle, RemoveAction, ResizableMode, SectionConfig, SectionGridConfig, SetGeometryAction, SetParentAction, ShapedLook, ShapedLookConfig, Side, SolidBackgroundConfig, StretchableImageLook, StretchableImageLookConfig, TreeLayout, Type, UpdateValuesAction, UserActionConfig, ValueSet, VerticalAlign, VerticalLayout, getLocationsOfNodes, layouts };