diff --git a/npm/ng-packs/packages/core/src/lib/core.module.ts b/npm/ng-packs/packages/core/src/lib/core.module.ts index b3c687672d..ab24c6beff 100644 --- a/npm/ng-packs/packages/core/src/lib/core.module.ts +++ b/npm/ng-packs/packages/core/src/lib/core.module.ts @@ -16,7 +16,7 @@ import { EllipsisDirective } from './directives/ellipsis.directive'; import { ForDirective } from './directives/for.directive'; import { FormSubmitDirective } from './directives/form-submit.directive'; import { PermissionDirective } from './directives/permission.directive'; -import { ClickEventStopPropagationDirective } from './directives/stop-propagation.directive'; +import { StopPropagationDirective } from './directives/stop-propagation.directive'; import { VisibilityDirective } from './directives/visibility.directive'; import { ApiInterceptor } from './interceptors/api.interceptor'; import { ABP } from './models/common'; @@ -54,7 +54,7 @@ import './utils/date-extensions'; PermissionDirective, VisibilityDirective, InputEventDebounceDirective, - ClickEventStopPropagationDirective, + StopPropagationDirective, AbstractNgModelComponent, ], exports: [ @@ -75,7 +75,7 @@ import './utils/date-extensions'; VisibilityDirective, InputEventDebounceDirective, LocalizationPipe, - ClickEventStopPropagationDirective, + StopPropagationDirective, AbstractNgModelComponent, ], providers: [LocalizationPipe], diff --git a/npm/ng-packs/packages/core/src/lib/directives/stop-propagation.directive.ts b/npm/ng-packs/packages/core/src/lib/directives/stop-propagation.directive.ts index 0e2d383af7..ced0ae4159 100644 --- a/npm/ng-packs/packages/core/src/lib/directives/stop-propagation.directive.ts +++ b/npm/ng-packs/packages/core/src/lib/directives/stop-propagation.directive.ts @@ -6,7 +6,7 @@ import { takeUntilDestroy } from '../utils/rxjs-utils'; // tslint:disable-next-line: directive-selector selector: '[click.stop]', }) -export class ClickEventStopPropagationDirective implements OnInit, OnDestroy { +export class StopPropagationDirective implements OnInit, OnDestroy { @Output('click.stop') readonly stopPropEvent = new EventEmitter(); constructor(private el: ElementRef) {} diff --git a/npm/ng-packs/packages/core/src/lib/tests/stop-propagation.directive.spec.ts b/npm/ng-packs/packages/core/src/lib/tests/stop-propagation.directive.spec.ts index c2cdaf1532..f054601efa 100644 --- a/npm/ng-packs/packages/core/src/lib/tests/stop-propagation.directive.spec.ts +++ b/npm/ng-packs/packages/core/src/lib/tests/stop-propagation.directive.spec.ts @@ -1,14 +1,14 @@ import { createDirectiveFactory, SpectatorDirective } from '@ngneat/spectator/jest'; -import { ClickEventStopPropagationDirective } from '../directives/stop-propagation.directive'; +import { StopPropagationDirective } from '../directives/stop-propagation.directive'; -describe('ClickEventStopPropagationDirective', () => { - let spectator: SpectatorDirective; - let directive: ClickEventStopPropagationDirective; +describe('StopPropagationDirective', () => { + let spectator: SpectatorDirective; + let directive: StopPropagationDirective; let link: HTMLAnchorElement; const childClickEventFn = jest.fn(() => null); const parentClickEventFn = jest.fn(() => null); const createDirective = createDirectiveFactory({ - directive: ClickEventStopPropagationDirective, + directive: StopPropagationDirective, }); beforeEach(() => {