Socket
Socket
Sign inDemoInstall

ng-click-outside

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-click-outside - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

44

lib/click-outside.directive.js

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -14,5 +13,4 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var common_1 = require("@angular/common");
import { Directive, ElementRef, EventEmitter, Inject, Injectable, Input, Output, PLATFORM_ID, NgZone, } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
var ClickOutsideDirective = /** @class */ (function () {

@@ -30,3 +28,3 @@ function ClickOutsideDirective(_el, _ngZone, platformId) {

this.clickOutsideEvents = '';
this.clickOutside = new core_1.EventEmitter();
this.clickOutside = new EventEmitter();
this._nodesExcluded = [];

@@ -39,3 +37,3 @@ this._events = ['click'];

ClickOutsideDirective.prototype.ngOnInit = function () {
if (!common_1.isPlatformBrowser(this.platformId)) {
if (!isPlatformBrowser(this.platformId)) {
return;

@@ -46,3 +44,3 @@ }

ClickOutsideDirective.prototype.ngOnDestroy = function () {
if (!common_1.isPlatformBrowser(this.platformId)) {
if (!isPlatformBrowser(this.platformId)) {
return;

@@ -55,3 +53,3 @@ }

ClickOutsideDirective.prototype.ngOnChanges = function (changes) {
if (!common_1.isPlatformBrowser(this.platformId)) {
if (!isPlatformBrowser(this.platformId)) {
return;

@@ -178,39 +176,39 @@ }

__decorate([
core_1.Input(),
Input(),
__metadata("design:type", Boolean)
], ClickOutsideDirective.prototype, "clickOutsideEnabled", void 0);
__decorate([
core_1.Input(),
Input(),
__metadata("design:type", Boolean)
], ClickOutsideDirective.prototype, "attachOutsideOnClick", void 0);
__decorate([
core_1.Input(),
Input(),
__metadata("design:type", Boolean)
], ClickOutsideDirective.prototype, "delayClickOutsideInit", void 0);
__decorate([
core_1.Input(),
Input(),
__metadata("design:type", Boolean)
], ClickOutsideDirective.prototype, "emitOnBlur", void 0);
__decorate([
core_1.Input(),
Input(),
__metadata("design:type", String)
], ClickOutsideDirective.prototype, "exclude", void 0);
__decorate([
core_1.Input(),
Input(),
__metadata("design:type", Boolean)
], ClickOutsideDirective.prototype, "excludeBeforeClick", void 0);
__decorate([
core_1.Input(),
Input(),
__metadata("design:type", String)
], ClickOutsideDirective.prototype, "clickOutsideEvents", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
Output(),
__metadata("design:type", EventEmitter)
], ClickOutsideDirective.prototype, "clickOutside", void 0);
ClickOutsideDirective = __decorate([
core_1.Injectable(),
core_1.Directive({ selector: '[clickOutside]' }),
__param(2, core_1.Inject(core_1.PLATFORM_ID)),
__metadata("design:paramtypes", [core_1.ElementRef,
core_1.NgZone,
Injectable(),
Directive({ selector: '[clickOutside]' }),
__param(2, Inject(PLATFORM_ID)),
__metadata("design:paramtypes", [ElementRef,
NgZone,
Object])

@@ -220,2 +218,2 @@ ], ClickOutsideDirective);

}());
exports.ClickOutsideDirective = ClickOutsideDirective;
export { ClickOutsideDirective };

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -8,5 +7,4 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var click_outside_directive_1 = require("./click-outside.directive");
import { NgModule } from '@angular/core';
import { ClickOutsideDirective } from './click-outside.directive';
var ClickOutsideModule = /** @class */ (function () {

@@ -16,5 +14,5 @@ function ClickOutsideModule() {

ClickOutsideModule = __decorate([
core_1.NgModule({
declarations: [click_outside_directive_1.ClickOutsideDirective],
exports: [click_outside_directive_1.ClickOutsideDirective]
NgModule({
declarations: [ClickOutsideDirective],
exports: [ClickOutsideDirective]
})

@@ -24,2 +22,2 @@ ], ClickOutsideModule);

}());
exports.ClickOutsideModule = ClickOutsideModule;
export { ClickOutsideModule };

@@ -1,6 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var click_outside_directive_1 = require("./click-outside.directive");
exports.ClickOutsideDirective = click_outside_directive_1.ClickOutsideDirective;
var click_outside_module_1 = require("./click-outside.module");
exports.ClickOutsideModule = click_outside_module_1.ClickOutsideModule;
export { ClickOutsideDirective } from './click-outside.directive';
export { ClickOutsideModule } from './click-outside.module';
{
"name": "ng-click-outside",
"version": "5.0.0",
"version": "5.1.0",
"description": "Angular directive for handling click events outside an element.",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc