Skip to content

Commit

Permalink
fix(build): updated to use ts 1.8.2, fixes #116
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Feb 23, 2016
1 parent 31e6300 commit 206770b
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 33 deletions.
12 changes: 6 additions & 6 deletions components/timepicker/timepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ export class Timepicker implements ControlValueAccessor, OnInit {
private set showMeridian(value:boolean) {
this._showMeridian = value;
// || !this.$error.time
if (true) {
this.updateTemplate();
return;
}
//if (true) {
this.updateTemplate();
return;
//}
// Evaluate from template
let hours = this.getHoursFromTemplate();
/*let hours = this.getHoursFromTemplate();
let minutes = this.getMinutesFromTemplate();
if (isDefined(hours) && isDefined(minutes)) {
this.selected.setHours(hours);
this.refresh();
}
}*/
}

// result value
Expand Down
2 changes: 0 additions & 2 deletions demo/components/accordion/accordion-demo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../../tsd.d.ts" />

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

Expand Down
1 change: 0 additions & 1 deletion demo/components/alert-section.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="../../tsd.d.ts" />
import { Component } from 'angular2/core';
import { CORE_DIRECTIVES } from 'angular2/common';

Expand Down
2 changes: 0 additions & 2 deletions demo/components/alert/alert-demo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../../tsd.d.ts" />

import { Component } from 'angular2/core';
import { CORE_DIRECTIVES } from 'angular2/common';
import { Alert } from '../../../ng2-bootstrap';
Expand Down
2 changes: 0 additions & 2 deletions demo/components/buttons-section.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../tsd.d.ts" />

import { Component } from 'angular2/core';
import { CORE_DIRECTIVES } from 'angular2/common';

Expand Down
2 changes: 0 additions & 2 deletions demo/components/carousel-section.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../tsd.d.ts" />

import {Component} from 'angular2/core';
import {CORE_DIRECTIVES} from 'angular2/common';

Expand Down
2 changes: 0 additions & 2 deletions demo/components/carousel/carousel-demo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../../tsd.d.ts" />

import {Component} from 'angular2/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/common';
import {CAROUSEL_DIRECTIVES} from '../../../ng2-bootstrap';
Expand Down
2 changes: 0 additions & 2 deletions demo/components/collapse-section.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../tsd.d.ts" />

import {Component} from 'angular2/core';
import {CORE_DIRECTIVES} from 'angular2/common';

Expand Down
2 changes: 0 additions & 2 deletions demo/components/datepicker-section.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../tsd.d.ts" />

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

Expand Down
2 changes: 0 additions & 2 deletions demo/components/datepicker/datepicker-demo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../../tsd.d.ts" />

import {Component} from 'angular2/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/common';

Expand Down
1 change: 0 additions & 1 deletion demo/components/demo-header.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference path="../../tsd.d.ts" />
import {Component} from 'angular2/core';
import {CORE_DIRECTIVES} from 'angular2/common';
import {
Expand Down
6 changes: 2 additions & 4 deletions demo/components/demo-section.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/// <reference path="../../tsd.d.ts" />

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

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

let name = 'Alerts';
let src = 'https://github.com/valor-software/ng2-bootstrap/blob/master/components/alert/alert.ts';
Expand Down Expand Up @@ -76,7 +74,7 @@ export class DemoSectionConfig {
</div>
</section>
`,
directives: [tabs, CORE_DIRECTIVES]
directives: [TAB_DIRECTIVES, CORE_DIRECTIVES]
})
export class DemoSection {
private demoSection: DemoSectionConfig;
Expand Down
2 changes: 0 additions & 2 deletions demo/components/dropdown-section.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="../../tsd.d.ts" />

import {Component} from 'angular2/core';
import {CORE_DIRECTIVES} from 'angular2/common';

Expand Down
7 changes: 5 additions & 2 deletions demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
/// <reference path="../tsd.d.ts" />
/// <reference path="../typings/browser.d.ts" />
import {
Component, View,
Component, View, enableProdMode,
} from 'angular2/core';
import { CORE_DIRECTIVES } from 'angular2/common';
import { bootstrap } from 'angular2/platform/browser';

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

// todo: enable prod mod only for prod build
enableProdMode();

let w:any = window;
if (w && w.__theme === 'bs4') {
Ng2BootstrapConfig.theme = Ng2BootstrapTheme.BS4;
Expand Down
2 changes: 1 addition & 1 deletion make.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const targetFolder = 'bundles';
async.waterfall([
cleanBundlesFolder,
getSystemJsBundleConfig,
buildSystemJs({}),
buildSystemJs({mangle: false}),
getSystemJsBundleConfig,
buildSystemJs({minify: true, sourceMaps: true, mangle: false}),
gzipSystemJsBundle
Expand Down
1 change: 1 addition & 0 deletions typings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"devDependencies": {},
"ambientDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#4de74cb527395c13ba20b438c3a7a419ad931f1c",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#dd638012d63e069f2c99d06ef4dcc9616a943ee4",
"require": "github:DefinitelyTyped/DefinitelyTyped/requirejs/require.d.ts#4de74cb527395c13ba20b438c3a7a419ad931f1c"
}
}

0 comments on commit 206770b

Please sign in to comment.