import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { ConditionsService } from '../../conditions/conditions.service'; import { ComponentConfig, ConfigService } from '../../configuration'; import { ZoneContextService } from '../zone/zone-context.service'; import { DragDropService } from '../drag-drop.service'; import { DndDropEvent } from 'ngx-drag-drop'; import * as i0 from "@angular/core"; export declare class ItemComponent implements OnInit, OnChanges, OnDestroy { zoneRef: ZoneContextService; configService: ConfigService; conditionsService: ConditionsService; dragDropService: DragDropService; cdr: ChangeDetectorRef; el: ElementRef; /** * id's element */ id: string; parentId: string; /** * index of element displayed when data is an Array */ dataIndex?: number; /** * Is the component configurable */ configurable: boolean; classes?: string; /** * zone's name/id */ zone: string; /** * used to store the configuration object for the component. */ config: ComponentConfig; /** * used to determine if the component should be displayed or not. */ condition: boolean; _data: any; private subscription; /** * used to determine if the flex direction is horizontal or not. * Always `false` when the component's type is not `_container` */ isHorizontal: boolean; constructor(zoneRef: ZoneContextService, configService: ConfigService, conditionsService: ConditionsService, dragDropService: DragDropService, cdr: ChangeDetectorRef, el: ElementRef); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; /** * It updates the component's configuration and condition, and sets the classes * for the component * @param {ComponentConfig} config - ComponentConfig - the configuration object * for the component */ private updateConfig; /** * If the dataIndex property is undefined, then the data property is assigned to * the `_data` property. * * Otherwise, the data property is indexed by the dataIndex * property and the result is assigned to the _data property */ private updateData; /** * If the condition is not null, then check the condition and update the * condition variable */ private updateCondition; onDndDrop(event: DndDropEvent): void; onDndCanceled(item: string, index: number): void; /** * * If the element has a class of flex-column, it's not horizontal. * * If it has a class of d-flex or uib-dropzone, it's horizontal. * * If it has a style of display: flex, it's horizontal. * * Otherwise, it's not horizontal * @returns A boolean value. */ private horizontal; getItemTooltip(id: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }