ng2-bootstrap
Advanced tools
Comparing version 0.34.2 to 0.34.3
{ | ||
"name": "ng2-bootstrap", | ||
"version": "0.34.2", | ||
"version": "0.34.3", | ||
"description": "angular2 bootstrap components", | ||
"main": "index.js", | ||
"scripts": { | ||
"deploy": "NODE_ENV=production webpack -p --progress --color --optimize-minimize --optimize-dedupe --optimize-occurence-order", | ||
"postinstall": "tsd reinstall --overwrite", | ||
@@ -35,2 +36,4 @@ "prestart": "npm install", | ||
"bootstrap": "^3.3.5", | ||
"compression-webpack-plugin": "^0.2.0", | ||
"es6-promise": "^3.0.2", | ||
"eslint": "^1.1.0", | ||
@@ -37,0 +40,0 @@ "gulp": "^3.9.0", |
@@ -12,6 +12,11 @@ # angular2-bootstrap | ||
--> | ||
# Demo | ||
[http://valor-software.github.io/angular2-bootstrap/](http://valor-software.github.io/angular2-bootstrap/) | ||
# Components | ||
- [ ] Accordion | ||
- [x] Alert | ||
- [x] Alert ([ ] template url) | ||
- [x] Buttons | ||
@@ -21,3 +26,3 @@ - [ ] Carousel | ||
- [ ] Datepicker | ||
- [ ] Dropdown | ||
- [x] Dropdown ([ ] template url, [ ] append to body) | ||
- [ ] Modal | ||
@@ -33,2 +38,5 @@ - [ ] Pagination | ||
- [ ] positional service | ||
- [ ] template url support | ||
## Jump on board! :) | ||
@@ -35,0 +43,0 @@ |
@@ -31,3 +31,3 @@ /// <reference path="../../../typings/tsd.d.ts" /> | ||
type:string; | ||
close:EventEmitter; | ||
close:EventEmitter = new EventEmitter(); | ||
templateUrl:string; | ||
@@ -40,3 +40,2 @@ dismissOnTimeout:number; | ||
constructor(public el:ElementRef) { | ||
this.close = new EventEmitter(); | ||
this.closeable = el.nativeElement.getAttribute('(close)'); | ||
@@ -61,3 +60,3 @@ } | ||
// todo: mouse event + touch + pointer | ||
onClose($event:any) { | ||
onClose($event: MouseEvent) { | ||
this.close.next($event); | ||
@@ -64,0 +63,0 @@ this.closed = true; |
@@ -28,2 +28,3 @@ /// <reference path="../../../typings/tsd.d.ts" /> | ||
uncheckable:any; | ||
cd: NgModel; | ||
@@ -33,4 +34,2 @@ constructor(@Self() cd:NgModel, renderer:Renderer, elementRef:ElementRef) { | ||
this.uncheckable = elementRef.nativeElement.getAttribute('uncheckable') != null; | ||
console.log(this.uncheckable); | ||
} | ||
@@ -37,0 +36,0 @@ |
@@ -15,6 +15,5 @@ /// <reference path="../../../typings/tsd.d.ts" /> | ||
<span *ng-if="name">Hello, {{name}}!</span> | ||
<alert [dismiss-on-timeout]="3000">This alert will dismiss in 3s</alert> | ||
<alert dismiss-on-timeout="3000">This alert will dismiss in 3s</alert> | ||
<alert *ng-for="#alert of alerts;#i = index" [type]="alert.type" (close)="closeAlert(i)">{{ alert.msg }}</alert> | ||
<div > | ||
</div> | ||
<div></div> | ||
<button type="button" class='btn btn-default' (click)="addAlert()">Add Alert</button> | ||
@@ -21,0 +20,0 @@ `, |
@@ -6,3 +6,4 @@ /// <reference path="../../typings/tsd.d.ts" /> | ||
import {AlertDemo} from 'src/components/demo/alert-demo'; | ||
import {ButtonsDemo} from 'src/components/demo/buttonts-demo'; | ||
import {ButtonsDemo} from 'src/components/demo/buttons-demo'; | ||
import {DropdownDemo} from 'src/components/demo/dropdown-demo'; | ||
@@ -14,14 +15,12 @@ @Component({ | ||
template: ` | ||
<div></div> | ||
<alert-demo></alert-demo> | ||
<buttons-demo></buttons-demo> | ||
<dropdown-demo></dropdown-demo> | ||
`, | ||
directives: [AlertDemo, ButtonsDemo, coreDirectives] | ||
directives: [AlertDemo, ButtonsDemo, DropdownDemo, coreDirectives] | ||
}) | ||
export class Home { | ||
alerts:Array<Object>; | ||
constructor() { | ||
} | ||
} | ||
bootstrap(Home); |
@@ -22,11 +22,19 @@ { | ||
"src/components/demo/alert-demo.ts", | ||
"src/components/demo/buttonts-demo.ts", | ||
"src/components/demo/buttons-demo.ts", | ||
"src/components/demo/dropdown-demo.ts", | ||
"src/components/alert/alert.ts", | ||
"src/components/buttons/button-radio.ts", | ||
"src/components/buttons/button-checkbox.ts", | ||
"src/components/buttons/button-radio.ts" | ||
"src/components/dropdown/dropdown.ts", | ||
"src/components/dropdown/dropdown-menu.ts", | ||
"src/components/dropdown/dropdown-service.ts", | ||
"src/components/dropdown/dropdown-toggle.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"ignore": [ | ||
"node_modules/angular2/angular2.d.ts" | ||
] | ||
} |
var webpack = require('webpack'); | ||
var path = require('path'); | ||
/*eslint no-process-env:0*/ | ||
var isProduction = process.env.NODE_ENV || 'development'; | ||
var CompressionPlugin = require('compression-webpack-plugin'); | ||
/*eslint no-process-env:0, camelcase:0*/ | ||
var isProduction = (process.env.NODE_ENV || 'development') === 'production'; | ||
var src = 'src/public'; | ||
@@ -13,3 +15,4 @@ //var absSrc = path.join(__dirname, src); | ||
var config = { | ||
devtool: isProduction ? 'source-map' : 'evale', | ||
// isProduction ? 'source-map' : 'evale', | ||
devtool: 'source-map', | ||
@@ -102,18 +105,35 @@ debug: true, | ||
new webpack.optimize.DedupePlugin() | ||
// production | ||
//new webpack.optimize.UglifyJsPlugin({ | ||
// compress: { | ||
// warnings: false, | ||
// drop_debugger: false | ||
// }, | ||
// output: { | ||
// comments: false | ||
// }, | ||
// beautify: false | ||
//}) | ||
], | ||
pushPlugins: function () { | ||
if (!isProduction) { | ||
return; | ||
} | ||
this.plugins.push.apply(this.plugins, [ | ||
//production only | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compress: { | ||
warnings: false, | ||
drop_debugger: false | ||
}, | ||
output: { | ||
comments: false | ||
}, | ||
beautify: false | ||
}), | ||
new CompressionPlugin({ | ||
asset: '{file}.gz', | ||
algorithm: 'gzip', | ||
regExp: /\.js$|\.html|\.css|.map$/, | ||
threshold: 10240, | ||
minRatio: 0.8 | ||
}) | ||
]); | ||
}, | ||
stats: {colors: true, reasons: true} | ||
}; | ||
config.pushPlugins(); | ||
module.exports = config; |
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
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
42808
27
1023
53
22