Skip to content

Commit

Permalink
feat(package): updated to rc.4 and new forms (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Skrypnyk authored and valorkin committed Jul 19, 2016
1 parent 1ddbcd9 commit 5b992e9
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion components/select.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import {SelectComponent} from './select/select';
import { SelectComponent } from './select/select';
export const SELECT_DIRECTIVES:Array<any> = [SelectComponent];
2 changes: 1 addition & 1 deletion components/select/off-click.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Directive, HostListener, Input, OnInit, OnDestroy} from '@angular/core';
import { Directive, HostListener, Input, OnInit, OnDestroy } from '@angular/core';

@Directive({
selector: '[offClick]'
Expand Down
6 changes: 3 additions & 3 deletions components/select/select-pipes.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {it, expect, describe, inject, beforeEachProviders} from '@angular/core/testing';
import {ComponentFixture} from '@angular/compiler/testing';
import {HighlightPipe} from './select-pipes';
import { it, expect, describe, inject, beforeEachProviders } from '@angular/core/testing';
import { ComponentFixture } from '@angular/compiler/testing';
import { HighlightPipe } from './select-pipes';

describe('Component: HighlightPipe', () => {
beforeEachProviders(() => [
Expand Down
4 changes: 2 additions & 2 deletions components/select/select-pipes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Pipe, PipeTransform} from '@angular/core';
import {escapeRegexp} from './common';
import { Pipe, PipeTransform } from '@angular/core';
import { escapeRegexp } from './common';

@Pipe({name: 'highlight'})
export class HighlightPipe implements PipeTransform {
Expand Down
12 changes: 6 additions & 6 deletions components/select/select.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Component, Input, Output, EventEmitter, ElementRef, OnInit} from '@angular/core';
import {SelectItem} from './select-item';
import {HighlightPipe, stripTags} from './select-pipes';
import {OptionsBehavior} from './select-interfaces';
import {escapeRegexp} from './common';
import {OffClickDirective} from './off-click';
import { Component, Input, Output, EventEmitter, ElementRef, OnInit } from '@angular/core';
import { SelectItem } from './select-item';
import { HighlightPipe, stripTags } from './select-pipes';
import { OptionsBehavior } from './select-interfaces';
import { escapeRegexp } from './common';
import { OffClickDirective } from './off-click';

let styles = `
.ui-select-toggle {
Expand Down
14 changes: 7 additions & 7 deletions demo/components/select-section.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES} from '@angular/common';
import { Component } from '@angular/core';
import { CORE_DIRECTIVES } from '@angular/common';

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

import {SingleDemoComponent} from './select/single-demo';
import {MultipleDemoComponent} from './select/multiple-demo';
import {ChildrenDemoComponent} from './select/children-demo';
import {RichDemoComponent} from './select/rich-demo';
import { SingleDemoComponent } from './select/single-demo';
import { MultipleDemoComponent } from './select/multiple-demo';
import { ChildrenDemoComponent } from './select/children-demo';
import { RichDemoComponent } from './select/rich-demo';

let name = 'Select';
// webpack html imports
Expand Down
8 changes: 4 additions & 4 deletions demo/components/select/children-demo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass} from '@angular/common';
import {BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';
import { Component } from '@angular/core';
import { CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass } from '@angular/common';
import { BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';

import {SELECT_DIRECTIVES} from '../../../ng2-select';
import { SELECT_DIRECTIVES } from '../../../ng2-select';

// webpack html imports
let template = require('./children-demo.html');
Expand Down
8 changes: 4 additions & 4 deletions demo/components/select/multiple-demo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass} from '@angular/common';
import {BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';
import { Component } from '@angular/core';
import { CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass } from '@angular/common';
import { BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';

import {SELECT_DIRECTIVES} from '../../../ng2-select';
import { SELECT_DIRECTIVES } from '../../../ng2-select';

// webpack html imports
let template = require('./multiple-demo.html');
Expand Down
8 changes: 4 additions & 4 deletions demo/components/select/rich-demo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass} from '@angular/common';
import {BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass } from '@angular/common';
import { BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';

import {SELECT_DIRECTIVES} from '../../../ng2-select';
import { SELECT_DIRECTIVES } from '../../../ng2-select';

const COLORS = [
{ 'name': 'Blue 10', 'hex': '#C0E6FF' },
Expand Down
8 changes: 4 additions & 4 deletions demo/components/select/single-demo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {Component} from '@angular/core';
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass} from '@angular/common';
import {BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';
import { Component } from '@angular/core';
import { CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass } from '@angular/common';
import { BUTTON_DIRECTIVES } from 'ng2-bootstrap/ng2-bootstrap';

import {SELECT_DIRECTIVES} from '../../../ng2-select';
import { SELECT_DIRECTIVES } from '../../../ng2-select';

// webpack html imports
let template = require('./single-demo.html');
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
</style>
</head>
<body>
<app>
<demo-app>
Loading...
</app>
</demo-app>

</body>
</html>
10 changes: 5 additions & 5 deletions demo/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {bootstrap} from '@angular/platform-browser-dynamic';
import {Component} from '@angular/core';
import {NgClass} from '@angular/common';
import { bootstrap } from '@angular/platform-browser-dynamic';
import { Component } from '@angular/core';
import { NgClass } from '@angular/common';

import {SelectSectionComponent} from './components/select-section';
import { SelectSectionComponent } from './components/select-section';

let gettingStarted = require('./getting-started.md');

@Component({
selector: 'app',
selector: 'demo-app',
template: `
<main class="bd-pageheader">
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion ng2-select.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {SELECT_DIRECTIVES} from './components/select';
import { SELECT_DIRECTIVES } from './components/select';

export * from './components/select/select';
export * from './components/select';
Expand Down

0 comments on commit 5b992e9

Please sign in to comment.