Skip to content

Commit

Permalink
fix: export of emit on blur (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Schmidt <[email protected]>
  • Loading branch information
Kr0san89 and Manuel Schmidt authored Feb 26, 2024
1 parent c1b2cf1 commit 349fa26
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion projects/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<div
(click)="onClick($event)"
(clickOutside)="onClickedOutside($event)"
(blurWindow)="onClickedOutside($event)"
[attachOutsideOnClick]="attachOutsideOnClick"
[clickOutsideEnabled]="enabled"
[clickOutsideExclude]="'.foo'"
[emitOnBlur]="true">
clickOutsideEmitOnBlur>
<p>Clicked inside: {{countInside}}</p>
<p>Clicked outside: {{countOutside}}</p>

Expand Down
6 changes: 4 additions & 2 deletions projects/demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import {NgClickOutsideDirective, NgClickOutsideExcludeDirective} from "ng-click-outside2";
import {NgClickOutsideDirective, NgClickOutsideExcludeDirective, NgClickOutsideEmitOnBlurDirective} from "ng-click-outside2";


@NgModule({
declarations: [
Expand All @@ -11,7 +12,8 @@ import {NgClickOutsideDirective, NgClickOutsideExcludeDirective} from "ng-click-
imports: [
BrowserModule.withServerTransition({ appId: 'serverApp' }),
NgClickOutsideDirective,
NgClickOutsideExcludeDirective
NgClickOutsideExcludeDirective,
NgClickOutsideEmitOnBlurDirective
],
providers: [],
bootstrap: [AppComponent]
Expand Down
2 changes: 1 addition & 1 deletion projects/ng-click-outside2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-click-outside2",
"version": "14.0.0",
"version": "14.0.1",
"description": "Angular directive for handling click events outside an element.",
"license": "MIT",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions projects/ng-click-outside2/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

export * from './lib/ng-click-outside.directive';
export * from './lib/ng-click-outside-exclude.directive';
export * from './lib/ng-click-outside-emit-on-blur.directive';

0 comments on commit 349fa26

Please sign in to comment.