import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter, QueryList, SimpleChanges } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { ConfigService } from '../../configuration/config.service'; import { ConfigurableService } from '../../configurable'; import { ZoneContextService } from './zone-context.service'; import { TemplateNameDirective } from '../../utils'; import * as i0 from "@angular/core"; export declare class ZoneComponent implements OnInit, OnDestroy { readonly zoneContext: ZoneContextService; readonly configService: ConfigService; readonly configurableService: ConfigurableService; readonly cdr: ChangeDetectorRef; children: QueryList; /** * zone's id */ id: string; /** * additional template's data. If data is an array, an *ngFor will be done using * each data's items */ data?: any; /** * conditional display rules */ conditionsData?: Record; /** * Emit an event when a zone's element is clicked * sending it's index and additional data */ itemClicked: EventEmitter<{ data: any; index?: number | undefined; event: Event; }>; /** * return `true` when edit mode is enabled */ enabled$: BehaviorSubject; private subscription; constructor(zoneContext: ZoneContextService, configService: ConfigService, configurableService: ConfigurableService, cdr: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterContentInit(): void; get isArray(): boolean; /** * Propagate the element's click event * * If the index is undefined, then data is the data object, otherwise data is the * data object's index * @param {Event} event - The event that triggered the click. * @param {any} [data] - The data object that was clicked. * @param {number} [index] - The index of the item in the list. */ onItemClicked(event: Event, data?: any, index?: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }