/** * @license * Copyright (C) Gnucoop soc. coop. * * This file is part of the Advanced JSON forms (ajf). * * Advanced JSON forms (ajf) is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the License, * or (at your option) any later version. * * Advanced JSON forms (ajf) is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero * General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Advanced JSON forms (ajf). * If not, see http://www.gnu.org/licenses/. * */ import { AjfNode } from '@ajf/core/forms'; import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop'; import { AfterViewInit, ElementRef, OnDestroy, QueryList } from '@angular/core'; import { Observable } from 'rxjs'; import { AjfFbBranchLine } from './branch-line'; import { AjfFormBuilderNode, AjfFormBuilderNodeEntry, AjfFormBuilderNodeTypeEntry, AjfFormBuilderService } from './form-builder-service'; import * as i0 from "@angular/core"; export declare class AjfFbNodeEntry implements AfterViewInit, OnDestroy { private _service; branchLines: QueryList; childEntries: QueryList; private _hasContent; get hasContent(): boolean; private _isFirst; get isFirst(): boolean; set isFirst(isFirst: boolean); private _isNodeEntry; get isNodeEntry(): boolean; private _nodeEntry; get nodeEntry(): AjfFormBuilderNode | undefined; set nodeEntry(nodeEntry: AjfFormBuilderNode | undefined); private _level; get level(): number; set level(value: number); private _isDraggable; get isDraggable(): boolean; set isDraggable(draggable: boolean); get realNodeEntry(): AjfFormBuilderNodeEntry; private _branchColors; get branchColors(): string[]; private _dropZones; get dropZones(): string[]; private _slideDropZones; get slideDropZones(): string[]; private _originOffset; get originOffset(): number; set originOffset(originOffset: number); private _originLeftMargin; get originLeftMargin(): string; private _firstBranchColor; get firstBranchColor(): string; set firstBranchColor(firstBranchColor: string); private _currentEditedNode; get currentEditedNode(): Observable; private _branchLinesSubscription; private _childEntriesSubscription; constructor(_service: AjfFormBuilderService); onResize(): void; edit(evt: Event): void; delete(evt: Event): void; isInvalid(node: AjfNode): boolean; isLastNode(): boolean; isSlide(node: AjfNode): boolean; isExpanded(): Observable; ngAfterViewInit(): void; ngOnDestroy(): void; /** * Triggers when a field or slide node is moved or inserted by drag&dropping in the formbuilder. * @param event The drop event. * @param content True if the current nodeEntry contains other nodeEntries. */ onDrop(event: CdkDragDrop | CdkDragDrop, content?: boolean): void; /** * Assigns a progressive id to the dropList, to connect it to the FormBuilder source list. * @param empty True if the list is marked as empty. */ assignId(empty?: boolean): string; disableSlideDrop(item: CdkDrag): boolean; disableFieldDrop(item: CdkDrag): boolean; emptyAreaDropPredicate(): (item: CdkDrag, _drop: CdkDropList) => boolean; updateBranchHeights(delay?: number): void; updateExpandedStatus(expanded: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }