UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

36 lines (35 loc) 1.29 kB
import { IEventPropagationService } from "./public-api"; import * as i0 from "@angular/core"; /** * <example-url>./../examples/index.html#/common/event-propagation-service</example-url> */ /** * Service that provides event propagation rules for NUI components. * * __Name :__ * Event Propagation service * */ /** @ignore */ export declare class EventPropagationService implements IEventPropagationService { private preventedTargetSelectors; private preventedTargetParentSelectors; private should; /** * __Description:__ * Returns a boolean which indicates if event should propagate based on predefined list of selectors. * @param event Event to handle propagation. * @returns Value indicating whether that event should be propagated. */ targetShouldPropagate(event: Event): boolean; /** * __Description:__ * Helper compare function * @param selectors Selectors list to compare with. * @param element Event's target element or its parent. * @returns Value indicating whether that event should be propagated. */ private compareElementSelector; static ɵfac: i0.ɵɵFactoryDeclaration<EventPropagationService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<EventPropagationService>; }