Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloukit/common

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloukit/common - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

4

common.d.ts

@@ -5,3 +5,3 @@ /**

export * from './index';
export { ClickOutsideDirective as ɵb } from './components/click-outside.component';
export { HasFocusDirective as ɵa } from './components/has-focus.component';
export { CloukitClickOutsideDirective as ɵb } from './components/click-outside.component';
export { CloukitHasFocusDirective as ɵa } from './components/has-focus.component';

@@ -8,3 +8,3 @@ import { Directive, ElementRef, EventEmitter, HostListener, Input, NgModule, Output } from '@angular/core';

*/
class HasFocusDirective {
class CloukitHasFocusDirective {
/**

@@ -34,3 +34,3 @@ * @param {?} el

}
HasFocusDirective.decorators = [
CloukitHasFocusDirective.decorators = [
{ type: Directive, args: [{

@@ -43,6 +43,6 @@ selector: '[cloukitHasFocus]'

*/
HasFocusDirective.ctorParameters = () => [
CloukitHasFocusDirective.ctorParameters = () => [
{ type: ElementRef, },
];
HasFocusDirective.propDecorators = {
CloukitHasFocusDirective.propDecorators = {
'cloukitHasFocus': [{ type: Input },],

@@ -56,3 +56,3 @@ };

*/
class ClickOutsideDirective {
class CloukitClickOutsideDirective {
/**

@@ -80,3 +80,3 @@ * @param {?} el

}
ClickOutsideDirective.decorators = [
CloukitClickOutsideDirective.decorators = [
{ type: Directive, args: [{

@@ -89,6 +89,6 @@ selector: '[cloukitClickOutside]'

*/
ClickOutsideDirective.ctorParameters = () => [
CloukitClickOutsideDirective.ctorParameters = () => [
{ type: ElementRef, },
];
ClickOutsideDirective.propDecorators = {
CloukitClickOutsideDirective.propDecorators = {
'cloukitClickOutside': [{ type: Output },],

@@ -103,9 +103,9 @@ 'onClick': [{ type: HostListener, args: ['document:click', ['$event', '$event.target'],] },],

*/
class CommonModule {
class CloukitCommonModule {
}
CommonModule.decorators = [
CloukitCommonModule.decorators = [
{ type: NgModule, args: [{
imports: [],
exports: [HasFocusDirective, ClickOutsideDirective],
declarations: [HasFocusDirective, ClickOutsideDirective],
exports: [CloukitHasFocusDirective, CloukitClickOutsideDirective],
declarations: [CloukitHasFocusDirective, CloukitClickOutsideDirective],
},] },

@@ -116,3 +116,3 @@ ];

*/
CommonModule.ctorParameters = () => [];
CloukitCommonModule.ctorParameters = () => [];

@@ -123,2 +123,2 @@ /**

export { CommonModule, ClickOutsideDirective as ɵb, HasFocusDirective as ɵa };
export { CloukitCommonModule, CloukitClickOutsideDirective as ɵb, CloukitHasFocusDirective as ɵa };

@@ -8,7 +8,7 @@ import { Directive, ElementRef, EventEmitter, HostListener, Input, NgModule, Output } from '@angular/core';

*/
var HasFocusDirective = (function () {
var CloukitHasFocusDirective = (function () {
/**
* @param {?} el
*/
function HasFocusDirective(el) {
function CloukitHasFocusDirective(el) {
this.el = el;

@@ -19,3 +19,3 @@ }

*/
HasFocusDirective.prototype.ngAfterViewInit = function () {
CloukitHasFocusDirective.prototype.ngAfterViewInit = function () {
if (this.cloukitHasFocus) {

@@ -29,3 +29,3 @@ this.el.nativeElement.focus();

*/
HasFocusDirective.prototype.ngOnChanges = function (changes) {
CloukitHasFocusDirective.prototype.ngOnChanges = function (changes) {
if (changes['cloukitHasFocus'] && changes['cloukitHasFocus'].currentValue === true) {

@@ -35,3 +35,3 @@ this.el.nativeElement.focus();

};
HasFocusDirective.decorators = [
CloukitHasFocusDirective.decorators = [
{ type: Directive, args: [{

@@ -44,9 +44,9 @@ selector: '[cloukitHasFocus]'

*/
HasFocusDirective.ctorParameters = function () { return [
CloukitHasFocusDirective.ctorParameters = function () { return [
{ type: ElementRef, },
]; };
HasFocusDirective.propDecorators = {
CloukitHasFocusDirective.propDecorators = {
'cloukitHasFocus': [{ type: Input },],
};
return HasFocusDirective;
return CloukitHasFocusDirective;
}());

@@ -59,7 +59,7 @@

*/
var ClickOutsideDirective = (function () {
var CloukitClickOutsideDirective = (function () {
/**
* @param {?} el
*/
function ClickOutsideDirective(el) {
function CloukitClickOutsideDirective(el) {
this.el = el;

@@ -73,3 +73,3 @@ this.cloukitClickOutside = new EventEmitter();

*/
ClickOutsideDirective.prototype.onClick = function (event, target) {
CloukitClickOutsideDirective.prototype.onClick = function (event, target) {
if (!target) {

@@ -83,3 +83,3 @@ return;

};
ClickOutsideDirective.decorators = [
CloukitClickOutsideDirective.decorators = [
{ type: Directive, args: [{

@@ -92,10 +92,10 @@ selector: '[cloukitClickOutside]'

*/
ClickOutsideDirective.ctorParameters = function () { return [
CloukitClickOutsideDirective.ctorParameters = function () { return [
{ type: ElementRef, },
]; };
ClickOutsideDirective.propDecorators = {
CloukitClickOutsideDirective.propDecorators = {
'cloukitClickOutside': [{ type: Output },],
'onClick': [{ type: HostListener, args: ['document:click', ['$event', '$event.target'],] },],
};
return ClickOutsideDirective;
return CloukitClickOutsideDirective;
}());

@@ -108,10 +108,10 @@

*/
var CommonModule = (function () {
function CommonModule() {
var CloukitCommonModule = (function () {
function CloukitCommonModule() {
}
CommonModule.decorators = [
CloukitCommonModule.decorators = [
{ type: NgModule, args: [{
imports: [],
exports: [HasFocusDirective, ClickOutsideDirective],
declarations: [HasFocusDirective, ClickOutsideDirective],
exports: [CloukitHasFocusDirective, CloukitClickOutsideDirective],
declarations: [CloukitHasFocusDirective, CloukitClickOutsideDirective],
},] },

@@ -122,4 +122,4 @@ ];

*/
CommonModule.ctorParameters = function () { return []; };
return CommonModule;
CloukitCommonModule.ctorParameters = function () { return []; };
return CloukitCommonModule;
}());

@@ -131,2 +131,2 @@

export { CommonModule, ClickOutsideDirective as ɵb, HasFocusDirective as ɵa };
export { CloukitCommonModule, CloukitClickOutsideDirective as ɵb, CloukitHasFocusDirective as ɵa };

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

{"__symbolic":"module","version":3,"metadata":{"CommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[cloukitHasFocus]"}]}],"members":{"cloukitHasFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[cloukitClickOutside]"}]}],"members":{"cloukitClickOutside":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["document:click",["$event","$event.target"]]}]}]}}},"origins":{"CommonModule":"./components/common.module","ɵa":"./components/has-focus.component","ɵb":"./components/click-outside.component"},"importAs":"common"}
{"__symbolic":"module","version":3,"metadata":{"CloukitCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[cloukitHasFocus]"}]}],"members":{"cloukitHasFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[cloukitClickOutside]"}]}],"members":{"cloukitClickOutside":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["document:click",["$event","$event.target"]]}]}]}}},"origins":{"CloukitCommonModule":"./components/common.module","ɵa":"./components/has-focus.component","ɵb":"./components/click-outside.component"},"importAs":"common"}
import { ElementRef, EventEmitter } from '@angular/core';
export declare class ClickOutsideDirective {
export declare class CloukitClickOutsideDirective {
private el;

@@ -4,0 +4,0 @@ cloukitClickOutside: EventEmitter<MouseEvent>;

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

export declare class CommonModule {
export declare class CloukitCommonModule {
}
import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
export declare class HasFocusDirective implements OnChanges, AfterViewInit {
export declare class CloukitHasFocusDirective implements OnChanges, AfterViewInit {
private el;

@@ -4,0 +4,0 @@ cloukitHasFocus: boolean;

[
{
"name": "CommonModule",
"name": "CloukitCommonModule",
"file": "src/components/common.module.ts",

@@ -8,6 +8,6 @@ "providers": [],

{
"name": "HasFocusDirective"
"name": "CloukitHasFocusDirective"
},
{
"name": "ClickOutsideDirective"
"name": "CloukitClickOutsideDirective"
}

@@ -18,6 +18,6 @@ ],

{
"name": "HasFocusDirective"
"name": "CloukitHasFocusDirective"
},
{
"name": "ClickOutsideDirective"
"name": "CloukitClickOutsideDirective"
}

@@ -28,9 +28,9 @@ ],

{
"pos": 296,
"end": 312,
"pos": 310,
"end": 326,
"flags": 0,
"kind": 261,
"name": {
"pos": 296,
"end": 306,
"pos": 310,
"end": 320,
"flags": 0,

@@ -40,4 +40,4 @@ "text": "imports"

"initializer": {
"pos": 307,
"end": 312,
"pos": 321,
"end": 326,
"flags": 0,

@@ -49,9 +49,9 @@ "kind": 177,

{
"pos": 313,
"end": 369,
"pos": 327,
"end": 397,
"flags": 0,
"kind": 261,
"name": {
"pos": 313,
"end": 323,
"pos": 327,
"end": 337,
"flags": 0,

@@ -61,4 +61,4 @@ "text": "exports"

"initializer": {
"pos": 324,
"end": 369,
"pos": 338,
"end": 397,
"flags": 0,

@@ -68,12 +68,12 @@ "kind": 177,

{
"pos": 326,
"end": 344,
"pos": 340,
"end": 365,
"flags": 0,
"text": "HasFocusDirective"
"text": "CloukitHasFocusDirective"
},
{
"pos": 345,
"end": 367,
"pos": 366,
"end": 395,
"flags": 0,
"text": "ClickOutsideDirective"
"text": "CloukitClickOutsideDirective"
}

@@ -84,9 +84,9 @@ ]

{
"pos": 370,
"end": 431,
"pos": 398,
"end": 473,
"flags": 0,
"kind": 261,
"name": {
"pos": 370,
"end": 385,
"pos": 398,
"end": 413,
"flags": 0,

@@ -96,4 +96,4 @@ "text": "declarations"

"initializer": {
"pos": 386,
"end": 431,
"pos": 414,
"end": 473,
"flags": 0,

@@ -103,12 +103,12 @@ "kind": 177,

{
"pos": 388,
"end": 406,
"pos": 416,
"end": 441,
"flags": 0,
"text": "HasFocusDirective"
"text": "CloukitHasFocusDirective"
},
{
"pos": 407,
"end": 429,
"pos": 442,
"end": 471,
"flags": 0,
"text": "ClickOutsideDirective"
"text": "CloukitClickOutsideDirective"
}

@@ -115,0 +115,0 @@ ]

{
"name": "@cloukit/common",
"version": "1.2.0",
"version": "1.3.0",
"description": "Common directives that are used by higher level components such as hasFocus and similar.",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is not supported yet

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