Skip to content

Commit

Permalink
version(0.44): updated to use angular2 alfa 0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Oct 17, 2015
1 parent fb27637 commit 61225d9
Show file tree
Hide file tree
Showing 40 changed files with 81 additions and 82 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ npm-debug.log
/components/**/*.js
/components/**/*.js.map
/components/**/*.d.ts

ng2-bootstrap.js
ng2-bootstrap.d.ts
ng2-bootstrap.js.map
/logs
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.idea
demo
gulp-tasks
logs

tsd.d.ts
typings

webpack.config.js
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# ng2-bootstrap
Native Angular2 directives for Bootstrap

Works with Bootstrap 3 and 4-alfa
Native Angular2 directives for Bootstrap, works with Bootstrap 3 and 4-alfa

Goal: smooth transition from ui-bootstrap to angular2,
all components will have same API
Expand All @@ -17,6 +15,8 @@ all components will have same API

[http://valor-software.github.io/ng2-bootstrap/](http://valor-software.github.io/ng2-bootstrap/)

## If you need more modules check [here](https://github.com/valor-software/ng2-plans)

# Starter package

You can start hacking by cloning starter repo:
Expand All @@ -26,8 +26,6 @@ You can start hacking by cloning starter repo:

```bash
npm i ng2-bootstrap --save
# if you are developing with typescript it will link .d.ts from package definition
tsd link
```

## Install from source
Expand Down Expand Up @@ -71,6 +69,4 @@ Please read central `ng2` modules [readme](https://github.com/valor-software/ng2
- [ ] support animation (in progress...)
- [x] demo page
- [x] docs
- [ ] publish to bower, etc.
- [ ] migration guide from Angular 1 to Angular 2
- [x] publish to npm
22 changes: 0 additions & 22 deletions components/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion demo/components/accordion-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {AccordionDemo} from './accordion/accordion-demo';

let name = 'Accordion';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/accordion/accordion-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass
} from 'angular2/angular2';

import {accordion} from '../../../components/index';
import {accordion} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./accordion-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/alert-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {AlertDemo} from './alert/alert-demo';

let name = 'Alerts';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/alert/alert-demo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../../tsd.d.ts" />

import {Component, View, NgFor} from 'angular2/angular2';
import {Alert} from '../../../components/index';
import {Alert} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./alert-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/buttons-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {ButtonsDemo} from './buttons/buttons-demo';

let name = 'Buttons';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/buttons/buttons-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
CORE_DIRECTIVES, FORM_DIRECTIVES
} from 'angular2/angular2';

import {ButtonCheckbox, ButtonRadio} from '../../../components/index';
import {ButtonCheckbox, ButtonRadio} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./buttons-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/carousel-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {CarouselDemo} from './carousel/carousel-demo';

let name = 'Carousel';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/carousel/carousel-demo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../../tsd.d.ts" />

