ng-click-outside
Advanced tools
Comparing version 8.0.0 to 9.0.0
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, NgZone } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare class ClickOutsideDirective implements OnInit, OnChanges, OnDestroy { | ||
@@ -33,2 +34,4 @@ private _el; | ||
private _removeWindowBlurListener; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, { "clickOutsideEnabled": "clickOutsideEnabled"; "attachOutsideOnClick": "attachOutsideOnClick"; "delayClickOutsideInit": "delayClickOutsideInit"; "emitOnBlur": "emitOnBlur"; "exclude": "exclude"; "excludeBeforeClick": "excludeBeforeClick"; "clickOutsideEvents": "clickOutsideEvents"; }, { "clickOutside": "clickOutside"; }, never>; | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
var common_1 = require("@angular/common"); | ||
var i0 = require("@angular/core"); | ||
var ClickOutsideDirective = (function () { | ||
@@ -158,22 +159,29 @@ function ClickOutsideDirective(_el, _ngZone, platformId) { | ||
}; | ||
ClickOutsideDirective.decorators = [ | ||
{ type: core_1.Directive, args: [{ selector: '[clickOutside]' },] } | ||
]; | ||
ClickOutsideDirective.ctorParameters = function () { return [ | ||
{ type: core_1.ElementRef }, | ||
{ type: core_1.NgZone }, | ||
{ type: Object, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] }] } | ||
]; }; | ||
ClickOutsideDirective.propDecorators = { | ||
clickOutsideEnabled: [{ type: core_1.Input }], | ||
attachOutsideOnClick: [{ type: core_1.Input }], | ||
delayClickOutsideInit: [{ type: core_1.Input }], | ||
emitOnBlur: [{ type: core_1.Input }], | ||
exclude: [{ type: core_1.Input }], | ||
excludeBeforeClick: [{ type: core_1.Input }], | ||
clickOutsideEvents: [{ type: core_1.Input }], | ||
clickOutside: [{ type: core_1.Output }] | ||
}; | ||
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: core_1.PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive }); | ||
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.4", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: { clickOutsideEnabled: "clickOutsideEnabled", attachOutsideOnClick: "attachOutsideOnClick", delayClickOutsideInit: "delayClickOutsideInit", emitOnBlur: "emitOnBlur", exclude: "exclude", excludeBeforeClick: "excludeBeforeClick", clickOutsideEvents: "clickOutsideEvents" }, outputs: { clickOutside: "clickOutside" }, usesOnChanges: true, ngImport: i0 }); | ||
return ClickOutsideDirective; | ||
}()); | ||
exports.ClickOutsideDirective = ClickOutsideDirective; | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideDirective, decorators: [{ | ||
type: core_1.Directive, | ||
args: [{ selector: '[clickOutside]' }] | ||
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: Object, decorators: [{ | ||
type: core_1.Inject, | ||
args: [core_1.PLATFORM_ID] | ||
}] }]; }, propDecorators: { clickOutsideEnabled: [{ | ||
type: core_1.Input | ||
}], attachOutsideOnClick: [{ | ||
type: core_1.Input | ||
}], delayClickOutsideInit: [{ | ||
type: core_1.Input | ||
}], emitOnBlur: [{ | ||
type: core_1.Input | ||
}], exclude: [{ | ||
type: core_1.Input | ||
}], excludeBeforeClick: [{ | ||
type: core_1.Input | ||
}], clickOutsideEvents: [{ | ||
type: core_1.Input | ||
}], clickOutside: [{ | ||
type: core_1.Output | ||
}] } }); |
@@ -0,2 +1,7 @@ | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "./click-outside.directive"; | ||
export declare class ClickOutsideModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<ClickOutsideModule, [typeof i1.ClickOutsideDirective], never, [typeof i1.ClickOutsideDirective]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<ClickOutsideModule>; | ||
} |
@@ -6,13 +6,18 @@ "use strict"; | ||
var click_outside_directive_1 = require("./click-outside.directive"); | ||
var i0 = require("@angular/core"); | ||
var ClickOutsideModule = (function () { | ||
function ClickOutsideModule() { | ||
} | ||
ClickOutsideModule.decorators = [ | ||
{ type: core_1.NgModule, args: [{ | ||
declarations: [click_outside_directive_1.ClickOutsideDirective], | ||
exports: [click_outside_directive_1.ClickOutsideDirective] | ||
},] } | ||
]; | ||
ClickOutsideModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
ClickOutsideModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule, declarations: [click_outside_directive_1.ClickOutsideDirective], exports: [click_outside_directive_1.ClickOutsideDirective] }); | ||
ClickOutsideModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule }); | ||
return ClickOutsideModule; | ||
}()); | ||
exports.ClickOutsideModule = ClickOutsideModule; | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule, decorators: [{ | ||
type: core_1.NgModule, | ||
args: [{ | ||
declarations: [click_outside_directive_1.ClickOutsideDirective], | ||
exports: [click_outside_directive_1.ClickOutsideDirective] | ||
}] | ||
}] }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClickOutsideModule = exports.ClickOutsideDirective = void 0; | ||
var click_outside_directive_1 = require("./click-outside.directive"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "ClickOutsideDirective", { enumerable: true, get: function () { return click_outside_directive_1.ClickOutsideDirective; } }); |
import { Directive, ElementRef, EventEmitter, Inject, Input, Output, PLATFORM_ID, NgZone, } from '@angular/core'; | ||
import { isPlatformBrowser } from '@angular/common'; | ||
import * as i0 from "@angular/core"; | ||
var ClickOutsideDirective = (function () { | ||
@@ -154,22 +155,29 @@ function ClickOutsideDirective(_el, _ngZone, platformId) { | ||
}; | ||
ClickOutsideDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[clickOutside]' },] } | ||
]; | ||
ClickOutsideDirective.ctorParameters = function () { return [ | ||
{ type: ElementRef }, | ||
{ type: NgZone }, | ||
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } | ||
]; }; | ||
ClickOutsideDirective.propDecorators = { | ||
clickOutsideEnabled: [{ type: Input }], | ||
attachOutsideOnClick: [{ type: Input }], | ||
delayClickOutsideInit: [{ type: Input }], | ||
emitOnBlur: [{ type: Input }], | ||
exclude: [{ type: Input }], | ||
excludeBeforeClick: [{ type: Input }], | ||
clickOutsideEvents: [{ type: Input }], | ||
clickOutside: [{ type: Output }] | ||
}; | ||
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive }); | ||
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.4", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: { clickOutsideEnabled: "clickOutsideEnabled", attachOutsideOnClick: "attachOutsideOnClick", delayClickOutsideInit: "delayClickOutsideInit", emitOnBlur: "emitOnBlur", exclude: "exclude", excludeBeforeClick: "excludeBeforeClick", clickOutsideEvents: "clickOutsideEvents" }, outputs: { clickOutside: "clickOutside" }, usesOnChanges: true, ngImport: i0 }); | ||
return ClickOutsideDirective; | ||
}()); | ||
export { ClickOutsideDirective }; | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideDirective, decorators: [{ | ||
type: Directive, | ||
args: [{ selector: '[clickOutside]' }] | ||
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: Object, decorators: [{ | ||
type: Inject, | ||
args: [PLATFORM_ID] | ||
}] }]; }, propDecorators: { clickOutsideEnabled: [{ | ||
type: Input | ||
}], attachOutsideOnClick: [{ | ||
type: Input | ||
}], delayClickOutsideInit: [{ | ||
type: Input | ||
}], emitOnBlur: [{ | ||
type: Input | ||
}], exclude: [{ | ||
type: Input | ||
}], excludeBeforeClick: [{ | ||
type: Input | ||
}], clickOutsideEvents: [{ | ||
type: Input | ||
}], clickOutside: [{ | ||
type: Output | ||
}] } }); |
import { NgModule } from '@angular/core'; | ||
import { ClickOutsideDirective } from './click-outside.directive'; | ||
import * as i0 from "@angular/core"; | ||
var ClickOutsideModule = (function () { | ||
function ClickOutsideModule() { | ||
} | ||
ClickOutsideModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [ClickOutsideDirective], | ||
exports: [ClickOutsideDirective] | ||
},] } | ||
]; | ||
ClickOutsideModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
ClickOutsideModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule, declarations: [ClickOutsideDirective], exports: [ClickOutsideDirective] }); | ||
ClickOutsideModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule }); | ||
return ClickOutsideModule; | ||
}()); | ||
export { ClickOutsideModule }; | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ClickOutsideModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
declarations: [ClickOutsideDirective], | ||
exports: [ClickOutsideDirective] | ||
}] | ||
}] }); |
{ | ||
"name": "ng-click-outside", | ||
"version": "8.0.0", | ||
"version": "9.0.0", | ||
"description": "Angular directive for handling click events outside an element.", | ||
@@ -41,17 +41,17 @@ "repository": { | ||
"peerDependencies": { | ||
"@angular/common": ">=11.0.0", | ||
"@angular/core": ">=11.0.0" | ||
"@angular/common": ">=12.0.0", | ||
"@angular/core": ">=12.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/common": "^11.2.6", | ||
"@angular/compiler": "^11.2.6", | ||
"@angular/compiler-cli": "^11.2.6", | ||
"@angular/core": "^11.2.6", | ||
"@angular/platform-browser": "^11.2.6", | ||
"@angular/common": "^12.1.4", | ||
"@angular/compiler": "^12.1.4", | ||
"@angular/compiler-cli": "^12.1.4", | ||
"@angular/core": "^12.1.4", | ||
"@angular/platform-browser": "^12.1.4", | ||
"rimraf": "^3.0.2", | ||
"rxjs": "^6.6.6", | ||
"tslint": "~6.1.3", | ||
"typescript": "4.1.5", | ||
"zone.js": "~0.10.3" | ||
"typescript": "4.3.5", | ||
"zone.js": "~0.11.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
465
26756
12