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

ngx-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-clipboard - npm Package Compare versions

Comparing version 5.1.0-beta.3 to 5.1.0-beta.4

dist/public_api.d.ts

12

dist/bundles/ngx-clipboard.umd.js

@@ -22,3 +22,3 @@ (function (global, factory) {

var /** @type {?} */ option;
option = !!this.targetElm ? { target: function () { /** @type {?} */ return (_this.targetElm); } } : { text: function () { return _this.cbContent; } };
option = !!this.targetElm ? { target: function () { return (_this.targetElm); } } : { text: function () { return _this.cbContent; } };
this.clipboard = new Clipboard(this.elmRef.nativeElement, option);

@@ -46,7 +46,5 @@ this.clipboard.on('success', function () { return _this.cbOnSuccess.emit(true); });

*/
ClipboardDirective.ctorParameters = function () {
return [
{ type: _angular_core.ElementRef, },
];
};
ClipboardDirective.ctorParameters = function () { return [
{ type: _angular_core.ElementRef, },
]; };
ClipboardDirective.propDecorators = {

@@ -75,4 +73,4 @@ 'targetElm': [{ type: _angular_core.Input, args: ['ngxClipboard',] },],

exports.ClipboardDirective = ClipboardDirective;
exports.ClipboardModule = ClipboardModule;
exports.ClipboardDirective = ClipboardDirective;

@@ -79,0 +77,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

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

!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@angular/core"],factory):factory((global.ngx=global.ngx||{},global.ngx.clipboard=global.ngx.clipboard||{}),global.ng.core)}(this,function(exports,_angular_core){"use strict";var ClipboardDirective=function(){function ClipboardDirective(elmRef){this.elmRef=elmRef,this.cbOnSuccess=new _angular_core.EventEmitter,this.cbOnError=new _angular_core.EventEmitter}return ClipboardDirective.prototype.ngOnInit=function(){var option,_this=this;option=this.targetElm?{target:function(){return _this.targetElm}}:{text:function(){return _this.cbContent}},this.clipboard=new Clipboard(this.elmRef.nativeElement,option),this.clipboard.on("success",function(){return _this.cbOnSuccess.emit(!0)}),this.clipboard.on("error",function(){return _this.cbOnError.emit(!0)})},ClipboardDirective.prototype.ngOnDestroy=function(){this.clipboard&&this.clipboard.destroy()},ClipboardDirective}();ClipboardDirective.decorators=[{type:_angular_core.Directive,args:[{selector:"[ngxClipboard]"}]}],ClipboardDirective.ctorParameters=function(){return[{type:_angular_core.ElementRef}]},ClipboardDirective.propDecorators={targetElm:[{type:_angular_core.Input,args:["ngxClipboard"]}],cbContent:[{type:_angular_core.Input}],cbOnSuccess:[{type:_angular_core.Output}],cbOnError:[{type:_angular_core.Output}]};var ClipboardModule=function(){function ClipboardModule(){}return ClipboardModule}();ClipboardModule.decorators=[{type:_angular_core.NgModule,args:[{declarations:[ClipboardDirective],exports:[ClipboardDirective]}]}],ClipboardModule.ctorParameters=function(){return[]},exports.ClipboardModule=ClipboardModule,exports.ClipboardDirective=ClipboardDirective,Object.defineProperty(exports,"__esModule",{value:!0})});
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@angular/core"],factory):factory((global.ngx=global.ngx||{},global.ngx.clipboard=global.ngx.clipboard||{}),global.ng.core)}(this,function(exports,_angular_core){"use strict";var ClipboardDirective=function(){function ClipboardDirective(elmRef){this.elmRef=elmRef,this.cbOnSuccess=new _angular_core.EventEmitter,this.cbOnError=new _angular_core.EventEmitter}return ClipboardDirective.prototype.ngOnInit=function(){var option,_this=this;option=this.targetElm?{target:function(){return _this.targetElm}}:{text:function(){return _this.cbContent}},this.clipboard=new Clipboard(this.elmRef.nativeElement,option),this.clipboard.on("success",function(){return _this.cbOnSuccess.emit(!0)}),this.clipboard.on("error",function(){return _this.cbOnError.emit(!0)})},ClipboardDirective.prototype.ngOnDestroy=function(){this.clipboard&&this.clipboard.destroy()},ClipboardDirective}();ClipboardDirective.decorators=[{type:_angular_core.Directive,args:[{selector:"[ngxClipboard]"}]}],ClipboardDirective.ctorParameters=function(){return[{type:_angular_core.ElementRef}]},ClipboardDirective.propDecorators={targetElm:[{type:_angular_core.Input,args:["ngxClipboard"]}],cbContent:[{type:_angular_core.Input}],cbOnSuccess:[{type:_angular_core.Output}],cbOnError:[{type:_angular_core.Output}]};var ClipboardModule=function(){function ClipboardModule(){}return ClipboardModule}();ClipboardModule.decorators=[{type:_angular_core.NgModule,args:[{declarations:[ClipboardDirective],exports:[ClipboardDirective]}]}],ClipboardModule.ctorParameters=function(){return[]},exports.ClipboardDirective=ClipboardDirective,exports.ClipboardModule=ClipboardModule,Object.defineProperty(exports,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-clipboard.umd.min.js.map

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

export { ClipboardModule, ClipboardDirective } from './src/index';
/**
* Generated bundle index. Do not edit.
*/
export * from './public_api';

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

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./src/index","export":["ClipboardModule","ClipboardDirective"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/index","export":["ClipboardModule","ClipboardDirective"]}]}]
{"__symbolic":"module","version":3,"metadata":{"ClipboardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ClipboardDirective"}],"exports":[{"__symbolic":"reference","name":"ClipboardDirective"}]}]}],"members":{}},"Clipboard":{"__symbolic":"reference","module":"clipboard"},"ClipboardDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ngxClipboard]"}]}],"members":{"targetElm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["ngxClipboard"]}]}],"cbContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cbOnSuccess":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"cbOnError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"ClipboardModule":".\\src\\index","Clipboard":".\\src\\clipboard.directive","ClipboardDirective":".\\src\\clipboard.directive"},"importAs":"ngx-clipboard"}

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