import {Component, View, CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/angular2';
import {carousel} from '../../../components/index';
import {carousel} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./carousel-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/collapse-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {CollapseDemo} from './collapse/collapse-demo';

let name = 'Collapse';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/collapse/collapse-demo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference path="../../../tsd.d.ts" />
import {Component, View} from 'angular2/angular2';
import {Collapse} from '../../../components/index';
import {Collapse} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./collapse-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/datepicker-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {DatepickerDemo} from './datepicker/datepicker-demo';

let name = 'Datepicker';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/datepicker/datepicker-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {Component, View, CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/angular2';

import * as moment from 'moment';
import {datepicker} from '../../../components/index';
import {datepicker} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./datepicker-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/demo-header.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference path="../../tsd.d.ts" />
import {Component, View, bootstrap, NgFor} from 'angular2/angular2';
import {Collapse, dropdown, Ng2BootstrapConfig, Ng2BootstrapTheme} from '../../components/index';
import {Collapse, dropdown, Ng2BootstrapConfig, Ng2BootstrapTheme} from '../../ng2-bootstrap';

let components = [
'Accordion', 'Alerts', 'Buttons', 'Carousel', 'Collapse', 'Datepicker',
Expand Down
2 changes: 1 addition & 1 deletion demo/components/demo-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
CORE_DIRECTIVES
} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';

let name = 'Alerts';
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/alert/alert.ts';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/dropdown-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {DropdownDemo} from './dropdown/dropdown-demo';

let name = 'Dropdowns';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/dropdown/dropdown-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {dropdown} from '../../../components/index';
import {dropdown} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./dropdown-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/pagination-section.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../tsd.d.ts" />
import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {PaginationDemo} from './pagination/pagination-demo';

let name = 'Pagination';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/pagination/pagination-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {
Component, View, FORM_DIRECTIVES, CORE_DIRECTIVES
} from 'angular2/angular2';
import {pagination} from '../../../components/index';
import {pagination} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./pagination-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/progressbar-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';
import {Ng2BootstrapConfig, Ng2BootstrapTheme} from '../../components/ng2-bootstrap-config';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {ProgressbarDemo} from './progressbar/progressbar-demo';

let name = 'Progressbar';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/progressbar/progressbar-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Component, View, CORE_DIRECTIVES, NgStyle} from 'angular2/angular2';
// switch bs3\bs4 templates
import {Ng2BootstrapConfig, Ng2BootstrapTheme} from '../../../components/ng2-bootstrap-config';

import {progressbar} from '../../../components/index';
import {progressbar} from '../../../ng2-bootstrap';

// webpack html imports
let templates = {
Expand Down
2 changes: 1 addition & 1 deletion demo/components/rating-section.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../tsd.d.ts" />
import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {RatingDemo} from './rating/rating-demo';

let name = 'Rating';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/rating/rating-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CORE_DIRECTIVES, FORM_DIRECTIVES
} from 'angular2/angular2';

import {Rating} from '../../../components/index';
import {Rating} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./rating-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/tabs-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {TabsDemo} from './tabs/tabs-demo';

let name = 'Tabs';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/tabs/tabs-demo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../../tsd.d.ts" />
import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../../components/index';
import {tabs} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./tabs-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/timepicker-section.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../tsd.d.ts" />
import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {TimepickerDemo} from './timepicker/timepicker-demo';

let name = 'Timepicker';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/timepicker/timepicker-demo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../../../tsd.d.ts" />
import {Component, View, CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/angular2';

import {Timepicker} from '../../../components/index';
import {Timepicker} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./timepicker-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/tooltip-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {TooltipDemo} from './tooltip/tooltip-demo';

let name = 'Tooltip';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/tooltip/tooltip-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CORE_DIRECTIVES, FORM_DIRECTIVES
} from 'angular2/angular2';

import {tooltip} from '../../../components/index';
import {tooltip} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./tooltip-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/components/typeahead-section.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';

import {tabs} from '../../components/index';
import {tabs} from '../../ng2-bootstrap';
import {TypeaheadDemo} from './typeahead/typeahead-demo';

let name = 'Typeahead';
Expand Down
2 changes: 1 addition & 1 deletion demo/components/typeahead/typeahead-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CORE_DIRECTIVES, FORM_DIRECTIVES
} from 'angular2/angular2';

import {typeahead} from '../../../components/index';
import {typeahead} from '../../../ng2-bootstrap';

// webpack html imports
let template = require('./typeahead-demo.html');
Expand Down
2 changes: 1 addition & 1 deletion demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../tsd.d.ts" />
import {Component, View, bootstrap, NgClass} from 'angular2/angular2';

import {Ng2BootstrapConfig, Ng2BootstrapTheme} from '../components/index';
import {Ng2BootstrapConfig, Ng2BootstrapTheme} from '../ng2-bootstrap';

let w:any = window;
if (w && w.__theme === 'bs4') {
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gulp.paths = {
'!**/*.{ts,coffee}.js'],
jssrc: [
'*.js',
'!angular2-bootstrap.js',
'!ng2-bootstrap.js',
'gulp-tasks/*.js',
'!node_modules',
'!**/*.{ts,coffee}.js']
Expand Down
22 changes: 22 additions & 0 deletions ng2-bootstrap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export * from './components/accordion/accordion';
export * from './components/alert/alert';
export * from './components/buttons/button-radio';
export * from './components/buttons/button-checkbox';
// export * from './components/datepicker/index';
export * from './components/dropdown/index';
export * from './components/dropdown/dropdown';
export * from './components/dropdown/dropdown-menu';
export * from './components/dropdown/dropdown-service';
export * from './components/dropdown/dropdown-toggle';
export * from './components/carousel/carousel';
export * from './components/collapse/collapse';
export * from './components/pagination/pagination';
export * from './components/progressbar/progressbar';
export * from './components/rating/rating';
export * from './components/tabs/tabs';
export * from './components/timepicker/timepicker';
export * from './components/tooltip/tooltip';
export * from './components/typeahead/typeahead';
export * from './components/position'
export * from './components/common'
export * from './components/ng2-bootstrap-config';
Loading

0 comments on commit 61225d9

Please sign in to comment.