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

ng2-modal

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-modal - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

9

index.js

@@ -38,2 +38,4 @@ "use strict";

}
if (this.isOpened)
return;
this.isOpened = true;

@@ -49,2 +51,4 @@ this.onOpen.emit(args);

}
if (!this.isOpened)
return;
this.isOpened = false;

@@ -111,3 +115,3 @@ this.onClose.emit(args);

selector: "modal",
template: "\n<div class=\"modal\" role=\"dialog\"\n #modalRoot\n (keydown.esc)=\"closeOnEscape ? close() : 0\"\n [ngClass]=\"{ in: isOpened, fade: isOpened }\"\n [ngStyle]=\"{ display: isOpened ? 'block' : 'none' }\"\n (click)=\"closeOnOutsideClick ? close() : 0\">\n <div [class]=\"'modal-dialog ' + modalClass\" (click)=\"preventClosing($event)\">\n <div class=\"modal-content\" *ngIf=\"isOpened\">\n <div class=\"modal-header\">\n <button *ngIf=\"!hideCloseButton\" type=\"button\" class=\"close\" data-dismiss=\"modal\" [attr.aria-label]=\"cancelButtonLabel || 'Close'\" (click)=\"close()\"><span aria-hidden=\"true\">&times;</span></button>\n <h4 class=\"modal-title\" *ngIf=\"title\">{{ title }}</h4>\n <ng-content select=\"modal-header\"></ng-content>\n </div>\n <div class=\"modal-body\">\n <ng-content select=\"modal-content\"></ng-content>\n </div>\n <div class=\"modal-footer\">\n <ng-content select=\"modal-footer\"></ng-content>\n <button *ngIf=\"cancelButtonLabel\" type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\" (click)=\"close()\">{{ cancelButtonLabel }}</button>\n <button *ngIf=\"submitButtonLabel\" type=\"button\" class=\"btn btn-primary\" (click)=\"onSubmit.emit(undefined)\">{{ submitButtonLabel }}</button>\n </div>\n </div>\n </div>\n</div>\n"
template: "\n<div class=\"modal\" \n tabindex=\"-1\"\n role=\"dialog\"\n #modalRoot\n (keydown.esc)=\"closeOnEscape ? close() : 0\"\n [ngClass]=\"{ in: isOpened, fade: isOpened }\"\n [ngStyle]=\"{ display: isOpened ? 'block' : 'none' }\"\n (click)=\"closeOnOutsideClick ? close() : 0\">\n <div [class]=\"'modal-dialog ' + modalClass\" (click)=\"preventClosing($event)\">\n <div class=\"modal-content\" *ngIf=\"isOpened\">\n <div class=\"modal-header\">\n <button *ngIf=\"!hideCloseButton\" type=\"button\" class=\"close\" data-dismiss=\"modal\" [attr.aria-label]=\"cancelButtonLabel || 'Close'\" (click)=\"close()\"><span aria-hidden=\"true\">&times;</span></button>\n <h4 class=\"modal-title\" *ngIf=\"title\">{{ title }}</h4>\n <ng-content select=\"modal-header\"></ng-content>\n </div>\n <div class=\"modal-body\">\n <ng-content select=\"modal-content\"></ng-content>\n </div>\n <div class=\"modal-footer\">\n <ng-content select=\"modal-footer\"></ng-content>\n <button *ngIf=\"cancelButtonLabel\" type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\" (click)=\"close()\">{{ cancelButtonLabel }}</button>\n <button *ngIf=\"submitButtonLabel\" type=\"button\" class=\"btn btn-primary\" (click)=\"onSubmit.emit(undefined)\">{{ submitButtonLabel }}</button>\n </div>\n </div>\n </div>\n</div>\n"
}),

@@ -119,2 +123,3 @@ __metadata('design:paramtypes', [])

exports.Modal = Modal;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
{
"name": "ng2-modal",
"version": "0.0.5",
"version": "0.0.6",
"description": "Open modal window (dialog box) for your angular2 applications using bootstrap3.",

@@ -29,5 +29,5 @@ "license": "MIT",

"devDependencies": {
"@angular/core": "^2.0.0-rc.2",
"@angular/common": "^2.0.0-rc.2",
"@angular/compiler": "^2.0.0-rc.2",
"@angular/core": "^2.0.0-rc.2",
"@angular/platform-browser": "^2.0.0-rc.2",

@@ -43,3 +43,5 @@ "@angular/platform-browser-dynamic": "^2.0.0-rc.2",

"gulp-shell": "^0.5.1",
"gulp-tslint": "^4.3.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-tslint": "^5.0.0",
"gulp-typescript": "^2.13.6",
"gulpclass": "^0.1.0",

@@ -55,5 +57,5 @@ "mocha": "^2.3.2",

"typescript": "^1.8.0",
"typings": "^0.7.12",
"typings": "^1.3.1",
"zone.js": "^0.6.12"
}
}
{
"ambientDevDependencies": {
"globalDevDependencies": {
"assertion-error": "github:DefinitelyTyped/DefinitelyTyped/assertion-error/assertion-error.d.ts#7a3ca1f0b8a0960af9fc1838f3234cc9d6ce0645",

@@ -9,5 +9,5 @@ "chai": "github:DefinitelyTyped/DefinitelyTyped/chai/chai.d.ts#7a3ca1f0b8a0960af9fc1838f3234cc9d6ce0645",

},
"ambientDependencies": {
"globalDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2"
}
}

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