var /** @type {?} */ option;
option = !!this.targetElm ? { target: function () { /** @type {?} */ return (_this.targetElm); } } : { text: function () { return _this.cbContent; } };
option = !!this.targetElm ? { target: function () { return (_this.targetElm); } } : { text: function () { return _this.cbContent; } };
this.clipboard = new Clipboard(this.elmRef.nativeElement, option);

@@ -41,7 +41,5 @@ this.clipboard.on('success', function () { return _this.cbOnSuccess.emit(true); });

*/
ClipboardDirective.ctorParameters = function () {
return [
{ type: ElementRef, },
];
};
ClipboardDirective.ctorParameters = function () { return [
{ type: ElementRef, },
]; };
ClipboardDirective.propDecorators = {

@@ -69,3 +67,6 @@ 'targetElm': [{ type: Input, args: ['ngxClipboard',] },],

ClipboardModule.ctorParameters = function () { return []; };
export { ClipboardModule, ClipboardDirective };
/**
* Generated bundle index. Do not edit.
*/
export { ClipboardDirective, ClipboardModule };
//# sourceMappingURL=ngx-clipboard.es5.js.map
import { Directive, ElementRef, EventEmitter, Input, NgModule, Output } from '@angular/core';
var ClipboardDirective = (function () {
class ClipboardDirective {
/**
* @param {?} elmRef
*/
function ClipboardDirective(elmRef) {
constructor(elmRef) {
this.elmRef = elmRef;

@@ -15,20 +15,18 @@ this.cbOnSuccess = new EventEmitter();

*/
ClipboardDirective.prototype.ngOnInit = function () {
var _this = this;
var /** @type {?} */ option;
option = !!this.targetElm ? { target: function () { /** @type {?} */ return (_this.targetElm); } } : { text: function () { return _this.cbContent; } };
ngOnInit() {
let /** @type {?} */ option;
option = !!this.targetElm ? { target: () => (this.targetElm) } : { text: () => this.cbContent };
this.clipboard = new Clipboard(this.elmRef.nativeElement, option);
this.clipboard.on('success', function () { return _this.cbOnSuccess.emit(true); });
this.clipboard.on('error', function () { return _this.cbOnError.emit(true); });
};
this.clipboard.on('success', () => this.cbOnSuccess.emit(true));
this.clipboard.on('error', () => this.cbOnError.emit(true));
}
/**
* @return {?}
*/
ClipboardDirective.prototype.ngOnDestroy = function () {
ngOnDestroy() {
if (this.clipboard) {
this.clipboard.destroy();
}
};
return ClipboardDirective;
}());
}
}
ClipboardDirective.decorators = [

@@ -42,5 +40,5 @@ { type: Directive, args: [{

*/
ClipboardDirective.ctorParameters = function () { return [
ClipboardDirective.ctorParameters = () => [
{ type: ElementRef, },
]; };
];
ClipboardDirective.propDecorators = {

@@ -53,7 +51,4 @@ 'targetElm': [{ type: Input, args: ['ngxClipboard',] },],

var ClipboardModule = (function () {
function ClipboardModule() {
}
return ClipboardModule;
}());
class ClipboardModule {
}
// static forRoot(): ModuleWithProviders { return { ngModule: ClipboardModule, providers: [] }; }

@@ -69,5 +64,9 @@ ClipboardModule.decorators = [

*/
ClipboardModule.ctorParameters = function () { return []; };
ClipboardModule.ctorParameters = () => [];
export { ClipboardModule, ClipboardDirective };
/**
* Generated bundle index. Do not edit.
*/
export { ClipboardDirective, ClipboardModule };
//# sourceMappingURL=ngx-clipboard.js.map

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

export { ClipboardModule, ClipboardDirective } from './src/index';
export * from './public_api';
{
"name": "ngx-clipboard",
"description": "angular 2 clipboard",
"version": "5.1.0-beta.3",
"version": "5.1.0-beta.4",
"main": "./dist/bundles/ngx-clipboard.umd.js",

@@ -6,0 +6,0 @@ "module": "./dist/modules/ngx-clipboard.es5.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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