Comparing version 0.0.5 to 0.0.6
@@ -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\">×</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\">×</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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
21988
157
28