diff --git a/public/docs/_examples/architecture/dart/.docsync.json b/public/docs/_examples/architecture/dart/.docsync.json deleted file mode 100644 index 59471b5a08..0000000000 --- a/public/docs/_examples/architecture/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Architecture Overview", - "docPart": "guide" -} diff --git a/public/docs/_examples/architecture/dart/example-config.json b/public/docs/_examples/architecture/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/architecture/dart/lib/app_component.dart b/public/docs/_examples/architecture/dart/lib/app_component.dart deleted file mode 100644 index d0253504b4..0000000000 --- a/public/docs/_examples/architecture/dart/lib/app_component.dart +++ /dev/null @@ -1,15 +0,0 @@ -// #docregion import -import 'package:angular2/core.dart'; -// #enddocregion import - -import 'hero_list_component.dart'; -import 'sales_tax_component.dart'; - -@Component( - selector: 'my-app', - template: ''' - - ''', - directives: const [HeroListComponent, SalesTaxComponent]) -// #docregion export -class AppComponent { } diff --git a/public/docs/_examples/architecture/dart/lib/backend_service.dart b/public/docs/_examples/architecture/dart/lib/backend_service.dart deleted file mode 100644 index ef46001648..0000000000 --- a/public/docs/_examples/architecture/dart/lib/backend_service.dart +++ /dev/null @@ -1,28 +0,0 @@ -import 'dart:async'; - -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'logger_service.dart'; - -@Injectable() -class BackendService { - static final _mockHeroes = [ - new Hero('Windstorm', 'Weather mastery'), - new Hero('Mr. Nice', 'Killing them with kindness'), - new Hero('Magneta', 'Manipulates metalic objects') - ]; - - final Logger _logger; - - BackendService(Logger this._logger); - - Future getAll(type) { - // TODO get from the database - if (type == Hero) return new Future.value(_mockHeroes); - - var msg = 'Cannot get object of this type'; - _logger.error(msg); - throw new Exception(msg); - } -} diff --git a/public/docs/_examples/architecture/dart/lib/hero.dart b/public/docs/_examples/architecture/dart/lib/hero.dart deleted file mode 100644 index 8b9bf3dff3..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero.dart +++ /dev/null @@ -1,7 +0,0 @@ -class Hero { - static int _nextId = 1; - final int id; - String name, power; - - Hero(this.name, [this.power = '']) : id = _nextId++; -} diff --git a/public/docs/_examples/architecture/dart/lib/hero_detail_component.dart b/public/docs/_examples/architecture/dart/lib/hero_detail_component.dart deleted file mode 100644 index 16a22159d8..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero_detail_component.dart +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -@Component( - selector: 'hero-detail', - templateUrl: 'hero_detail_component.html') -class HeroDetailComponent { - @Input() - Hero hero; -} diff --git a/public/docs/_examples/architecture/dart/lib/hero_detail_component.html b/public/docs/_examples/architecture/dart/lib/hero_detail_component.html deleted file mode 100644 index 224de8bb86..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero_detail_component.html +++ /dev/null @@ -1,9 +0,0 @@ -
-

{{hero.name}} Detail

-
Id: {{hero.id}}
-
Name: - - - -
-
Power:
diff --git a/public/docs/_examples/architecture/dart/lib/hero_list_component.dart b/public/docs/_examples/architecture/dart/lib/hero_list_component.dart deleted file mode 100644 index 8d30a2344e..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero_list_component.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'hero_detail_component.dart'; -import 'hero_service.dart'; - -// #docregion metadata -@Component( - selector: 'hero-list', - templateUrl: 'hero_list_component.html', - directives: const [HeroDetailComponent], - // #docregion providers - providers: const [HeroService] - // #enddocregion providers - ) -// #docregion class -class HeroListComponent implements OnInit { - // #enddocregion metadata - List heroes; - Hero selectedHero; - // #docregion ctor - final HeroService _heroService; - - HeroListComponent(this._heroService); - // #enddocregion ctor - - void ngOnInit() { - heroes = _heroService.getHeroes(); - } - - void selectHero(Hero hero) { - selectedHero = hero; - } - // #docregion metadata -} diff --git a/public/docs/_examples/architecture/dart/lib/hero_list_component.html b/public/docs/_examples/architecture/dart/lib/hero_list_component.html deleted file mode 100644 index de60c4e376..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero_list_component.html +++ /dev/null @@ -1,11 +0,0 @@ - -

Hero List

- -

Pick a hero from the list

- - - diff --git a/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html b/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html deleted file mode 100644 index eef5b9a3bf..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html +++ /dev/null @@ -1,9 +0,0 @@ - -
  • {{hero.name}}
  • - -
  • - - - -
  • - diff --git a/public/docs/_examples/architecture/dart/lib/hero_service.dart b/public/docs/_examples/architecture/dart/lib/hero_service.dart deleted file mode 100644 index a23734d327..0000000000 --- a/public/docs/_examples/architecture/dart/lib/hero_service.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'backend_service.dart'; -import 'hero.dart'; -import 'logger_service.dart'; - -@Injectable() -// #docregion class -class HeroService { - final BackendService _backendService; - final Logger _logger; - final List heroes = []; - - HeroService(this._logger, this._backendService); - - List getHeroes() { - _backendService.getAll(Hero).then((heroes) { - _logger.log('Fetched ${heroes.length} heroes.'); - this.heroes.addAll(heroes); // fill cache - }); - return heroes; - } -} diff --git a/public/docs/_examples/architecture/dart/lib/logger_service.dart b/public/docs/_examples/architecture/dart/lib/logger_service.dart deleted file mode 100644 index 2b8e19fde5..0000000000 --- a/public/docs/_examples/architecture/dart/lib/logger_service.dart +++ /dev/null @@ -1,11 +0,0 @@ -import 'dart:html'; - -import 'package:angular2/core.dart'; - -@Injectable() -// #docregion class -class Logger { - void log(Object msg) => window.console.log(msg); - void error(Object msg) => window.console.error(msg); - void warn(Object msg) => window.console.warn(msg); -} diff --git a/public/docs/_examples/architecture/dart/lib/sales_tax_component.dart b/public/docs/_examples/architecture/dart/lib/sales_tax_component.dart deleted file mode 100644 index 4a1977ba06..0000000000 --- a/public/docs/_examples/architecture/dart/lib/sales_tax_component.dart +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'sales_tax_service.dart'; -import 'tax_rate_service.dart'; - -@Component( - selector: 'sales-tax', - template: ''' -

    Sales Tax Calculator

    - Amount: - -
    - The sales tax is - {{ getTax(amountBox.value) | currency:'USD':true:'1.2-2' }} -
    - ''', - providers: const [SalesTaxService, TaxRateService]) -class SalesTaxComponent { - SalesTaxService _salesTaxService; - - SalesTaxComponent(this._salesTaxService) {} - - num getTax(dynamic /* String | num */ value) => - this._salesTaxService.getVAT(value); -} diff --git a/public/docs/_examples/architecture/dart/lib/sales_tax_service.dart b/public/docs/_examples/architecture/dart/lib/sales_tax_service.dart deleted file mode 100644 index 126f2c3033..0000000000 --- a/public/docs/_examples/architecture/dart/lib/sales_tax_service.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'tax_rate_service.dart'; - -@Injectable() -class SalesTaxService { - TaxRateService rateService; - - SalesTaxService(this.rateService); - - num getVAT(dynamic /* String | num */ value) => - rateService.getRate('VAT') * - (value is num ? value : num.parse(value, (_) => 0)); -} diff --git a/public/docs/_examples/architecture/dart/lib/tax_rate_service.dart b/public/docs/_examples/architecture/dart/lib/tax_rate_service.dart deleted file mode 100644 index 87613acc4d..0000000000 --- a/public/docs/_examples/architecture/dart/lib/tax_rate_service.dart +++ /dev/null @@ -1,6 +0,0 @@ -import 'package:angular2/core.dart'; - -@Injectable() -class TaxRateService { - getRate(String rateName) => 0.10; -} diff --git a/public/docs/_examples/architecture/dart/pubspec.yaml b/public/docs/_examples/architecture/dart/pubspec.yaml deleted file mode 100644 index ad7f759bb2..0000000000 --- a/public/docs/_examples/architecture/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: developer_guide_intro -description: Developer Guide Intro -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/architecture/dart/web/index.html b/public/docs/_examples/architecture/dart/web/index.html deleted file mode 100644 index 840f107c53..0000000000 --- a/public/docs/_examples/architecture/dart/web/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - Architecture of Angular - - - - - - - - - Loading... - - diff --git a/public/docs/_examples/architecture/dart/web/main.dart b/public/docs/_examples/architecture/dart/web/main.dart deleted file mode 100644 index 78397625f8..0000000000 --- a/public/docs/_examples/architecture/dart/web/main.dart +++ /dev/null @@ -1,14 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; -// #docregion import -import 'package:developer_guide_intro/app_component.dart'; -// #enddocregion import -import 'package:developer_guide_intro/backend_service.dart'; -import 'package:developer_guide_intro/hero_service.dart'; -import 'package:developer_guide_intro/logger_service.dart'; - -void main() { - // #docregion bootstrap - bootstrap(AppComponent, [BackendService, HeroService, Logger]); - // #enddocregion bootstrap -} diff --git a/public/docs/_examples/attribute-directives/dart/.docsync.json b/public/docs/_examples/attribute-directives/dart/.docsync.json deleted file mode 100644 index de4f8418ee..0000000000 --- a/public/docs/_examples/attribute-directives/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Attribute Directives", - "docPart": "guide" -} diff --git a/public/docs/_examples/attribute-directives/dart/example-config.json b/public/docs/_examples/attribute-directives/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/attribute-directives/dart/lib/app_component.dart b/public/docs/_examples/attribute-directives/dart/lib/app_component.dart deleted file mode 100644 index 29f44ea6e9..0000000000 --- a/public/docs/_examples/attribute-directives/dart/lib/app_component.dart +++ /dev/null @@ -1,12 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'highlight_directive.dart'; - -@Component( - selector: 'my-app', - templateUrl: 'app_component.html', - directives: const [HighlightDirective]) -class AppComponent { - String color; -} diff --git a/public/docs/_examples/attribute-directives/dart/lib/app_component.html b/public/docs/_examples/attribute-directives/dart/lib/app_component.html deleted file mode 100644 index f174bebbbb..0000000000 --- a/public/docs/_examples/attribute-directives/dart/lib/app_component.html +++ /dev/null @@ -1,20 +0,0 @@ - - -

    My First Attribute Directive

    -

    Pick a highlight color

    -
    - Green - Yellow - Cyan -
    - -

    Highlight me!

    - - - - -

    -Highlight me too! -

    - - diff --git a/public/docs/_examples/attribute-directives/dart/lib/app_component_1.html b/public/docs/_examples/attribute-directives/dart/lib/app_component_1.html deleted file mode 100644 index e5ee1c6463..0000000000 --- a/public/docs/_examples/attribute-directives/dart/lib/app_component_1.html +++ /dev/null @@ -1,7 +0,0 @@ - -

    My First Attribute Directive

    -

    Highlight me!

    - - -

    I am green with envy!

    - diff --git a/public/docs/_examples/attribute-directives/dart/lib/highlight_directive.dart b/public/docs/_examples/attribute-directives/dart/lib/highlight_directive.dart deleted file mode 100644 index d0a2dc8726..0000000000 --- a/public/docs/_examples/attribute-directives/dart/lib/highlight_directive.dart +++ /dev/null @@ -1,45 +0,0 @@ -// #docplaster -// #docregion full -import 'package:angular2/core.dart'; - -@Directive(selector: '[myHighlight]') -// #docregion class -class HighlightDirective { - String _defaultColor = 'red'; - final dynamic _el; - - HighlightDirective(ElementRef elRef) : _el = elRef.nativeElement; - // #enddocregion class - - // #docregion defaultColor - @Input() - set defaultColor(String colorName) { - _defaultColor = (colorName ?? _defaultColor); - } - // #enddocregion defaultColor - // #docregion class - - // #docregion color - @Input('myHighlight') - String highlightColor; - // #enddocregion color - - // #docregion mouse-enter - @HostListener('mouseenter') - void onMouseEnter() => _highlight(highlightColor ?? _defaultColor); - - // #enddocregion mouse-enter - @HostListener('mouseleave') - void onMouseLeave() => _highlight(); - - void _highlight([String color]) { - if (_el != null) _el.style.backgroundColor = color; - } -} -// #enddocregion class -// #enddocregion full -/* -// #docregion highlight -@Input() String myHighlight; -// #enddocregion highlight -*/ diff --git a/public/docs/_examples/attribute-directives/dart/lib/highlight_directive_1.dart b/public/docs/_examples/attribute-directives/dart/lib/highlight_directive_1.dart deleted file mode 100644 index 2ce0e35919..0000000000 --- a/public/docs/_examples/attribute-directives/dart/lib/highlight_directive_1.dart +++ /dev/null @@ -1,11 +0,0 @@ -// #docregion -library attribute_directives.highlight_directive; - -import 'package:angular2/core.dart'; - -@Directive(selector: '[myHighlight]') -class HighlightDirective { - HighlightDirective(ElementRef element) { - element.nativeElement.style.backgroundColor = 'yellow'; - } -} diff --git a/public/docs/_examples/attribute-directives/dart/lib/highlight_directive_2.dart b/public/docs/_examples/attribute-directives/dart/lib/highlight_directive_2.dart deleted file mode 100644 index 6745685c09..0000000000 --- a/public/docs/_examples/attribute-directives/dart/lib/highlight_directive_2.dart +++ /dev/null @@ -1,33 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Directive(selector: '[myHighlight]') -class HighlightDirective { - // #docregion ctor - final dynamic _el; - - HighlightDirective(ElementRef elRef) : _el = elRef.nativeElement; - // #enddocregion ctor - - // #docregion mouse-methods, host - @HostListener('mouseenter') - void onMouseEnter() { - // #enddocregion host - _highlight('yellow'); - // #docregion host - } - - @HostListener('mouseleave') - void onMouseLeave() { - // #enddocregion host - _highlight(); - // #docregion host - } - // #enddocregion host - - void _highlight([String color]) { - if (_el != null) _el.style.backgroundColor = color; - } - // #enddocregion mouse-methods -} -// #enddocregion diff --git a/public/docs/_examples/attribute-directives/dart/pubspec.yaml b/public/docs/_examples/attribute-directives/dart/pubspec.yaml deleted file mode 100644 index de9a7e8ae8..0000000000 --- a/public/docs/_examples/attribute-directives/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: attribute_directives -description: Attribute directives example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/attribute-directives/dart/web/index.html b/public/docs/_examples/attribute-directives/dart/web/index.html deleted file mode 100644 index ad852ad9eb..0000000000 --- a/public/docs/_examples/attribute-directives/dart/web/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - Attribute Directives - - - - - - Loading... - - diff --git a/public/docs/_examples/attribute-directives/dart/web/main.dart b/public/docs/_examples/attribute-directives/dart/web/main.dart deleted file mode 100644 index 0703b7ab25..0000000000 --- a/public/docs/_examples/attribute-directives/dart/web/main.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:attribute_directives/app_component.dart'; - -main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/component-styles/dart/.docsync.json b/public/docs/_examples/component-styles/dart/.docsync.json deleted file mode 100644 index 9dcb83d783..0000000000 --- a/public/docs/_examples/component-styles/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Component Styles", - "docPart": "guide" -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero.dart b/public/docs/_examples/component-styles/dart/lib/hero.dart deleted file mode 100755 index cdfecf4d79..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero.dart +++ /dev/null @@ -1,8 +0,0 @@ -class Hero { - bool active = false; - - final String name; - final List team; - - Hero(this.name, this.team); -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_app_component.dart b/public/docs/_examples/component-styles/dart/lib/hero_app_component.dart deleted file mode 100755 index bba326e603..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_app_component.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:angular2/core.dart'; -import 'hero.dart'; -import 'hero_app_main_component.dart'; - -// #docregion -@Component( - selector: 'hero-app', - template: ''' -

    Tour of Heroes

    - ''', - styles: const ['h1 { font-weight: normal; }'], - directives: const [HeroAppMainComponent]) -class HeroAppComponent { -// #enddocregion - Hero hero = - new Hero('Human Torch', ['Mister Fantastic', 'Invisible Woman', 'Thing']); - - @HostBinding('class') - String get themeClass => 'theme-light'; -// #docregion -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_app_main_component.dart b/public/docs/_examples/component-styles/dart/lib/hero_app_main_component.dart deleted file mode 100755 index ddec19537b..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_app_main_component.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'hero_details_component.dart'; -import 'hero_controls_component.dart'; -import 'quest_summary_component.dart'; - -@Component( - selector: 'hero-app-main', - template: ''' - - - - ''', - directives: const [ - HeroDetailsComponent, - HeroControlsComponent, - QuestSummaryComponent - ]) -class HeroAppMainComponent { - @Input() Hero hero; -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_controls_component.dart b/public/docs/_examples/component-styles/dart/lib/hero_controls_component.dart deleted file mode 100755 index 52ec2e1acb..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_controls_component.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:angular2/core.dart'; -import 'hero.dart'; - -// #docregion inlinestyles -@Component( - selector: 'hero-controls', - template: ''' - -

    Controls

    - ''') -class HeroControlsComponent { - @Input() - Hero hero; - - void activate() { - hero.active = true; - } -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_details_box.css b/public/docs/_examples/component-styles/dart/lib/hero_details_box.css deleted file mode 100755 index 443c863cb4..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_details_box.css +++ /dev/null @@ -1,6 +0,0 @@ -:host { - padding: 10px; -} -h3 { - background-color: yellow; -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_details_component.css b/public/docs/_examples/component-styles/dart/lib/hero_details_component.css deleted file mode 100755 index 6e4cd2bb26..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_details_component.css +++ /dev/null @@ -1,32 +0,0 @@ -/* #docregion import */ -/* pub build fails on - @ import 'hero_details_box.css'; - See https://github.com/angular/angular/issues/8518 */ - -@import '/packages/component_styles/hero_details_box.css'; -/* #enddocregion import */ - -/* #docregion host */ -:host { - display: block; - border: 1px solid black; -} -/* #enddocregion host */ - -/* #docregion hostfunction */ -:host(.active) { - border-width: 3px; -} -/* #enddocregion hostfunction */ - -/* #docregion hostcontext */ -:host-context(.theme-light) h2 { - background-color: #eef; -} -/* #enddocregion hostcontext */ - -/* #docregion deep */ -:host /deep/ h3 { - font-style: italic; -} -/* #enddocregion deep */ diff --git a/public/docs/_examples/component-styles/dart/lib/hero_details_component.dart b/public/docs/_examples/component-styles/dart/lib/hero_details_component.dart deleted file mode 100755 index 023cc1c170..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_details_component.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:angular2/core.dart'; -import 'hero.dart'; -import 'hero_team_component.dart'; - -// #docregion styleurls -@Component( - selector: 'hero-details', - template: ''' -

    {{hero.name}}

    - - ''', - styleUrls: const ['hero_details_component.css'], - directives: const [HeroTeamComponent]) -class HeroDetailsComponent { - // #enddocregion styleurls - @Input() Hero hero; - // #docregion styleurls -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_team_component.css b/public/docs/_examples/component-styles/dart/lib/hero_team_component.css deleted file mode 100755 index b87679886b..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_team_component.css +++ /dev/null @@ -1,3 +0,0 @@ -li { - list-style-type: square; -} diff --git a/public/docs/_examples/component-styles/dart/lib/hero_team_component.dart b/public/docs/_examples/component-styles/dart/lib/hero_team_component.dart deleted file mode 100755 index ec8323b633..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/hero_team_component.dart +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:angular2/core.dart'; -import 'hero.dart'; - -// #docregion stylelink -@Component( - selector: 'hero-team', - template: ''' - -

    Team

    -
      -
    • - {{member}} -
    • -
    ''') -class HeroTeamComponent { - @Input() Hero hero; -} diff --git a/public/docs/_examples/component-styles/dart/lib/quest_summary_component.css b/public/docs/_examples/component-styles/dart/lib/quest_summary_component.css deleted file mode 100755 index 207fa981dd..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/quest_summary_component.css +++ /dev/null @@ -1,5 +0,0 @@ -:host { - display: block; - background-color: green; - color: white; -} diff --git a/public/docs/_examples/component-styles/dart/lib/quest_summary_component.dart b/public/docs/_examples/component-styles/dart/lib/quest_summary_component.dart deleted file mode 100755 index dbfe8d99d0..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/quest_summary_component.dart +++ /dev/null @@ -1,18 +0,0 @@ -// #docplaster -import 'package:angular2/core.dart'; - -// #docregion -@Component( - selector: 'quest-summary', -// #docregion urls - templateUrl: 'quest_summary_component.html', - styleUrls: const ['quest_summary_component.css']) -// #enddocregion urls -class QuestSummaryComponent {} -// #enddocregion -/* -// #docregion encapsulation.native - // warning: few browsers support shadow DOM encapsulation at this time - encapsulation: ViewEncapsulation.Native - // #enddocregion encapsulation.native -*/ diff --git a/public/docs/_examples/component-styles/dart/lib/quest_summary_component.html b/public/docs/_examples/component-styles/dart/lib/quest_summary_component.html deleted file mode 100755 index ace27d2a1c..0000000000 --- a/public/docs/_examples/component-styles/dart/lib/quest_summary_component.html +++ /dev/null @@ -1 +0,0 @@ -

    No quests in progress

    diff --git a/public/docs/_examples/component-styles/dart/pubspec.yaml b/public/docs/_examples/component-styles/dart/pubspec.yaml deleted file mode 100755 index 06e58a8833..0000000000 --- a/public/docs/_examples/component-styles/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: component_styles -description: Component Styles example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/component-styles/dart/web/index.html b/public/docs/_examples/component-styles/dart/web/index.html deleted file mode 100755 index a74d581227..0000000000 --- a/public/docs/_examples/component-styles/dart/web/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - Component Styles - - - - - - - - -

    External H1 Title for E2E test

    - - -
      -
    • External list for E2E test
    • -
    - - - diff --git a/public/docs/_examples/component-styles/dart/web/main.dart b/public/docs/_examples/component-styles/dart/web/main.dart deleted file mode 100755 index 536b8c155a..0000000000 --- a/public/docs/_examples/component-styles/dart/web/main.dart +++ /dev/null @@ -1,6 +0,0 @@ -import 'package:angular2/platform/browser.dart'; -import 'package:component_styles/hero_app_component.dart'; - -main() { - bootstrap(HeroAppComponent); -} diff --git a/public/docs/_examples/dependency-injection/dart/.analysis_options b/public/docs/_examples/dependency-injection/dart/.analysis_options deleted file mode 100644 index d8c582e96f..0000000000 --- a/public/docs/_examples/dependency-injection/dart/.analysis_options +++ /dev/null @@ -1,16 +0,0 @@ -# Supported lint rules and documentation: http://dart-lang.github.io/linter/lints/ -linter: - rules: - - always_declare_return_types - - camel_case_types - - empty_constructor_bodies - - annotate_overrides - - avoid_init_to_null - - constant_identifier_names - - one_member_abstracts - - slash_for_doc_comments - - sort_constructors_first - - unnecessary_brace_in_string_interp - -analyzer: - # strong-mode: true diff --git a/public/docs/_examples/dependency-injection/dart/.docsync.json b/public/docs/_examples/dependency-injection/dart/.docsync.json deleted file mode 100644 index fe3b9a3073..0000000000 --- a/public/docs/_examples/dependency-injection/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Dependency Injection", - "docPart": "guide" -} diff --git a/public/docs/_examples/dependency-injection/dart/example-config.json b/public/docs/_examples/dependency-injection/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/dependency-injection/dart/lib/app_component.dart b/public/docs/_examples/dependency-injection/dart/lib/app_component.dart deleted file mode 100644 index 5339e55d02..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/app_component.dart +++ /dev/null @@ -1,64 +0,0 @@ -import 'package:angular2/core.dart'; - -import 'app_config.dart'; -import 'car/car_component.dart'; -import 'heroes/heroes_component.dart'; -import 'logger_service.dart'; -import 'user_service.dart'; -import 'injector_component.dart'; -import 'test_component.dart'; -import 'providers_component.dart'; - -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    - - - -

    User

    -

    - {{userInfo}} - -

    - - - - ''', - directives: const [ - CarComponent, - HeroesComponent, - InjectorComponent, - TestComponent, - ProvidersComponent - ], - // #docregion providers - providers: const [ - Logger, UserService, - const Provider(APP_CONFIG, useFactory: heroDiConfigFactory)] - // #enddocregion providers -) -class AppComponent { - final UserService _userService; - final String title; - - // #docregion ctor - AppComponent(@Inject(APP_CONFIG) AppConfig config, this._userService) - : title = config.title; - // #enddocregion ctor - - bool get isAuthorized { - return user.isAuthorized; - } - - void nextUser() { - _userService.getNewUser(); - } - - User get user { - return _userService.user; - } - - String get userInfo => 'Current user, ${user.name}, is' + - (isAuthorized ? '' : ' not') + ' authorized. '; -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/app_component_1.dart b/public/docs/_examples/dependency-injection/dart/lib/app_component_1.dart deleted file mode 100644 index ad1527f131..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/app_component_1.dart +++ /dev/null @@ -1,18 +0,0 @@ -// Early versions - -// #docregion -import 'package:angular2/core.dart'; - -import 'car/car_component.dart'; -import 'heroes/heroes_component_1.dart'; - -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    - - ''', - directives: const [CarComponent, HeroesComponent]) -class AppComponent { - final String title = 'Dependency Injection'; -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/app_component_2.dart b/public/docs/_examples/dependency-injection/dart/lib/app_component_2.dart deleted file mode 100644 index 6017a9019f..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/app_component_2.dart +++ /dev/null @@ -1,36 +0,0 @@ -// #docregion - -// #docregion imports -import 'package:angular2/core.dart'; - -import 'app_config.dart'; -import 'car/car_component.dart'; -import 'heroes/heroes_component_1.dart'; -import 'logger_service.dart'; -// #enddocregion imports - -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    - - ''', - directives: const [ - CarComponent, - HeroesComponent - ], - providers: const [ - Logger, - // #docregion providers - const Provider(APP_CONFIG, useValue: heroDiConfig) - // #enddocregion providers - ] -) -class AppComponent { - final String title; - - // #docregion ctor - AppComponent(@Inject(APP_CONFIG) Map config) - : title = config['title']; - // #enddocregion ctor -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/app_config.dart b/public/docs/_examples/dependency-injection/dart/lib/app_config.dart deleted file mode 100644 index faadf62126..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/app_config.dart +++ /dev/null @@ -1,27 +0,0 @@ -// #docregion token -import 'package:angular2/core.dart'; - -const APP_CONFIG = const OpaqueToken('app.config'); -// #enddocregion token - -// #docregion config -const Map heroDiConfig = const { - 'apiEndpoint' : 'api.heroes.com', - 'title' : 'Dependency Injection' -}; -// #enddocregion config - -// #docregion config-alt -class AppConfig { - String apiEndpoint; - String title; -} - -AppConfig heroDiConfigFactory() => new AppConfig() - ..apiEndpoint = 'api.heroes.com' - ..title = 'Dependency Injection'; -// #enddocregion config-alt - -const appConfigProvider = const Provider(APP_CONFIG, - useFactory: heroDiConfigFactory, - deps: const []); diff --git a/public/docs/_examples/dependency-injection/dart/lib/car/car.dart b/public/docs/_examples/dependency-injection/dart/lib/car/car.dart deleted file mode 100644 index ff812c9dfa..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/car/car.dart +++ /dev/null @@ -1,31 +0,0 @@ -import 'package:angular2/core.dart'; - -@Injectable() -class Engine { - final int cylinders; - - Engine() : cylinders = 4; - Engine.withCylinders(this.cylinders); -} - -@Injectable() -class Tires { - String make = 'Flintstone'; - String model = 'Square'; -} - -@Injectable() -class Car { - //#docregion car-ctor - final Engine engine; - final Tires tires; - String description = 'DI'; - - Car(this.engine, this.tires); - // #enddocregion car-ctor - - // Method using the engine and tires - String drive() => '$description car with ' - '${engine.cylinders} cylinders and ' - '${tires.make} tires.'; -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/car/car_component.dart b/public/docs/_examples/dependency-injection/dart/lib/car/car_component.dart deleted file mode 100644 index b7e663b019..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/car/car_component.dart +++ /dev/null @@ -1,33 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'car.dart'; -import 'car_creations.dart' as carCreations; -import 'car_factory.dart'; -import 'car_injector.dart'; -import 'car_no_di.dart' as carNoDi; - -@Component( - selector: 'my-car', - template: ''' -

    Cars

    -
    {{car.drive()}}
    -
    {{noDiCar.drive()}}
    -
    {{injectorCar.drive()}}
    -
    {{factoryCar.drive()}}
    -
    {{simpleCar.drive()}}
    -
    {{superCar.drive()}}
    -
    {{testCar.drive()}}
    ''', - providers: const [Car, Engine, Tires]) -class CarComponent { - final Car car; - - CarComponent(this.car); - - Car factoryCar = (new CarFactory()).createCar(); - Car injectorCar = useInjector(); - carNoDi.Car noDiCar = new carNoDi.Car(); - Car simpleCar = carCreations.simpleCar(); - Car superCar = carCreations.superCar(); - Car testCar = carCreations.testCar(); -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/car/car_creations.dart b/public/docs/_examples/dependency-injection/dart/lib/car/car_creations.dart deleted file mode 100644 index 96674b83f0..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/car/car_creations.dart +++ /dev/null @@ -1,41 +0,0 @@ -// #docplaster -// Examples with car and engine variations -import 'car.dart'; - -///////// example 1 //////////// -Car simpleCar() => - // #docregion car-ctor-instantiation - // Simple car with 4 cylinders and Flintstone tires. - new Car(new Engine(), new Tires()) - // #enddocregion car-ctor-instantiation - ..description = 'Simple'; - -///////// example 2 //////////// - -// #docregion car-ctor-instantiation-with-param -class Engine2 extends Engine { - Engine2(cylinders) : super.withCylinders(cylinders); -} - -Car superCar() => - // Super car with 12 cylinders and Flintstone tires. - new Car(new Engine2(12), new Tires()) - ..description = 'Super'; -// #enddocregion car-ctor-instantiation-with-param - -/////////// example 3 ////////// - -// #docregion car-ctor-instantiation-with-mocks -class MockEngine extends Engine { - MockEngine() : super.withCylinders(8); -} - -class MockTires extends Tires { - MockTires() { make = 'YokoGoodStone'; } -} - -Car testCar() => - // Test car with 8 cylinders and YokoGoodStone tires. - new Car(new MockEngine(), new MockTires()) - ..description = 'Test'; -// #enddocregion car-ctor-instantiation-with-mocks diff --git a/public/docs/_examples/dependency-injection/dart/lib/car/car_factory.dart b/public/docs/_examples/dependency-injection/dart/lib/car/car_factory.dart deleted file mode 100644 index 6107c894b7..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/car/car_factory.dart +++ /dev/null @@ -1,12 +0,0 @@ -// #docregion -import 'car.dart'; - -// BAD pattern! -class CarFactory { - Car createCar() => - new Car(createEngine(), createTires()) - ..description = 'Factory'; - - Engine createEngine() => new Engine(); - Tires createTires() => new Tires(); -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/car/car_injector.dart b/public/docs/_examples/dependency-injection/dart/lib/car/car_injector.dart deleted file mode 100644 index 07d78559eb..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/car/car_injector.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'package:angular2/core.dart'; - -import '../logger_service.dart'; -import 'car.dart'; - -// #docregion injector -Car useInjector() { - ReflectiveInjector injector; - // #enddocregion injector - /* - // #docregion injector-no-new - // Cannot instantiate an ReflectiveInjector like this! - var injector = new ReflectiveInjector([Car, Engine, Tires]); - // #enddocregion injector-no-new - */ - // #docregion injector, injector-create-and-call - injector = ReflectiveInjector.resolveAndCreate([Car, Engine, Tires]); - // #docregion injector-call - var car = injector.get(Car); - // #enddocregion injector-call, injector-create-and-call - car.description = 'Injector'; - - injector = ReflectiveInjector.resolveAndCreate([Logger]); - var logger = injector.get(Logger); - logger.log('Injector car.drive() said: ' + car.drive()); - return car; -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/car/car_no_di.dart b/public/docs/_examples/dependency-injection/dart/lib/car/car_no_di.dart deleted file mode 100644 index 7db13b87f0..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/car/car_no_di.dart +++ /dev/null @@ -1,23 +0,0 @@ -// Car without DI - -import 'car.dart'; - -//#docregion car -class Car { - //#docregion car-ctor - Engine engine; - Tires tires; - var description = 'No DI'; - - Car() { - engine = new Engine(); - tires = new Tires(); - } - //#enddocregion car-ctor - - // Method using the engine and tires - String drive() => '$description car with ' - '${engine.cylinders} cylinders and ' - '${tires.make} tires.'; -} -//#enddocregion car diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero.dart deleted file mode 100644 index 369ef1a5fe..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -class Hero { - final int id; - final String name; - final bool isSecret; - - Hero(this.id, this.name, [this.isSecret = false]); -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component.dart deleted file mode 100644 index 829fd60bec..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component.dart +++ /dev/null @@ -1,21 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'hero_service.dart'; - -@Component( - selector: 'hero-list', - template: ''' -
    - {{hero.id}} - {{hero.name}} - ({{hero.isSecret ? 'secret' : 'public'}}) -
    ''') -class HeroListComponent { - final List heroes; - - // #docregion ctor-signature - HeroListComponent(HeroService heroService) - // #enddocregion ctor-signature - : heroes = heroService.getHeroes(); -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component_1.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component_1.dart deleted file mode 100644 index 4abee51561..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component_1.dart +++ /dev/null @@ -1,15 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'mock_heroes.dart'; - -@Component( - selector: 'hero-list', - template: ''' -
    - {{hero.id}} - {{hero.name}} -
    ''') -class HeroListComponent { - final List heroes = HEROES; -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component_2.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component_2.dart deleted file mode 100644 index 6a85c0a5d5..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_list_component_2.dart +++ /dev/null @@ -1,28 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; -// #enddocregion -import 'hero_service_1.dart'; -/* -// #docregion -import 'hero_service.dart'; -// #enddocregion -*/ -// #docregion - -@Component( - selector: 'hero-list', - template: ''' -
    - {{hero.id}} - {{hero.name}} -
    ''') -class HeroListComponent { - final List heroes; - - // #docregion ctor - HeroListComponent(HeroService heroService) - : heroes = heroService.getHeroes(); - // #enddocregion ctor -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service.dart deleted file mode 100644 index f66bd7ef6d..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service.dart +++ /dev/null @@ -1,24 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import '../logger_service.dart'; -import 'hero.dart'; -import 'mock_heroes.dart'; - -@Injectable() -class HeroService { - // #docregion internals - final Logger _logger; - final bool _isAuthorized; - - HeroService(this._logger, this._isAuthorized); - - List getHeroes() { - var auth = _isAuthorized ? 'authorized' : 'unauthorized'; - _logger.log('Getting heroes for $auth user.'); - return HEROES - .where((hero) => _isAuthorized || !hero.isSecret) - .toList(); - } - // #enddocregion internals -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_1.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_1.dart deleted file mode 100644 index 666c2a2815..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_1.dart +++ /dev/null @@ -1,10 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'mock_heroes.dart'; - -@Injectable() -class HeroService { - List getHeroes() => HEROES; -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_2.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_2.dart deleted file mode 100644 index b4ef2a2a41..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_2.dart +++ /dev/null @@ -1,19 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import '../logger_service.dart'; -import 'hero.dart'; -import 'mock_heroes.dart'; - -@Injectable() -class HeroService { - final Logger _logger; - - //#docregion ctor - HeroService(this._logger); - //#enddocregion ctor - List getHeroes() { - _logger.log('Getting heroes ...'); - return HEROES; - } -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_provider.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_provider.dart deleted file mode 100644 index 1dd52cf3e2..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/hero_service_provider.dart +++ /dev/null @@ -1,17 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import '../logger_service.dart'; -import '../user_service.dart'; -import 'hero_service.dart'; - -// #docregion factory -HeroService heroServiceFactory(Logger logger, UserService userService) => - new HeroService(logger, userService.user.isAuthorized); -// #enddocregion factory - -// #docregion provider -const heroServiceProvider = const Provider(HeroService, - useFactory: heroServiceFactory, - deps: const [Logger, UserService]); -// #enddocregion provider diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/heroes_component.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/heroes_component.dart deleted file mode 100644 index d90871de73..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/heroes_component.dart +++ /dev/null @@ -1,14 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero_list_component.dart'; -import 'hero_service_provider.dart'; - -@Component( - selector: 'my-heroes', - template: ''' -

    Heroes

    - ''', - providers: const [heroServiceProvider], - directives: const [HeroListComponent]) -class HeroesComponent {} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/heroes_component_1.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/heroes_component_1.dart deleted file mode 100644 index dd63d95b15..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/heroes_component_1.dart +++ /dev/null @@ -1,27 +0,0 @@ -// #docplaster -// #docregion -// #docregion full, v1 -import 'package:angular2/core.dart'; - -// #enddocregion full, v1 -import 'hero_list_component_2.dart'; -import 'hero_service_1.dart'; -/* -// #docregion full, v1 -import 'hero_list_component.dart'; -// #enddocregion v1 -import 'hero_service.dart'; -// #enddocregion full -*/ -// #docregion full, v1 - -@Component( - selector: 'my-heroes', - template: ''' -

    Heroes

    - ''', - // #enddocregion v1 - providers: const [HeroService], - // #docregion v1 - directives: const [HeroListComponent]) -class HeroesComponent {} diff --git a/public/docs/_examples/dependency-injection/dart/lib/heroes/mock_heroes.dart b/public/docs/_examples/dependency-injection/dart/lib/heroes/mock_heroes.dart deleted file mode 100644 index 70a38c878d..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/heroes/mock_heroes.dart +++ /dev/null @@ -1,18 +0,0 @@ -// #docregion -import 'hero.dart'; - -List HEROES = [ - {'id': 11, 'isSecret': false, 'name': 'Mr. Nice'}, - {'id': 12, 'isSecret': false, 'name': 'Narco'}, - {'id': 13, 'isSecret': false, 'name': 'Bombasto'}, - {'id': 14, 'isSecret': false, 'name': 'Celeritas'}, - {'id': 15, 'isSecret': false, 'name': 'Magneta'}, - {'id': 16, 'isSecret': false, 'name': 'RubberMan'}, - {'id': 17, 'isSecret': false, 'name': 'Dynama'}, - {'id': 18, 'isSecret': true, 'name': 'Dr IQ'}, - {'id': 19, 'isSecret': true, 'name': 'Magma'}, - {'id': 20, 'isSecret': true, 'name': 'Tornado'} -].map(_initHero).toList(); - -Hero _initHero(Map heroProperties) => new Hero( - heroProperties['id'], heroProperties['name'], heroProperties['isSecret']); diff --git a/public/docs/_examples/dependency-injection/dart/lib/injector_component.dart b/public/docs/_examples/dependency-injection/dart/lib/injector_component.dart deleted file mode 100644 index 477bc3bc6c..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/injector_component.dart +++ /dev/null @@ -1,43 +0,0 @@ -// #docplaster - -// #docregion -import 'package:angular2/core.dart'; - -import 'car/car.dart'; -import 'heroes/hero.dart'; -import 'heroes/hero_service.dart'; -import 'heroes/hero_service_provider.dart'; -import 'logger_service.dart'; - -// #docregion injector -@Component( - selector: 'my-injectors', - template: ''' -

    Other Injections

    -
    {{car.drive()}}
    -
    {{hero.name}}
    -
    {{rodent}}
    ''', - providers: const [ - Car, Engine, Tires, heroServiceProvider, Logger]) -class InjectorComponent { - final Injector _injector; - Car car; - HeroService heroService; - Hero hero; - - InjectorComponent(this._injector) { - car = _injector.get(Car); - // #docregion get-hero-service - heroService = _injector.get(HeroService); - // #enddocregion get-hero-service - hero = heroService.getHeroes()[0]; - } - - String get rodent => - _injector.get(ROUS, "R.O.U.S.'s? I don't think they exist!"); -} -// #enddocregion injector - -/// R.O.U.S. - Rodents Of Unusual Size -/// https://www.youtube.com/watch?v=BOv5ZjAOpC8 -class ROUS {} diff --git a/public/docs/_examples/dependency-injection/dart/lib/logger_service.dart b/public/docs/_examples/dependency-injection/dart/lib/logger_service.dart deleted file mode 100644 index ac1e87fa10..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/logger_service.dart +++ /dev/null @@ -1,13 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Injectable() -class Logger { - List _logs = []; - List get logs => _logs; - - void log(String message) { - _logs.add(message); - print(message); - } -} diff --git a/public/docs/_examples/dependency-injection/dart/lib/providers_component.dart b/public/docs/_examples/dependency-injection/dart/lib/providers_component.dart deleted file mode 100644 index 16e248f000..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/providers_component.dart +++ /dev/null @@ -1,280 +0,0 @@ -// Examples of provider arrays -// #docplaster -import 'package:angular2/core.dart'; - -import 'app_config.dart'; -import 'heroes/hero_service_provider.dart'; -import 'heroes/hero_service.dart'; -import 'logger_service.dart'; -import 'user_service.dart'; - -// TODO file an issue: cannot use the following const in metadata. -const template = '{{log}}'; - -@Component( - selector: 'provider-1', - template: '{{log}}', - // #docregion providers-1, providers-logger - providers: const [Logger] - // #enddocregion providers-1, providers-logger -) -class Provider1Component { - String log; - - Provider1Component(Logger logger) { - logger.log('Hello from logger provided with Logger class'); - log = logger.logs[0]; - } -} - -/// Component just used to ensure that shared E2E tests pass. -@Component( - selector: 'provider-3', - template: '{{log}}', - providers: - // #docregion providers-3 - const [const Provider(Logger, useClass: Logger)] - // #enddocregion providers-3 -) -class Provider3Component { - String log; - - Provider3Component(Logger logger) { - logger.log('Hello from logger provided with useClass:Logger'); - log = logger.logs[0]; - } -} - -@Injectable() -class BetterLogger extends Logger {} - -@Component( - selector: 'provider-4', - template: '{{log}}', - providers: - // #docregion providers-4 - const [const Provider(Logger, useClass: BetterLogger)] - // #enddocregion providers-4 -) -class Provider4Component { - String log; - - Provider4Component(Logger logger) { - logger.log('Hello from logger provided with useClass:BetterLogger'); - log = logger.logs[0]; - } -} - -// #docregion EvenBetterLogger -@Injectable() -class EvenBetterLogger extends Logger { - final UserService _userService; - - EvenBetterLogger(this._userService); - - @override void log(String message) { - var name = _userService.user.name; - super.log('Message to $name: $message'); - } -} -// #enddocregion EvenBetterLogger - -@Component( - selector: 'provider-5', - template: '{{log}}', - providers: - // #docregion providers-5 - const [UserService, const Provider(Logger, useClass: EvenBetterLogger)] - // #enddocregion providers-5 -) -class Provider5Component { - String log; - - Provider5Component(Logger logger) { - logger.log('Hello from EvenBetterlogger'); - log = logger.logs[0]; - } -} - -@Injectable() -class NewLogger extends Logger implements OldLogger {} - -class OldLogger extends Logger { - @override - void log(String message) { - throw new Exception('Should not call the old logger!'); - } -} - -@Component( - selector: 'provider-6a', - template: '{{log}}', - providers: - // #docregion providers-6a - const [NewLogger, - // Not aliased! Creates two instances of `NewLogger` - const Provider(OldLogger, useClass: NewLogger)] - // #enddocregion providers-6a -) -class Provider6aComponent { - String log; - - Provider6aComponent(NewLogger newLogger, OldLogger oldLogger) { - if (newLogger == oldLogger) { - throw new Exception('expected the two loggers to be different instances'); - } - oldLogger.log('Hello OldLogger (but we want NewLogger)'); - // The newLogger wasn't called so no logs[] - // display the logs of the oldLogger. - log = newLogger.logs.isEmpty ? oldLogger.logs[0] : newLogger.logs[0]; - } -} - -@Component( - selector: 'provider-6b', - template: '{{log}}', - providers: - // #docregion providers-6b - const [NewLogger, - // Alias OldLogger with reference to NewLogger - const Provider(OldLogger, useExisting: NewLogger)] - // #enddocregion providers-6b -) -class Provider6bComponent { - String log; - - Provider6bComponent(NewLogger newLogger, OldLogger oldLogger) { - if (newLogger != oldLogger) { - throw new Exception('expected the two loggers to be the same instance'); - } - oldLogger.log('Hello from NewLogger (via aliased OldLogger)'); - log = newLogger.logs[0]; - } -} - -// #docregion silent-logger -// #docregion const-class -class SilentLogger implements Logger { - @override - final List logs = const ['Silent logger says "Shhhhh!". Provided via "useValue"']; - - const SilentLogger(); - - @override - void log(String message) { } -} -// #enddocregion const-class -// #docregion const-object - -const silentLogger = const SilentLogger(); -// #enddocregion const-object -// #enddocregion silent-logger - -@Component( - selector: 'provider-7', - template: '{{log}}', - providers: - // #docregion providers-7 - const [const Provider(Logger, useValue: silentLogger)] - // #enddocregion providers-7 -) -class Provider7Component { - String log; - - Provider7Component(Logger logger) { - logger.log('Hello from logger provided with useValue'); - log = logger.logs[0]; - } -} - -@Component( - selector: 'provider-8', - template: '{{log}}', - providers: const [heroServiceProvider, Logger, UserService]) -class Provider8Component { - // must be true else this component would have blown up at runtime - var log = 'Hero service injected successfully via heroServiceProvider'; - - // #docregion provider-8-ctor - Provider8Component(HeroService heroService); - // #enddocregion provider-8-ctor -} - -@Component( - selector: 'provider-9', - template: '{{log}}', - // #docregion providers-9 - providers: const [ - const Provider(APP_CONFIG, useValue: heroDiConfig)] - // #enddocregion providers-9 -) -class Provider9Component implements OnInit { - Map _config; - String log; - - // #docregion provider-9-ctor - Provider9Component(@Inject(APP_CONFIG) this._config); - // #enddocregion provider-9-ctor - - @override - void ngOnInit() { - log = 'APP_CONFIG Application title is ${_config['title']}'; - } -} - -// Sample providers 1 to 7 illustrate a required logger dependency. -// Optional logger, can be null. -@Component( - selector: 'provider-10', - template: '{{log}}', - providers: const [const Provider(Logger, useValue: null)] -) -class Provider10Component implements OnInit { - final Logger _logger; - String log; - - /* - // #docregion provider-10-ctor - HeroService(@Optional() this._logger) { - // #enddocregion provider-10-ctor - */ - Provider10Component(@Optional() this._logger) { - const someMessage = 'Hello from the injected logger'; - // #docregion provider-10-ctor - _logger?.log(someMessage); - } - // #enddocregion provider-10-ctor - - @override - void ngOnInit() { - log = _logger == null ? 'Optional logger was not available' : _logger.logs[0]; - } -} - -@Component( - selector: 'my-providers', - template: ''' -

    Provider variations

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    ''', - directives: const [ - Provider1Component, - Provider3Component, - Provider4Component, - Provider5Component, - Provider6aComponent, - Provider6bComponent, - Provider7Component, - Provider8Component, - Provider9Component, - Provider10Component - ]) -class ProvidersComponent {} diff --git a/public/docs/_examples/dependency-injection/dart/lib/test_component.dart b/public/docs/_examples/dependency-injection/dart/lib/test_component.dart deleted file mode 100644 index 24920bd7d2..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/test_component.dart +++ /dev/null @@ -1,65 +0,0 @@ -// Simulate a simple test -// Reader should look to the testing chapter for the real thing - -import 'package:angular2/core.dart'; - -import 'heroes/hero.dart'; -import 'heroes/hero_list_component.dart'; -import 'heroes/hero_service.dart'; - -@Component( - selector: 'my-tests', - template: ''' -

    Tests

    -

    Tests {{results['pass']}}: {{results['message']}}

    - ''') -class TestComponent { - var results = runTests(); -} - -class MockHeroService implements HeroService { - final List _heroes; - MockHeroService(this._heroes); - - @override - List getHeroes() => _heroes; -} - -///////////////////////////////////// -dynamic runTests() { - //#docregion spec - var expectedHeroes = [new Hero(0, 'A'), new Hero(1, 'B')]; - var mockService = new MockHeroService(expectedHeroes); - it('should have heroes when HeroListComponent created', () { - var hlc = new HeroListComponent(mockService); - expect(hlc.heroes.length).toEqual(expectedHeroes.length); - }); - //#enddocregion spec - return testResults; -} -////////////////////////////////// - -// Fake Jasmine infrastructure -String testName; -dynamic testResults; -dynamic expect(dynamic actual) => new ExpectResult(actual); - -class ExpectResult { - final actual; - ExpectResult(this.actual); - - void toEqual(dynamic expected) { - testResults = actual == expected - ? {'pass': 'passed', 'message': testName} - : { - 'pass': 'failed', - 'message': '$testName; expected $actual to equal $expected.' - }; - } -} - -void it(String label, void test()) { - testName = label; - test(); -} - diff --git a/public/docs/_examples/dependency-injection/dart/lib/user_service.dart b/public/docs/_examples/dependency-injection/dart/lib/user_service.dart deleted file mode 100644 index 24b61468db..0000000000 --- a/public/docs/_examples/dependency-injection/dart/lib/user_service.dart +++ /dev/null @@ -1,23 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -class User { - final String name; - final bool isAuthorized; - - User(this.name, [this.isAuthorized = false]); -} - -// Todo: get the user; don't 'new' it. -final User _alice = new User('Alice', true); -final User _bob = new User('Bob', false); - -@Injectable() -class UserService { - User user; - - UserService() : user = _bob; - - // swap users - User getNewUser() => user = user == _bob ? _alice : _bob; -} diff --git a/public/docs/_examples/dependency-injection/dart/pubspec.yaml b/public/docs/_examples/dependency-injection/dart/pubspec.yaml deleted file mode 100644 index 49d79447d7..0000000000 --- a/public/docs/_examples/dependency-injection/dart/pubspec.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# #docregion -name: dependency_injection -description: Dependency injection sample -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 - test: any -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/dependency-injection/dart/test/hero_list_component_test.dart b/public/docs/_examples/dependency-injection/dart/test/hero_list_component_test.dart deleted file mode 100644 index 4936a3e7f8..0000000000 --- a/public/docs/_examples/dependency-injection/dart/test/hero_list_component_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// A simple test -// More details will be in the testing chapter. -import 'package:angular2/core.dart'; -import 'package:dependency_injection/heroes/hero.dart'; -import 'package:dependency_injection/heroes/hero_list_component.dart'; -import 'package:dependency_injection/heroes/hero_service.dart'; -import 'package:test/test.dart'; - -/////////////////////////////////////// -////#docregion spec -List expectedHeroes = [ - new Hero(1, 'hero1'), - new Hero(2, 'hero2', true) -]; - -class HeroServiceMock implements HeroService { - @override - List getHeroes() => expectedHeroes; -} - -var mockService = new HeroServiceMock(); - -void main() { - test('should have heroes when HeroListComponent created', () { - var hlc = new HeroListComponent(mockService); - expect(hlc.heroes.length, expectedHeroes.length); - }); -} -//#enddocregion spec diff --git a/public/docs/_examples/dependency-injection/dart/web/index.html b/public/docs/_examples/dependency-injection/dart/web/index.html deleted file mode 100644 index 8a89dc5d59..0000000000 --- a/public/docs/_examples/dependency-injection/dart/web/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Dependency Injection - - - - - - - Loading... - - diff --git a/public/docs/_examples/dependency-injection/dart/web/main.dart b/public/docs/_examples/dependency-injection/dart/web/main.dart deleted file mode 100644 index 06582f0fbb..0000000000 --- a/public/docs/_examples/dependency-injection/dart/web/main.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:angular2/platform/browser.dart'; - -import 'package:dependency_injection/app_component.dart'; - -void main() { - //#docregion bootstrap - bootstrap(AppComponent); - //#enddocregion bootstrap -} diff --git a/public/docs/_examples/dependency-injection/dart/web/main_1.dart b/public/docs/_examples/dependency-injection/dart/web/main_1.dart deleted file mode 100644 index 561c6ba946..0000000000 --- a/public/docs/_examples/dependency-injection/dart/web/main_1.dart +++ /dev/null @@ -1,21 +0,0 @@ -// **WARNING** -// To try out this version of the app, ensure that you update: -// - web/index.html -// - pubspec.yaml -// to refer to this file instead of main.dart - -import 'package:angular2/platform/browser.dart'; - -import 'package:dependency_injection/app_component_1.dart'; -import 'package:dependency_injection/heroes/hero_service_1.dart'; - -void main() { - bootstrap(AppComponent); -} - -void main_alt() { - // #docregion bootstrap-discouraged - bootstrap(AppComponent, - [HeroService]); // DISCOURAGED (but works) - // #enddocregion bootstrap-discouraged -} diff --git a/public/docs/_examples/displaying-data/dart/.docsync.json b/public/docs/_examples/displaying-data/dart/.docsync.json deleted file mode 100644 index b5fefc76cc..0000000000 --- a/public/docs/_examples/displaying-data/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Displaying Data", - "docPart": "guide" -} diff --git a/public/docs/_examples/displaying-data/dart/example-config.json b/public/docs/_examples/displaying-data/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/displaying-data/dart/lib/app_component.dart b/public/docs/_examples/displaying-data/dart/lib/app_component.dart deleted file mode 100644 index 5f64cef0d2..0000000000 --- a/public/docs/_examples/displaying-data/dart/lib/app_component.dart +++ /dev/null @@ -1,30 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    -

    My favorite hero is: {{myHero.name}}

    -

    Heroes:

    -
      -
    • - {{ hero.name }} -
    • -
    - // #docregion message -

    There are many heroes!

    - // #enddocregion message - ''') -class AppComponent { - String title = 'Tour of Heroes'; - List heroes = [ - new Hero(1, 'Windstorm'), - new Hero(13, 'Bombasto'), - new Hero(15, 'Magneta'), - new Hero(20, 'Tornado') - ]; - Hero get myHero => heroes.first; -} diff --git a/public/docs/_examples/displaying-data/dart/lib/app_component_1.dart b/public/docs/_examples/displaying-data/dart/lib/app_component_1.dart deleted file mode 100644 index 93a4e5a5a9..0000000000 --- a/public/docs/_examples/displaying-data/dart/lib/app_component_1.dart +++ /dev/null @@ -1,16 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Component( - selector: 'my-app', - // #docregion template - template: ''' -

    {{title}}

    -

    My favorite hero is: {{myHero}}

    - ''' - // #enddocregion template - ) -class AppComponent { - String title = 'Tour of Heroes'; - String myHero = 'Windstorm'; -} diff --git a/public/docs/_examples/displaying-data/dart/lib/app_component_2.dart b/public/docs/_examples/displaying-data/dart/lib/app_component_2.dart deleted file mode 100644 index b28e013dec..0000000000 --- a/public/docs/_examples/displaying-data/dart/lib/app_component_2.dart +++ /dev/null @@ -1,26 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Component( - selector: 'my-app', - // #docregion template - template: ''' -

    {{title}}

    -

    My favorite hero is: {{myHero}}

    -

    Heroes:

    -
      - // #docregion li -
    • - {{ hero }} -
    • - // #enddocregion li -
    - ''' - // #enddocregion template - ) -// #docregion class -class AppComponent { - String title = 'Tour of Heroes'; - List heroes = ['Windstorm', 'Bombasto', 'Magneta', 'Tornado']; - String get myHero => heroes.first; -} diff --git a/public/docs/_examples/displaying-data/dart/lib/app_component_3.dart b/public/docs/_examples/displaying-data/dart/lib/app_component_3.dart deleted file mode 100644 index 35e3e94f77..0000000000 --- a/public/docs/_examples/displaying-data/dart/lib/app_component_3.dart +++ /dev/null @@ -1,34 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; -// #docregion import -import 'hero.dart'; -// #enddocregion import - -@Component( - selector: 'my-app', - // #docregion template - template: ''' -

    {{title}}

    -

    My favorite hero is: {{myHero.name}}

    -

    Heroes:

    -
      -
    • - {{ hero.name }} -
    • -
    - ''' - // #enddocregion template - ) -// #docregion class -class AppComponent { - String title = 'Tour of Heroes'; - // #docregion heroes - List heroes = [ - new Hero(1, 'Windstorm'), - new Hero(13, 'Bombasto'), - new Hero(15, 'Magneta'), - new Hero(20, 'Tornado') - ]; - Hero get myHero => heroes.first; - // #enddocregion heroes -} diff --git a/public/docs/_examples/displaying-data/dart/lib/hero.dart b/public/docs/_examples/displaying-data/dart/lib/hero.dart deleted file mode 100644 index 65d712ee93..0000000000 --- a/public/docs/_examples/displaying-data/dart/lib/hero.dart +++ /dev/null @@ -1,9 +0,0 @@ -// #docregion -class Hero { - final int id; - String name; - - Hero(this.id, this.name); - - String toString() => '$id: $name'; -} diff --git a/public/docs/_examples/displaying-data/dart/pubspec.yaml b/public/docs/_examples/displaying-data/dart/pubspec.yaml deleted file mode 100644 index 60e1bc8056..0000000000 --- a/public/docs/_examples/displaying-data/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: displaying_data -description: Displaying Data -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/displaying-data/dart/web/index.html b/public/docs/_examples/displaying-data/dart/web/index.html deleted file mode 100644 index e9b9c097a1..0000000000 --- a/public/docs/_examples/displaying-data/dart/web/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Displaying Data - - - - - - - - Loading... - - - diff --git a/public/docs/_examples/displaying-data/dart/web/main.dart b/public/docs/_examples/displaying-data/dart/web/main.dart deleted file mode 100644 index f640544559..0000000000 --- a/public/docs/_examples/displaying-data/dart/web/main.dart +++ /dev/null @@ -1,21 +0,0 @@ -// #docplaster -// #docregion final -import 'package:angular2/platform/browser.dart'; -// #enddocregion final - -//import 'package:displaying_data/app_component_1.dart' as v1; -//import 'package:displaying_data/app_component_2.dart' as v2; -//import 'package:displaying_data/app_component_3.dart' as v3; -// #docregion final -import 'package:displaying_data/app_component.dart'; - -void main() { -// #enddocregion final -// pick one -// bootstrap(v1.AppComponent); -// bootstrap(v2.AppComponent); -// bootstrap(v3.AppComponent); -// #docregion final - bootstrap(AppComponent); -} -// #enddocregion final diff --git a/public/docs/_examples/forms/dart/.docsync.json b/public/docs/_examples/forms/dart/.docsync.json deleted file mode 100644 index 962346743f..0000000000 --- a/public/docs/_examples/forms/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Forms", - "docPart": "guide" -} diff --git a/public/docs/_examples/forms/dart/example-config.json b/public/docs/_examples/forms/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/forms/dart/lib/hero.dart b/public/docs/_examples/forms/dart/lib/hero.dart deleted file mode 100644 index 6ade27c4d3..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero.dart +++ /dev/null @@ -1,20 +0,0 @@ -// #docregion all -class Hero { - int number; - String name; - String power; - String alterEgo; - - Hero(this.number, this.name, this.power, [this.alterEgo]); - - String toString() => '$number: $name ($alterEgo). Super power: $power'; -} -// #enddocregion all - -main() { - // #docregion newhero - var myHero = new Hero( - 42, 'SkyDog', 'Fetch any object at any distance', 'Leslie Rollover'); - print('My hero is ${myHero.name}.'); // "My hero is SkyDog." - // #enddocregion newhero -} diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component.dart b/public/docs/_examples/forms/dart/lib/hero_form_component.dart deleted file mode 100644 index e5d49a08c9..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component.dart +++ /dev/null @@ -1,34 +0,0 @@ -// #docplaster -// #docregion -// #docregion no-todo -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -const List _powers = const [ - 'Really Smart', - 'Super Flexible', - 'Super Hot', - 'Weather Changer' -]; - -@Component( - selector: 'hero-form', - templateUrl: 'hero_form_component.html') -class HeroFormComponent { - List get powers => _powers; -// #docregion submitted - bool submitted = false; -// #enddocregion submitted - Hero model = new Hero(18, 'Dr IQ', _powers[0], 'Chuck Overstreet'); -// #enddocregion no-todo - // TODO: Remove this when we're done - String get diagnostic => 'DIAGNOSTIC: $model'; -// #docregion no-todo - -// #docregion submitted - onSubmit() { - submitted = true; - } -// #enddocregion submitted -} diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component.html b/public/docs/_examples/forms/dart/lib/hero_form_component.html deleted file mode 100644 index dd3b91167f..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component.html +++ /dev/null @@ -1,67 +0,0 @@ - - -
    - -
    -

    Hero Form

    - -
    - - -
    - - - -
    - Name is required -
    - -
    - -
    - - -
    - -
    - - -
    - - - - - -
    -
    - - - -
    -

    You submitted the following:

    -
    -
    Name
    -
    {{ model.name }}
    -
    -
    -
    Alter Ego
    -
    {{ model.alterEgo }}
    -
    -
    -
    Power
    -
    {{ model.power }}
    -
    -
    - -
    - -
    diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_initial.dart b/public/docs/_examples/forms/dart/lib/hero_form_component_initial.dart deleted file mode 100644 index 53a2c20482..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_initial.dart +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Component(selector: 'hero-form', template: 'Hero form will go here') -class HeroFormComponent {} diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_initial.html b/public/docs/_examples/forms/dart/lib/hero_form_component_initial.html deleted file mode 100644 index 155ea07fa9..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_initial.html +++ /dev/null @@ -1,15 +0,0 @@ - -
    -

    Hero Form

    -
    -
    - - -
    -
    - - -
    - -
    -
    diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_ngcontrol.html b/public/docs/_examples/forms/dart/lib/hero_form_component_ngcontrol.html deleted file mode 100644 index 16eee0a1cf..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_ngcontrol.html +++ /dev/null @@ -1,32 +0,0 @@ - -
    -

    Hero Form

    -
    -
    - - - - -
    - -
    - - -
    - -
    - - -
    - - -
    -
    diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodel2.html b/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodel2.html deleted file mode 100644 index 650c974957..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodel2.html +++ /dev/null @@ -1,30 +0,0 @@ - -
    -

    Hero Form

    -
    - - {{diagnostic}} -
    - - -
    - -
    - - -
    - -
    - - -
    - - - -
    -
    diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodel_ngfor.html b/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodel_ngfor.html deleted file mode 100644 index a0b851a09c..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodel_ngfor.html +++ /dev/null @@ -1,30 +0,0 @@ - -
    -

    Hero Form

    -
    -
    - - - - TODO: remove this: {{model.name}} - -
    - -
    - - -
    - - -
    - - -
    - - - -
    -
    diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodelchange.html b/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodelchange.html deleted file mode 100644 index 96c55b9740..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_ngmodelchange.html +++ /dev/null @@ -1,31 +0,0 @@ - -
    -

    Hero Form

    -
    -
    - - - - TODO: remove this: {{model.name}} - -
    - -
    - - -
    - -
    - - -
    - - -
    -
    diff --git a/public/docs/_examples/forms/dart/lib/hero_form_component_spy.html b/public/docs/_examples/forms/dart/lib/hero_form_component_spy.html deleted file mode 100644 index 4c77cd14ab..0000000000 --- a/public/docs/_examples/forms/dart/lib/hero_form_component_spy.html +++ /dev/null @@ -1,33 +0,0 @@ - -
    -

    Hero Form

    -
    -
    - - - - TODO: remove this: {{spy.className}} - -
    - -
    - - -
    - -
    - - -
    - - -
    -
    diff --git a/public/docs/_examples/forms/dart/pubspec.yaml b/public/docs/_examples/forms/dart/pubspec.yaml deleted file mode 100644 index a00a06245a..0000000000 --- a/public/docs/_examples/forms/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: hero_form -description: Form example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/forms/dart/web/bootstrap.min.css b/public/docs/_examples/forms/dart/web/bootstrap.min.css deleted file mode 100644 index d65c66b1ba..0000000000 --- a/public/docs/_examples/forms/dart/web/bootstrap.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! - * Bootstrap v3.3.5 (http://getbootstrap.com) - * Copyright 2011-2015 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:3;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} \ No newline at end of file diff --git a/public/docs/_examples/forms/dart/web/forms.css b/public/docs/_examples/forms/dart/web/forms.css deleted file mode 100644 index d7e11405b1..0000000000 --- a/public/docs/_examples/forms/dart/web/forms.css +++ /dev/null @@ -1,9 +0,0 @@ -/* #docregion */ -.ng-valid[required] { - border-left: 5px solid #42A948; /* green */ -} - -.ng-invalid { - border-left: 5px solid #a94442; /* red */ -} -/* #enddocregion */ \ No newline at end of file diff --git a/public/docs/_examples/forms/dart/web/index.html b/public/docs/_examples/forms/dart/web/index.html deleted file mode 100644 index e99d87d263..0000000000 --- a/public/docs/_examples/forms/dart/web/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - Hero Form - - - - - - - - - - - - - - - - Loading... - - diff --git a/public/docs/_examples/forms/dart/web/main.dart b/public/docs/_examples/forms/dart/web/main.dart deleted file mode 100644 index 7d21d9e9ba..0000000000 --- a/public/docs/_examples/forms/dart/web/main.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:hero_form/hero_form_component.dart'; - -main() { - bootstrap(HeroFormComponent); -} diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/.docsync.json b/public/docs/_examples/hierarchical-dependency-injection/dart/.docsync.json deleted file mode 100644 index a458150445..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Hierarchical Dependency Injection", - "docPart": "guide" -} diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/edit_item.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/edit_item.dart deleted file mode 100644 index c5de35a9ed..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/edit_item.dart +++ /dev/null @@ -1,7 +0,0 @@ -// #docregion -class EditItem { - bool editing = false; - T item; - EditItem(this.item); -} -// #enddocregion diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero.dart deleted file mode 100644 index 273bb21aba..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero.dart +++ /dev/null @@ -1,12 +0,0 @@ -// #docregion -class Hero { - String name; - String power; - - Hero clone() { - return new Hero() - ..name = name - ..power = power; - } -} -// #enddocregion diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero_card_component.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero_card_component.dart deleted file mode 100644 index 6fa8aeb6cd..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero_card_component.dart +++ /dev/null @@ -1,17 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -@Component( - selector: 'hero-card', - template: ''' -
    - Name: - {{hero.name}} -
    - ''') -class HeroCardComponent { - @Input() Hero hero; -} -// #docregion diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero_editor_component.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero_editor_component.dart deleted file mode 100644 index 7ad3226755..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/hero_editor_component.dart +++ /dev/null @@ -1,48 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'restore_service.dart'; - -@Component( - selector: 'hero-editor', - // #docregion providers - providers: const [RestoreService], - // #enddocregion providers - template: ''' -
    - Name: - -
    - - -
    -
    - ''') -class HeroEditorComponent { - @Output() final EventEmitter canceled = new EventEmitter(); - @Output() final EventEmitter saved = new EventEmitter(); - - RestoreService _restoreService; - - HeroEditorComponent(this._restoreService); - - @Input() - set hero(Hero hero) { - _restoreService.setItem(hero); - } - - Hero get hero { - return _restoreService.getItem(); - } - - onSaved() { - saved.add(_restoreService.getItem()); - } - - onCanceled() { - hero = _restoreService.restoreItem(); - canceled.add(hero); - } -} -// #enddocregion diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/heroes_list_component.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/heroes_list_component.dart deleted file mode 100644 index 2810e1cdb4..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/heroes_list_component.dart +++ /dev/null @@ -1,54 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'edit_item.dart'; -import 'hero.dart'; -import 'hero_card_component.dart'; -import 'hero_editor_component.dart'; -import 'heroes_service.dart'; - -@Component( - selector: 'heroes-list', - template: ''' -
    -
      -
    • - - - - - -
    • -
    -
    - ''', - directives: const [HeroCardComponent, HeroEditorComponent]) -class HeroesListComponent { - List> heroes; - HeroesListComponent(HeroesService heroesService) { - heroes = heroesService - .getHeroes() - .map((Hero item) => new EditItem(item)) - .toList(); - } - - onCanceled(EditItem editItem) { - editItem.editing = false; - } - - onSaved(EditItem editItem, Hero updatedHero) { - editItem.item = updatedHero; - editItem.editing = false; - } -} -// #enddocregion diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/heroes_service.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/heroes_service.dart deleted file mode 100644 index c02eeb7539..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/heroes_service.dart +++ /dev/null @@ -1,20 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -@Injectable() -class HeroesService { - List _heroes = [ - new Hero() - ..name = "RubberMan" - ..power = 'Flexibility', - new Hero() - ..name = "Tornado" - ..power = 'Weather changer' - ]; - - List getHeroes() { - return _heroes; - } -} diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/restore_service.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/lib/restore_service.dart deleted file mode 100644 index 50f4ce9bdb..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/lib/restore_service.dart +++ /dev/null @@ -1,28 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Injectable() -class RestoreService { - T _originalItem; - T _currentItem; - - setItem(T item) { - _originalItem = item; - _currentItem = clone(item); - } - - T getItem() { - return _currentItem; - } - - T restoreItem() { - _currentItem = _originalItem; - return getItem(); - } - - T clone(T item) { - // super poor clone implementation - return item.clone(); - } -} -// #enddocregion diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml b/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml deleted file mode 100644 index 250449c1b0..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: 'hierarchical_di' -description: Hierarchical dependency injection example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html b/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html deleted file mode 100644 index 598203b414..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - Hierarchical Injector - - - - - - - - loading... - - - - diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart deleted file mode 100644 index 4b181c2ab5..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart +++ /dev/null @@ -1,16 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:hierarchical_di/heroes_list_component.dart'; -import 'package:hierarchical_di/heroes_service.dart'; - -void main() { - bootstrap(HeroesListComponent, [HeroesService]); -} - -/* Documentation artifact below -// #docregion bad-alternative -// Don't do this! -bootstrap(HeroesListComponent, [HeroesService, RestoreService]) -// #enddocregion bad-alternative -*/ diff --git a/public/docs/_examples/lifecycle-hooks/dart/.docsync.json b/public/docs/_examples/lifecycle-hooks/dart/.docsync.json deleted file mode 100644 index 8e0aa032a4..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Lifecycle Hooks", - "docPart": "guide" -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/example-config.json b/public/docs/_examples/lifecycle-hooks/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/after_content_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/after_content_component.dart deleted file mode 100644 index c43ea4de73..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/after_content_component.dart +++ /dev/null @@ -1,115 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; - -////////////////// -@Component( - selector: 'my-child', - template: '') -class ChildComponent { - String hero = 'Magneta'; -} - -////////////////////// -@Component( - selector: 'after-content', -// #docregion template - template: ''' -
    -- projected content begins --
    - -
    -- projected content ends --
    -

    {{comment}}

    - ''' -// #enddocregion template - ) -// #docregion hooks -class AfterContentComponent implements AfterContentChecked, AfterContentInit { - String _prevHero = ''; - String comment = ''; - - // Query for a CONTENT child of type `ChildComponent` - @ContentChild(ChildComponent) ChildComponent contentChild; - -// #enddocregion hooks - final LoggerService _logger; - - AfterContentComponent(this._logger) { - _logIt('AfterContent constructor'); - } - -// #docregion hooks - ngAfterContentInit() { - // contentChild is set after the content has been initialized - _logIt('AfterContentInit'); - _doSomething(); - } - - ngAfterContentChecked() { - // contentChild is updated after the content has been checked - if (_prevHero == contentChild?.hero) { - _logIt('AfterContentChecked (no change)'); - } else { - _prevHero = contentChild?.hero; - _logIt('AfterContentChecked'); - _doSomething(); - } - } -// #enddocregion hooks -// #docregion do-something - /// This surrogate for real business logic; sets the `comment` - void _doSomething() { - comment = contentChild.hero.length > 10 ? "That's a long name" : ''; - } -// #enddocregion do-something - - void _logIt(String method) { - var child = contentChild; - var message = "${method}: ${child?.hero ?? 'no'} child content"; - _logger.log(message); - } -// #docregion hooks - // ... -} -// #enddocregion hooks - -////////////// -@Component( - selector: 'after-content-parent', -// #docregion parent-template - template: ''' -
    -

    AfterContent

    - -
    - - - -
    - -

    -- AfterContent Logs --

    -

    -
    {{msg}}
    -
    - ''', -// #enddocregion parent-template - styles: const ['.parent {background: burlywood}'], - providers: const [LoggerService], - directives: const [AfterContentComponent, ChildComponent]) -class AfterContentParentComponent { - final LoggerService _logger; - bool show = true; - - AfterContentParentComponent(this._logger); - - List get logs => _logger.logs; - - void reset() { - logs.clear(); - // quickly remove and reload AfterViewComponent which recreates it - show = false; - _logger.tick().then((_) { show = true; }); - } - -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/after_view_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/after_view_component.dart deleted file mode 100644 index 9c2413c559..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/after_view_component.dart +++ /dev/null @@ -1,117 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; - -////////////////// -// #docregion child-view -@Component( - selector: 'my-child-view', - template: '') -class ChildViewComponent { - String hero = 'Magneta'; -} -// #enddocregion child-view - -////////////////////// -@Component( - selector: 'after-view', -// #docregion template - template: ''' -
    -- child view begins --
    - -
    -- child view ends --
    -

    {{comment}}

    ''', -// #enddocregion template - directives: const [ChildViewComponent]) -// #docregion hooks -class AfterViewComponent implements AfterViewChecked, AfterViewInit { - var _prevHero = ''; - - // Query for a VIEW child of type `ChildViewComponent` - @ViewChild(ChildViewComponent) ChildViewComponent viewChild; - -// #enddocregion hooks - final LoggerService _logger; - - AfterViewComponent(this._logger) { - _logIt('AfterView constructor'); - } - -// #docregion hooks - ngAfterViewInit() { - // viewChild is set after the view has been initialized - _logIt('AfterViewInit'); - _doSomething(); - } - - ngAfterViewChecked() { - // viewChild is updated after the view has been checked - if (_prevHero == viewChild.hero) { - _logIt('AfterViewChecked (no change)'); - } else { - _prevHero = viewChild.hero; - _logIt('AfterViewChecked'); - _doSomething(); - } - } -// #enddocregion hooks - - String comment = ''; - -// #docregion do-something - // This surrogate for real business logic sets the `comment` - void _doSomething() { - var c = viewChild.hero.length > 10 ? "That's a long name" : ''; - if (c != comment) { - // Wait a tick because the component's view has already been checked - _logger.tick().then((_) { comment = c; }); - } - } -// #enddocregion do-something - - void _logIt(String method) { - var child = viewChild; - var message = "${method}: ${child != null ? child.hero:'no'} child view"; - _logger.log(message); - } -// #docregion hooks - // ... -} -// #enddocregion hooks - -////////////// -@Component( - selector: 'after-view-parent', - template: ''' -
    -

    AfterView

    - - - -

    -- AfterView Logs --

    -

    -
    {{msg}}
    -
    - ''', - styles: const ['.parent {background: burlywood}'], - providers: const [LoggerService], - directives: const [AfterViewComponent]) -class AfterViewParentComponent { - final LoggerService _logger; - bool show = true; - - AfterViewParentComponent(this._logger); - - List get logs => _logger.logs; - - void reset() { - logs.clear(); - // quickly remove and reload AfterViewComponent which recreates it - show = false; - _logger.tick().then((_) { show = true; }); - } - -} -// #enddocregion diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/app_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/app_component.dart deleted file mode 100644 index 36a2667f9e..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/app_component.dart +++ /dev/null @@ -1,24 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'after_content_component.dart'; -import 'after_view_component.dart'; -import 'counter_component.dart'; -import 'do_check_component.dart'; -import 'on_changes_component.dart'; -import 'peek_a_boo_parent_component.dart'; -import 'spy_component.dart'; - -@Component( - selector: 'my-app', - templateUrl: 'app_component.html', - directives: const [ - AfterContentParentComponent, - AfterViewParentComponent, - CounterParentComponent, - DoCheckParentComponent, - OnChangesParentComponent, - PeekABooParentComponent, - SpyParentComponent, - ]) -class AppComponent {} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/app_component.html b/public/docs/_examples/lifecycle-hooks/dart/lib/app_component.html deleted file mode 100644 index d0692e28ac..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/app_component.html +++ /dev/null @@ -1,37 +0,0 @@ - -

    Component Lifecycle Hooks

    -Peek-a-boo: (most) lifecycle hooks
    -OnChanges
    -DoCheck
    -AfterViewInit & AfterViewChecked
    -AfterContentInit & AfterContentChecked
    -Spy: directive with OnInit & OnDestroy
    -Counter: OnChanges + Spy directive
    - - - -back to top - - - -back to top - - - -back to top - - - -back to top - - - -back to top - - - -back to top - - - -back to top diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/counter_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/counter_component.dart deleted file mode 100644 index 6434b9f8b5..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/counter_component.dart +++ /dev/null @@ -1,78 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; -import 'spy_directive.dart'; - -@Component( - selector: 'my-counter', - template: ''' -
    - Counter = {{counter}} - -
    -- Counter Change Log --
    -
    {{chg}}
    -
    - ''', - styles: const [ - '.counter {background: LightYellow; padding: 8px; margin-top: 8px}' - ], - directives: const [SpyDirective]) -class MyCounterComponent implements OnChanges { - @Input() num counter; - List changeLog = []; - - ngOnChanges(Map changes) { - // Empty the changeLog whenever counter goes to zero - // hint: this is a way to respond programmatically to external value changes. - if (this.counter == 0) { - changeLog.clear(); - } - - // A change to `counter` is the only change we care about - SimpleChange chng = changes['counter']; - var cur = chng.currentValue; - var prev = chng.isFirstChange() ? "{}" : chng.previousValue; - changeLog.add('counter: currentValue = $cur, previousValue = $prev'); - } -} - -@Component( - selector: 'counter-parent', - template: ''' -
    -

    Counter Spy

    - - - - - - -

    -- Spy Lifecycle Hook Log --

    -
    {{msg}}
    -
    - ''', - styles: const ['.parent {background: gold;}'], - directives: const [MyCounterComponent], - providers: const [LoggerService]) -class CounterParentComponent { - final LoggerService _logger; - num value; - - CounterParentComponent(this._logger) { - reset(); - } - - List get logs => _logger.logs; - - void updateCounter() { - value += 1; - _logger.tick(); - } - - void reset() { - _logger.log('-- reset --'); - value = 0; - _logger.tick(); - } -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/do_check_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/do_check_component.dart deleted file mode 100644 index 3208a18777..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/do_check_component.dart +++ /dev/null @@ -1,102 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -class Hero { - String name; - Hero(this.name); - Map toJson() => {'name': name}; -} - -@Component( - selector: 'do-check', - template: ''' -
    -

    {{hero.name}} can {{power}}

    - -

    -- Change Log --

    -
    {{chg}}
    -
    - ''', - styles: const [ - '.hero {background: LightYellow; padding: 8px; margin-top: 8px}', - 'p {background: Yellow; padding: 8px; margin-top: 8px}' - ]) -class DoCheckComponent implements DoCheck { - @Input() - Hero hero; - @Input() - String power; - - bool changeDetected = false; - List changeLog = []; - - String oldHeroName = ''; - String oldPower = ''; - int oldLogLength = 0; - int noChangeCount = 0; - - // #docregion ng-do-check - ngDoCheck() { - if (hero.name != oldHeroName) { - changeDetected = true; - changeLog.add( - 'DoCheck: Hero name changed to "${hero.name}" from "$oldHeroName"'); - oldHeroName = hero.name; - } - - if (power != oldPower) { - changeDetected = true; - changeLog.add('DoCheck: Power changed to "$power" from "$oldPower"'); - oldPower = power; - } - - if (changeDetected) { - noChangeCount = 0; - } else { - // log that hook was called when there was no relevant change. - var count = noChangeCount += 1; - var noChangeMsg = - 'DoCheck called ${count}x when no change to hero or power'; - if (count == 1) { - // add new "no change" message - changeLog.add(noChangeMsg); - } else { - // update last "no change" message - changeLog[changeLog.length - 1] = noChangeMsg; - } - } - - changeDetected = false; - } - // #enddocregion ng-do-check - - void reset() { - changeDetected = true; - changeLog.clear(); - } -} - -/***************************************/ - -@Component( - selector: 'do-check-parent', - templateUrl: 'do_check_parent_component.html', - styles: const ['.parent {background: Lavender}'], - directives: const [DoCheckComponent]) -class DoCheckParentComponent { - Hero hero; - String power; - String title = 'DoCheck'; - @ViewChild(DoCheckComponent) - DoCheckComponent childView; - - DoCheckParentComponent() { - reset(); - } - - void reset() { - hero = new Hero('Windstorm'); - power = 'sing'; - childView?.reset(); - } -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/do_check_parent_component.html b/public/docs/_examples/lifecycle-hooks/dart/lib/do_check_parent_component.html deleted file mode 100644 index ef3c30be28..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/do_check_parent_component.html +++ /dev/null @@ -1,13 +0,0 @@ -
    -

    {{title}}

    - - - - -
    Power:
    Hero.name:
    -

    - - - - -
    diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/logger_service.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/logger_service.dart deleted file mode 100644 index cc048579e0..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/logger_service.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'dart:async'; - -import 'package:angular2/core.dart'; - -@Injectable() -class LoggerService { - List logs = []; - String _prevMsg = ''; - int _prevMsgCount = 1; - - void log(String msg) { - if (msg == _prevMsg) { - // Repeat message; update last log entry with count. - logs[logs.length - 1] = "$msg (${_prevMsgCount += 1}x)"; - } else { - // New message; log it. - _prevMsg = msg; - _prevMsgCount = 1; - logs.add(msg); - } - } - - void clear() => logs.clear(); - - // schedules a view refresh to ensure display catches up - tick() => new Future(() {}); -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/on_changes_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/on_changes_component.dart deleted file mode 100644 index 06b9824aaa..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/on_changes_component.dart +++ /dev/null @@ -1,70 +0,0 @@ -// #docregion -import 'dart:convert'; - -import 'package:angular2/core.dart'; - -class Hero { - String name; - Hero(this.name); - Map toJson() => {'name': name}; -} - -@Component( - selector: 'on-changes', - template: ''' -
    -

    {{hero.name}} can {{power}}

    - -

    -- Change Log --

    -
    {{chg}}
    -
    - ''', - styles: const [ - '.hero {background: LightYellow; padding: 8px; margin-top: 8px}', - 'p {background: Yellow; padding: 8px; margin-top: 8px}' - ]) -class OnChangesComponent implements OnChanges { -// #docregion inputs - @Input() Hero hero; - @Input() String power; -// #enddocregion inputs - - List changeLog = []; - - // #docregion ng-on-changes - ngOnChanges(Map changes) { - changes.forEach((String propName, SimpleChange change) { - String cur = JSON.encode(change.currentValue); - String prev = - change.isFirstChange() ? "{}" : JSON.encode(change.previousValue); - changeLog.add('$propName: currentValue = $cur, previousValue = $prev'); - }); - } - // #enddocregion ng-on-changes - - void reset() { changeLog.clear(); } -} - -@Component( - selector: 'on-changes-parent', - templateUrl: 'on_changes_parent_component.html', - styles: const ['.parent {background: Lavender}'], - directives: const [OnChangesComponent]) -class OnChangesParentComponent { - Hero hero; - String power; - String title = 'OnChanges'; - @ViewChild(OnChangesComponent) OnChangesComponent childView; - - OnChangesParentComponent() { - reset(); - } - - void reset() { - // new Hero object every time; triggers onChange - hero = new Hero('Windstorm'); - // setting power only triggers onChange if this value is different - power = 'sing'; - childView?.reset(); - } -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/on_changes_parent_component.html b/public/docs/_examples/lifecycle-hooks/dart/lib/on_changes_parent_component.html deleted file mode 100644 index a0fd404931..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/on_changes_parent_component.html +++ /dev/null @@ -1,13 +0,0 @@ -
    -

    {{title}}

    - - - - -
    Power:
    Hero.name:
    -

    - - - - -
    diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/peek_a_boo_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/peek_a_boo_component.dart deleted file mode 100644 index 5ce146ea51..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/peek_a_boo_component.dart +++ /dev/null @@ -1,87 +0,0 @@ -// #docregion -// #docregion lc-imports -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; - -int _nextId = 1; - -// #docregion ngOnInit -class PeekABoo implements OnInit { - final LoggerService _logger; - - PeekABoo(this._logger); - - // implement OnInit's `ngOnInit` method - void ngOnInit() { _logIt('OnInit'); } - - void _logIt(String msg) { - // Don't tick or else - // the AfterContentChecked and AfterViewChecked recurse. - // Let parent call tick() - _logger.log("#${_nextId++} $msg"); - } -} -// #enddocregion ngOnInit - -@Component( - selector: 'peek-a-boo', - template: '

    Now you see my hero, {{name}}

    ', - styles: const ['p {background: LightYellow; padding: 8px}']) -// Don't HAVE to mention the Lifecycle Hook interfaces -// unless we want typing and tool support. -class PeekABooComponent extends PeekABoo - implements - OnChanges, - OnInit, - DoCheck, - AfterContentInit, - AfterContentChecked, - AfterViewInit, - AfterViewChecked, - OnDestroy { - @Input() String name; - - int _afterContentCheckedCounter = 1; - int _afterViewCheckedCounter = 1; - int _onChangesCounter = 1; - String _verb = 'initialized'; - - PeekABooComponent(LoggerService logger) : super(logger) { - var _is = name != null ? 'is' : 'is not'; - _logIt('name $_is known at construction'); - } - - // Only called if there is an @input variable set by parent. - ngOnChanges(Map changes) { - List messages = []; - changes.forEach((String propName, SimpleChange change) { - if (propName == 'name') { - var name = changes['name'].currentValue; - messages.add('name $_verb to "$name"'); - } else { - messages.add('$propName $_verb'); - } - }); - _logIt('OnChanges (${_onChangesCounter++}): ${messages.join('; ')}'); - _verb = 'changed'; // Next time it will be a change - } - - // Beware! Called frequently! - // Called in every change detection cycle anywhere on the page - ngDoCheck() => _logIt('DoCheck'); - - ngAfterContentInit() => _logIt('AfterContentInit'); - - // Beware! Called frequently! - // Called in every change detection cycle anywhere on the page - ngAfterContentChecked() { _logIt('AfterContentChecked (${_afterContentCheckedCounter++})'); } - - ngAfterViewInit() => _logIt('AfterViewInit'); - - // Beware! Called frequently! - // Called in every change detection cycle anywhere on the page - ngAfterViewChecked() { _logIt('AfterViewChecked (${_afterViewCheckedCounter++})'); } - - ngOnDestroy() => _logIt('OnDestroy'); -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/peek_a_boo_parent_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/peek_a_boo_parent_component.dart deleted file mode 100644 index a1e4c397d9..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/peek_a_boo_parent_component.dart +++ /dev/null @@ -1,50 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; -import 'peek_a_boo_component.dart'; - -@Component( - selector: 'peek-a-boo-parent', - template: ''' -
    -

    Peek-A-Boo

    - - - - - - - -

    -- Lifecycle Hook Log --

    -
    {{msg}}
    -
    - ''', - styles: const ['.parent {background: moccasin}'], - directives: const [PeekABooComponent], - providers: const [LoggerService]) -class PeekABooParentComponent { - final LoggerService _logger; - bool hasChild = false; - String heroName = 'Windstorm'; - - PeekABooParentComponent(this._logger); - - List get logs => _logger.logs; - - toggleChild() { - hasChild = !hasChild; - if (hasChild) { - heroName = 'Windstorm'; - _logger.clear(); // clear log on create - } - _logger.tick(); - } - - updateHero() { - heroName += '!'; - _logger.tick(); - } -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/spy_component.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/spy_component.dart deleted file mode 100644 index 8006c39a14..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/spy_component.dart +++ /dev/null @@ -1,40 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; -import 'spy_directive.dart'; - -@Component( - selector: 'spy-parent', - templateUrl: 'spy_component.html', - styles: const [ - '.parent {background: khaki}', - '.heroes {background: LightYellow; padding: 0 8px}' - ], - directives: const [SpyDirective], - providers: const [LoggerService]) -class SpyParentComponent { - final LoggerService _logger; - String newName = 'Herbie'; - List heroes = ['Windstorm', 'Magneta']; - - SpyParentComponent(this._logger); - - List get logs => _logger.logs; - - addHero() { - if (newName.trim().isNotEmpty) { - heroes.add(newName.trim()); - newName = ''; - _logger.tick(); - } - } - - // removeHero(String hero) { } is not used. - - void reset() { - _logger.log('-- reset --'); - heroes.clear(); - _logger.tick(); - } -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/spy_component.html b/public/docs/_examples/lifecycle-hooks/dart/lib/spy_component.html deleted file mode 100644 index 0207792703..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/spy_component.html +++ /dev/null @@ -1,16 +0,0 @@ -
    -

    Spy Directive

    - - - - - -

    - -
    - {{hero}} -
    - -

    -- Spy Lifecycle Hook Log --

    -
    {{msg}}
    -
    diff --git a/public/docs/_examples/lifecycle-hooks/dart/lib/spy_directive.dart b/public/docs/_examples/lifecycle-hooks/dart/lib/spy_directive.dart deleted file mode 100644 index c8656eceba..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/lib/spy_directive.dart +++ /dev/null @@ -1,23 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'logger_service.dart'; - -int _nextId = 1; - -// #docregion spy-directive -// Spy on any element to which it is applied. -// Usage:
    ...
    -@Directive(selector: '[mySpy]') -class SpyDirective implements OnInit, OnDestroy { - final LoggerService _logger; - - SpyDirective(this._logger); - - ngOnInit() => _logIt('onInit'); - - ngOnDestroy() => _logIt('onDestroy'); - - _logIt(String msg) => _logger.log('Spy #${_nextId++} $msg'); -} -// #enddocregion spy-directive diff --git a/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml b/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml deleted file mode 100644 index 05f1eae530..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: lifecycle_hooks -description: Lifecycle Hooks -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/lifecycle-hooks/dart/web/index.html b/public/docs/_examples/lifecycle-hooks/dart/web/index.html deleted file mode 100644 index 1d778919bc..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/web/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - Angular Lifecycle Hooks - - - - - - - - - - - Loading... - - - diff --git a/public/docs/_examples/lifecycle-hooks/dart/web/main.dart b/public/docs/_examples/lifecycle-hooks/dart/web/main.dart deleted file mode 100644 index f9143d4116..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/web/main.dart +++ /dev/null @@ -1,6 +0,0 @@ -import 'package:angular2/platform/browser.dart'; -import 'package:lifecycle_hooks/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/lifecycle-hooks/dart/web/sample.css b/public/docs/_examples/lifecycle-hooks/dart/web/sample.css deleted file mode 100644 index df17c897c6..0000000000 --- a/public/docs/_examples/lifecycle-hooks/dart/web/sample.css +++ /dev/null @@ -1,13 +0,0 @@ -.parent { - color: #666; - margin: 14px 0; - padding: 8px; -} -input { - margin: 4px; - padding: 4px; -} -.comment { - color: red; - font-style: italic; -} diff --git a/public/docs/_examples/pipes/dart/.docsync.json b/public/docs/_examples/pipes/dart/.docsync.json deleted file mode 100644 index 7b5fe18832..0000000000 --- a/public/docs/_examples/pipes/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Pipes", - "docPart": "guide" -} diff --git a/public/docs/_examples/pipes/dart/example-config.json b/public/docs/_examples/pipes/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/pipes/dart/lib/app_component.dart b/public/docs/_examples/pipes/dart/lib/app_component.dart deleted file mode 100644 index a03bb4a460..0000000000 --- a/public/docs/_examples/pipes/dart/lib/app_component.dart +++ /dev/null @@ -1,27 +0,0 @@ -// #docregion -import 'package:angular2/angular2.dart'; - -import 'flying_heroes_component.dart'; -import 'hero_async_message_component.dart'; -import 'hero_birthday1_component.dart'; -import 'hero_birthday2_component.dart'; -import 'hero_list_component.dart'; -import 'power_boost_calculator_component.dart'; -import 'power_booster_component.dart'; - -@Component( - selector: 'my-app', - templateUrl: 'app_component.html', - directives: const [ - FlyingHeroesComponent, - FlyingHeroesImpureComponent, - HeroAsyncMessageComponent, - HeroBirthdayComponent, - HeroBirthday2Component, - HeroListComponent, - PowerBoostCalculatorComponent, - PowerBoosterComponent, - ]) -class AppComponent { - DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988 -} diff --git a/public/docs/_examples/pipes/dart/lib/app_component.html b/public/docs/_examples/pipes/dart/lib/app_component.html deleted file mode 100644 index a27d587fcd..0000000000 --- a/public/docs/_examples/pipes/dart/lib/app_component.html +++ /dev/null @@ -1,83 +0,0 @@ - -

    Pipes

    -Happy Birthday v1
    -Birthday DatePipe
    -Happy Birthday v2
    -Birthday Pipe Chaining
    -Power Booster custom pipe
    -Power Boost Calculator custom pipe with params
    -Flying Heroes filter pipe (pure)
    -Flying Heroes filter pipe (impure)
    -Async Hero Message and AsyncPipe
    -Hero List with caching FetchJsonPipe
    - - -
    - -

    Hero Birthday v1

    - - -
    - -

    Birthday DatePipe

    - -

    The hero's birthday is {{ birthday | date }}

    - - - -

    The hero's birthday is {{ birthday | date:"MM/dd/yy" }}

    - - -
    - -

    Hero Birthday v2

    - - -
    - -

    Birthday Pipe Chaining

    -

    - - The chained hero's birthday is - {{ birthday | date | uppercase}} - -

    - -

    - - The chained hero's birthday is - {{ birthday | date:'fullDate' | uppercase}} - -

    -

    - - The chained hero's birthday is - {{ ( birthday | date:'fullDate' ) | uppercase}} - -

    -
    - - - -
    - -loading - -
    - - - -
    - - - -
    - - - - -
    - - - -
    diff --git a/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart b/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart deleted file mode 100644 index 73bce794f7..0000000000 --- a/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart +++ /dev/null @@ -1,17 +0,0 @@ -// #docregion -import 'dart:math' as math; -import 'package:angular2/angular2.dart'; - -/* - * Raise the value exponentially - * Takes an exponent argument that defaults to 1. - * Usage: - * value | exponentialStrength:exponent - * Example: - * {{ 2 | exponentialStrength:10}} - * formats to: 1024 - */ -@Pipe(name: 'exponentialStrength') -class ExponentialStrengthPipe extends PipeTransform { - num transform(num value, num exponent) => math.pow(value, exponent); -} diff --git a/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart b/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart deleted file mode 100644 index 60b2472325..0000000000 --- a/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart +++ /dev/null @@ -1,24 +0,0 @@ -// #docregion -import 'dart:convert'; -import 'dart:html'; - -import 'package:angular2/angular2.dart'; - -// #docregion pipe-metadata -@Pipe(name: 'fetch', pure: false) -// #enddocregion pipe-metadata -class FetchJsonPipe extends PipeTransform { - dynamic _cachedData; - String _cachedUrl; - - dynamic transform(String url) { - if (url != _cachedUrl) { - _cachedUrl = url; - _cachedData = null; - HttpRequest.getString(url).then((s) { - _cachedData = JSON.decode(s); - }); - } - return _cachedData; - } -} diff --git a/public/docs/_examples/pipes/dart/lib/flying_heroes_component.dart b/public/docs/_examples/pipes/dart/lib/flying_heroes_component.dart deleted file mode 100644 index 040bc6ae37..0000000000 --- a/public/docs/_examples/pipes/dart/lib/flying_heroes_component.dart +++ /dev/null @@ -1,66 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/angular2.dart'; -import 'flying_heroes_pipe.dart'; -import 'heroes.dart'; - -@Component( - selector: 'flying-heroes', - templateUrl: 'flying_heroes_component.html', - styles: const ['#flyers, #all {font-style: italic}'], - pipes: const [FlyingHeroesPipe]) -// #docregion v1 -class FlyingHeroesComponent { - List heroes; - bool canFly = true; - // #enddocregion v1 - bool mutate = true; - String title = 'Flying Heroes (pure pipe)'; - - // #docregion v1 - FlyingHeroesComponent() { - reset(); - } - - void addHero(String name) { - name = name.trim(); - if (name.isEmpty) return; - - var hero = new Hero(name, canFly); - // #enddocregion v1 - if (mutate) { - // Pure pipe won't update display because heroes list - // reference is unchanged; Impure pipe will display. - // #docregion v1, push - heroes.add(hero); - // #enddocregion v1, push - } else { - // Pipe updates display because heroes list is a new object - // #docregion concat - heroes = new List.from(heroes)..add(hero); - // #enddocregion concat - } - // #docregion v1 - } - - void reset() { - heroes = new List.from(mockHeroes); - } -} -// #enddocregion v1 - -//\\\\ Identical except for impure pipe \\\\\\ -// #docregion impure-component -@Component( - selector: 'flying-heroes-impure', - templateUrl: 'flying_heroes_component.html', - // #enddocregion impure-component - styles: const ['.flyers, .all {font-style: italic}'], - // #docregion impure-component - pipes: const [FlyingHeroesImpurePipe]) -class FlyingHeroesImpureComponent extends FlyingHeroesComponent { - FlyingHeroesImpureComponent() { - title = 'Flying Heroes (impure pipe)'; - } -} -// #docregion impure-component diff --git a/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html b/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html deleted file mode 100644 index 93e635b662..0000000000 --- a/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html +++ /dev/null @@ -1,38 +0,0 @@ - - -

    {{title}}

    -

    - -New hero: - - - can fly -

    -

    - Mutate array - - - -

    - -

    Heroes who fly (piped)

    -
    - -
    - {{hero.name}} -
    - -
    - -

    All Heroes (no pipe)

    -
    - - -
    - {{hero.name}} -
    - - -
    diff --git a/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart b/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart deleted file mode 100644 index 0ece480d12..0000000000 --- a/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart +++ /dev/null @@ -1,19 +0,0 @@ -// #docregion -// #docregion pure -import 'package:angular2/angular2.dart'; -import 'heroes.dart'; - -@Pipe(name: 'flyingHeroes') -class FlyingHeroesPipe extends PipeTransform { - // #docregion filter - List transform(List value) => - value.where((hero) => hero.canFly).toList(); - // #enddocregion filter -} -// #enddocregion pure - -// Identical except for the pure flag -// #docregion impure, pipe-decorator -@Pipe(name: 'flyingHeroes', pure: false) -// #enddocregion pipe-decorator -class FlyingHeroesImpurePipe extends FlyingHeroesPipe {} diff --git a/public/docs/_examples/pipes/dart/lib/hero_async_message_component.dart b/public/docs/_examples/pipes/dart/lib/hero_async_message_component.dart deleted file mode 100644 index c3ab0dee94..0000000000 --- a/public/docs/_examples/pipes/dart/lib/hero_async_message_component.dart +++ /dev/null @@ -1,32 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/angular2.dart'; - -@Component( - selector: 'hero-message', - template: ''' -

    Async Hero Message and AsyncPipe

    -

    Message: {{ message | async }}

    - - ''') -class HeroAsyncMessageComponent { - static const _msgEventDelay = const Duration(milliseconds: 500); - - Stream message; - - HeroAsyncMessageComponent() { - resend(); - } - - void resend() { - message = - new Stream.periodic(_msgEventDelay, (i) => _msgs[i]).take(_msgs.length); - } - - List _msgs = [ - 'You are my hero!', - 'You are the best hero!', - 'Will you be my hero?' - ]; -} diff --git a/public/docs/_examples/pipes/dart/lib/hero_birthday1_component.dart b/public/docs/_examples/pipes/dart/lib/hero_birthday1_component.dart deleted file mode 100644 index 2d2b63bb15..0000000000 --- a/public/docs/_examples/pipes/dart/lib/hero_birthday1_component.dart +++ /dev/null @@ -1,12 +0,0 @@ -// #docregion -import 'package:angular2/angular2.dart'; - -@Component( - selector: 'hero-birthday', - // #docregion hero-birthday-template - template: "

    The hero's birthday is {{ birthday | date }}

    " - // #enddocregion hero-birthday-template - ) -class HeroBirthdayComponent { - DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988 -} diff --git a/public/docs/_examples/pipes/dart/lib/hero_birthday2_component.dart b/public/docs/_examples/pipes/dart/lib/hero_birthday2_component.dart deleted file mode 100644 index 393a78bccb..0000000000 --- a/public/docs/_examples/pipes/dart/lib/hero_birthday2_component.dart +++ /dev/null @@ -1,24 +0,0 @@ -// #docregion -import 'package:angular2/angular2.dart'; - -@Component( - selector: 'hero-birthday2', - // #docregion template - template: ''' -

    The hero's birthday is {{ birthday | date:format }}

    - - ''' - // #enddocregion template - ) -// #docregion class -class HeroBirthday2Component { - DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988 - - bool toggle = true; - - get format => toggle ? 'shortDate' : 'fullDate'; - - void toggleFormat() { - toggle = !toggle; - } -} diff --git a/public/docs/_examples/pipes/dart/lib/hero_list_component.dart b/public/docs/_examples/pipes/dart/lib/hero_list_component.dart deleted file mode 100644 index 84d294065a..0000000000 --- a/public/docs/_examples/pipes/dart/lib/hero_list_component.dart +++ /dev/null @@ -1,18 +0,0 @@ -// #docregion -import 'package:angular2/angular2.dart'; - -import 'fetch_json_pipe.dart'; - -@Component( - selector: 'hero-list', - template: ''' -

    Heroes from JSON File

    - -
    - {{hero['name']}} -
    - -

    Heroes as JSON: {{'heroes.json' | fetch | json}}

    - ''', - pipes: const [FetchJsonPipe]) -class HeroListComponent {} diff --git a/public/docs/_examples/pipes/dart/lib/heroes.dart b/public/docs/_examples/pipes/dart/lib/heroes.dart deleted file mode 100644 index 2c06ca83cc..0000000000 --- a/public/docs/_examples/pipes/dart/lib/heroes.dart +++ /dev/null @@ -1,15 +0,0 @@ -class Hero { - final String name; - final bool canFly; - - const Hero(this.name, this.canFly); - - String toString() => "$name (${canFly ? 'can fly' : 'doesn\'t fly'})"; -} - -const List mockHeroes = const [ - const Hero("Windstorm", true), - const Hero("Bombasto", false), - const Hero("Magneto", false), - const Hero("Tornado", true), -]; diff --git a/public/docs/_examples/pipes/dart/lib/power_boost_calculator_component.dart b/public/docs/_examples/pipes/dart/lib/power_boost_calculator_component.dart deleted file mode 100644 index 1bf00b31fe..0000000000 --- a/public/docs/_examples/pipes/dart/lib/power_boost_calculator_component.dart +++ /dev/null @@ -1,19 +0,0 @@ -// #docregion -import 'package:angular2/angular2.dart'; -import 'exponential_strength_pipe.dart'; - -@Component( - selector: 'power-boost-calculator', - template: ''' -

    Power Boost Calculator

    -
    Normal power:
    -
    Boost factor:
    -

    - Super Hero Power: {{power | exponentialStrength: factor}} -

    - ''', - pipes: const [ExponentialStrengthPipe]) -class PowerBoostCalculatorComponent { - num power = 5; - num factor = 1; -} diff --git a/public/docs/_examples/pipes/dart/lib/power_booster_component.dart b/public/docs/_examples/pipes/dart/lib/power_booster_component.dart deleted file mode 100644 index 41a7be9878..0000000000 --- a/public/docs/_examples/pipes/dart/lib/power_booster_component.dart +++ /dev/null @@ -1,12 +0,0 @@ -// #docregion -import 'package:angular2/angular2.dart'; -import 'exponential_strength_pipe.dart'; - -@Component( - selector: 'power-booster', - template: ''' -

    Power Booster

    -

    Super power boost: {{2 | exponentialStrength: 10}}

    - ''', - pipes: const [ExponentialStrengthPipe]) -class PowerBoosterComponent {} diff --git a/public/docs/_examples/pipes/dart/pubspec.yaml b/public/docs/_examples/pipes/dart/pubspec.yaml deleted file mode 100644 index fbca0dc79e..0000000000 --- a/public/docs/_examples/pipes/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: pipe_examples -description: Pipes Example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/pipes/dart/web/heroes.json b/public/docs/_examples/pipes/dart/web/heroes.json deleted file mode 100644 index 436b220d53..0000000000 --- a/public/docs/_examples/pipes/dart/web/heroes.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - {"name": "Windstorm"}, - {"name": "Bombasto"}, - {"name": "Magneto"}, - {"name": "Tornado"} -] diff --git a/public/docs/_examples/pipes/dart/web/index.html b/public/docs/_examples/pipes/dart/web/index.html deleted file mode 100644 index 01bdf05322..0000000000 --- a/public/docs/_examples/pipes/dart/web/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Pipes Example - - - - - - - my-app loading ... - - - diff --git a/public/docs/_examples/pipes/dart/web/main.dart b/public/docs/_examples/pipes/dart/web/main.dart deleted file mode 100644 index dddf5d144d..0000000000 --- a/public/docs/_examples/pipes/dart/web/main.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:angular2/platform/browser.dart'; - -import 'package:pipe_examples/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/quickstart/dart/.docsync.json b/public/docs/_examples/quickstart/dart/.docsync.json deleted file mode 100644 index f8dc055278..0000000000 --- a/public/docs/_examples/quickstart/dart/.docsync.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "title": "QuickStart" -} diff --git a/public/docs/_examples/quickstart/dart/example-config.json b/public/docs/_examples/quickstart/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/quickstart/dart/lib/app_component.dart b/public/docs/_examples/quickstart/dart/lib/app_component.dart deleted file mode 100644 index b4842728fd..0000000000 --- a/public/docs/_examples/quickstart/dart/lib/app_component.dart +++ /dev/null @@ -1,9 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Component( - selector: 'my-app', - template: '

    Hello {{name}}

    ') -class AppComponent { - var name = 'Angular'; -} diff --git a/public/docs/_examples/quickstart/dart/pubspec.yaml b/public/docs/_examples/quickstart/dart/pubspec.yaml deleted file mode 100644 index 70f0d53048..0000000000 --- a/public/docs/_examples/quickstart/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: angular_quickstart -description: QuickStart -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/quickstart/dart/web/index.html b/public/docs/_examples/quickstart/dart/web/index.html deleted file mode 100644 index 8ee4b974c7..0000000000 --- a/public/docs/_examples/quickstart/dart/web/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Hello Angular - - - - - - - - - - - - Loading AppComponent content here ... - - - diff --git a/public/docs/_examples/quickstart/dart/web/main.dart b/public/docs/_examples/quickstart/dart/web/main.dart deleted file mode 100644 index 4b32095825..0000000000 --- a/public/docs/_examples/quickstart/dart/web/main.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_quickstart/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/server-communication/dart/.docsync.json b/public/docs/_examples/server-communication/dart/.docsync.json deleted file mode 100644 index 4dc63783c9..0000000000 --- a/public/docs/_examples/server-communication/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "HTTP Client (Server Communication)", - "docPart": "guide" -} diff --git a/public/docs/_examples/server-communication/dart/example-config.json b/public/docs/_examples/server-communication/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/server-communication/dart/lib/app_component.dart b/public/docs/_examples/server-communication/dart/lib/app_component.dart deleted file mode 100644 index cd52ca413f..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/app_component.dart +++ /dev/null @@ -1,31 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; - -import 'toh/hero_list_component.dart'; -import 'wiki/wiki_component.dart'; -import 'wiki/wiki_smart_component.dart'; - -@Component( - selector: 'my-app', - template: ''' - - - - ''', - // #enddocregion - /* - // #docregion http-providers - providers: const [ - // in-memory web api provider - const Provider(BrowserClient, - useFactory: HttpClientBackendServiceFactory, deps: const [])], - // #enddocregion http-providers - */ - // #docregion - directives: const [ - HeroListComponent, - WikiComponent, - WikiSmartComponent - ]) -class AppComponent {} diff --git a/public/docs/_examples/server-communication/dart/lib/hero_data.dart b/public/docs/_examples/server-communication/dart/lib/hero_data.dart deleted file mode 100644 index ae0480b98d..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/hero_data.dart +++ /dev/null @@ -1,15 +0,0 @@ -// #docregion -import 'package:http/browser_client.dart'; -import 'package:http_in_memory_web_api/http_in_memory_web_api.dart'; - -CreateDb _createDb = () => { - 'heroes': [ - {"id": "1", "name": "Windstorm"}, - {"id": "2", "name": "Bombasto"}, - {"id": "3", "name": "Magneta"}, - {"id": "4", "name": "Tornado"} - ] - }; - -BrowserClient HttpClientBackendServiceFactory() => - new HttpClientInMemoryBackendService(_createDb); diff --git a/public/docs/_examples/server-communication/dart/lib/toh/hero.dart b/public/docs/_examples/server-communication/dart/lib/toh/hero.dart deleted file mode 100644 index a990373a72..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/toh/hero.dart +++ /dev/null @@ -1,14 +0,0 @@ -// #docregion -int _toInt(id) => id is int ? id : int.parse(id); - -class Hero { - final int id; - final String name; - - Hero(this.id, this.name); - - factory Hero.fromJson(Map hero) => - new Hero(_toInt(hero['id']), hero['name']); - - Map toJson() => {'id': id, 'name': name}; -} diff --git a/public/docs/_examples/server-communication/dart/lib/toh/hero_list_component.dart b/public/docs/_examples/server-communication/dart/lib/toh/hero_list_component.dart deleted file mode 100644 index 23e1d6e9d7..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/toh/hero_list_component.dart +++ /dev/null @@ -1,47 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'hero_service.dart'; - -@Component( - selector: 'hero-list', - templateUrl: 'hero_list_component.html', - providers: const [HeroService]) -// #docregion component -class HeroListComponent implements OnInit { - final HeroService _heroService; - String errorMessage; - List heroes = []; - - HeroListComponent(this._heroService); - - Future ngOnInit() => getHeroes(); - - // #docregion methods - // #docregion getHeroes - Future getHeroes() async { - try { - heroes = await _heroService.getHeroes(); - } catch (e) { - errorMessage = e.toString(); - } - } - // #enddocregion getHeroes - - // #docregion addHero - Future addHero(String name) async { - name = name.trim(); - if (name.isEmpty) return; - try { - heroes.add(await _heroService.addHero(name)); - } catch (e) { - errorMessage = e.toString(); - } - } - // #enddocregion addHero - // #enddocregion methods -} -// #enddocregion component diff --git a/public/docs/_examples/server-communication/dart/lib/toh/hero_list_component.html b/public/docs/_examples/server-communication/dart/lib/toh/hero_list_component.html deleted file mode 100644 index 297ffaa6c6..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/toh/hero_list_component.html +++ /dev/null @@ -1,14 +0,0 @@ - -

    Tour of Heroes

    -

    Heroes:

    -
      -
    • - {{hero.name}} -
    • -
    -New hero name: - - -
    {{errorMessage}}
    diff --git a/public/docs/_examples/server-communication/dart/lib/toh/hero_service.dart b/public/docs/_examples/server-communication/dart/lib/toh/hero_service.dart deleted file mode 100644 index dd16fe70cd..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/toh/hero_service.dart +++ /dev/null @@ -1,72 +0,0 @@ -// #docplaster -// #docregion -// #docregion v1 -import 'dart:async'; -import 'dart:convert'; -import 'hero.dart'; -import 'package:angular2/core.dart'; -import 'package:http/browser_client.dart'; -import 'package:http/http.dart'; - -@Injectable() -class HeroService { - // #docregion endpoint, http-get - static const _heroesUrl = 'app/heroes'; // URL to web API - // #enddocregion endpoint, http-get - final BrowserClient _http; - - // #docregion ctor - HeroService(this._http); - // #enddocregion ctor - - // #docregion methods, error-handling, http-get - Future> getHeroes() async { - try { - final response = await _http.get(_heroesUrl); - final heroes = _extractData(response) - .map((value) => new Hero.fromJson(value)) - .toList(); - return heroes; - } catch (e) { - throw _handleError(e); - } - } - // #enddocregion error-handling, http-get, v1 - - // #docregion addhero, addhero-sig - Future addHero(String name) async { - // #enddocregion addhero-sig - try { - final response = await _http.post(_heroesUrl, - headers: {'Content-Type': 'application/json'}, - body: JSON.encode({'name': name})); - return new Hero.fromJson(_extractData(response)); - } catch (e) { - throw _handleError(e); - } - } - // #enddocregion addhero, v1 - - // #docregion extract-data - dynamic _extractData(Response res) { - var body = JSON.decode(res.body); - return body['data']; - } - // #enddocregion extract-data - // #docregion error-handling - - Exception _handleError(dynamic e) { - // In a real world app, we might use a remote logging infrastructure - // We'd also dig deeper into the error to get a better message - print(e); // log to console instead - return new Exception('Server error; cause: $e'); - } - // #enddocregion error-handling, methods -} -// #enddocregion - -/* - // #docregion endpoint-json - static const _heroesUrl = 'heroes.json'; // URL to JSON file - // #enddocregion endpoint-json -*/ diff --git a/public/docs/_examples/server-communication/dart/lib/wiki/wiki_component.dart b/public/docs/_examples/server-communication/dart/lib/wiki/wiki_component.dart deleted file mode 100644 index f8856b25cf..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/wiki/wiki_component.dart +++ /dev/null @@ -1,28 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; - -import 'wikipedia_service.dart'; - -@Component( - selector: 'my-wiki', - template: ''' -

    Wikipedia Demo

    -

    Fetches after each keystroke

    - -
      -
    • {{item}}
    • -
    - ''', - providers: const [WikipediaService]) -class WikiComponent { - final WikipediaService _wikipediaService; - List items = []; - - WikiComponent(this._wikipediaService); - - Future search(String term) async { - items = await this._wikipediaService.search(term); - } -} diff --git a/public/docs/_examples/server-communication/dart/lib/wiki/wiki_smart_component.dart b/public/docs/_examples/server-communication/dart/lib/wiki/wiki_smart_component.dart deleted file mode 100644 index 70f5f7bfe3..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/wiki/wiki_smart_component.dart +++ /dev/null @@ -1,37 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; -import 'package:stream_transformers/stream_transformers.dart'; - -import 'wikipedia_service.dart'; - -@Component( - selector: 'my-wiki-smart', - template: ''' -

    Smarter Wikipedia Demo

    -

    Fetches when typing stops

    - - -
      -
    • {{item}}
    • -
    - ''', - providers: const [WikipediaService]) -class WikiSmartComponent { - final WikipediaService _wikipediaService; - List items = []; - - WikiSmartComponent(this._wikipediaService) { - _searchTermStream - .transform(new Debounce(new Duration(milliseconds: 300))) - .distinct() - .transform(new FlatMapLatest( - (term) => _wikipediaService.search(term).asStream())) - .forEach((data) { - items = data; - }); - } - - final EventEmitter _searchTermStream = new EventEmitter(); - - void search(String term) => _searchTermStream.add(term); -} diff --git a/public/docs/_examples/server-communication/dart/lib/wiki/wikipedia_service.dart b/public/docs/_examples/server-communication/dart/lib/wiki/wikipedia_service.dart deleted file mode 100644 index 6942f7fa93..0000000000 --- a/public/docs/_examples/server-communication/dart/lib/wiki/wikipedia_service.dart +++ /dev/null @@ -1,25 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; -import 'package:jsonpadding/jsonpadding.dart'; - -@Injectable() -class WikipediaService { - Future> search(String term) async { - // #docregion call-jsonp - Uri uri = new Uri( - scheme: 'http', - host: 'en.wikipedia.org', - path: 'w/api.php', - queryParameters: { - 'search': term, - 'action': 'opensearch', - 'format': 'json' - }); - // TODO: Error handling - List result = await jsonp(uri); - return result[1]; - // #enddocregion call-jsonp - } -} diff --git a/public/docs/_examples/server-communication/dart/pubspec.yaml b/public/docs/_examples/server-communication/dart/pubspec.yaml deleted file mode 100644 index 3bba4c4adc..0000000000 --- a/public/docs/_examples/server-communication/dart/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# #docregion -name: server_communication -description: Server Communication -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 - http: ^0.11.0 - jsonpadding: ^0.1.0 - stream_transformers: ^0.3.0 - http_in_memory_web_api: ^0.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -# #docregion transformers -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart - resolved_identifiers: - BrowserClient: 'package:http/browser_client.dart' -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/server-communication/dart/web/heroes.json b/public/docs/_examples/server-communication/dart/web/heroes.json deleted file mode 100644 index c6b5cc91df..0000000000 --- a/public/docs/_examples/server-communication/dart/web/heroes.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "data": [ - { "id": "1", "name": "Windstorm" }, - { "id": "2", "name": "Bombasto" }, - { "id": "3", "name": "Magneta" }, - { "id": "4", "name": "Tornado" } - ] -} diff --git a/public/docs/_examples/server-communication/dart/web/index.html b/public/docs/_examples/server-communication/dart/web/index.html deleted file mode 100644 index 529e5d1c9c..0000000000 --- a/public/docs/_examples/server-communication/dart/web/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Angular Http Demo - - - - - - - - - - - Loading... - - - diff --git a/public/docs/_examples/server-communication/dart/web/main.dart b/public/docs/_examples/server-communication/dart/web/main.dart deleted file mode 100644 index ca055c9d10..0000000000 --- a/public/docs/_examples/server-communication/dart/web/main.dart +++ /dev/null @@ -1,34 +0,0 @@ -// #docplaster -// #docregion final -import 'package:angular2/core.dart'; -// #docregion v1 -import 'package:angular2/platform/browser.dart'; -// #docregion http-providers -import 'package:http/browser_client.dart'; -// #enddocregion http-providers - -import 'package:server_communication/app_component.dart'; -// #enddocregion v1 -// #docregion in-mem-web-api-imports -import "package:server_communication/hero_data.dart"; - -// #enddocregion in-mem-web-api-imports -// #docregion in-mem-web-api-providers -void main() { - bootstrap(AppComponent, const [ - // in-memory web api provider - const Provider(BrowserClient, - useFactory: HttpClientBackendServiceFactory, deps: const []) - // TODO: drop `deps` once fix lands for - // https://github.com/angular/angular/issues/5266 - ]); -} -// #enddocregion final, in-mem-web-api-providers -/* -// #docregion v1 - -void main() { - bootstrap(AppComponent, const [BrowserClient]); -} -// #enddocregion v1 -*/ diff --git a/public/docs/_examples/server-communication/dart/web/sample.css b/public/docs/_examples/server-communication/dart/web/sample.css deleted file mode 100644 index 3bb281e096..0000000000 --- a/public/docs/_examples/server-communication/dart/web/sample.css +++ /dev/null @@ -1 +0,0 @@ -.error {color:red;} diff --git a/public/docs/_examples/structural-directives/dart/lib/heavy_loader_component.dart b/public/docs/_examples/structural-directives/dart/lib/heavy_loader_component.dart deleted file mode 100644 index a2efd3b2f1..0000000000 --- a/public/docs/_examples/structural-directives/dart/lib/heavy_loader_component.dart +++ /dev/null @@ -1,32 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; - -int nextId = 1; - -@Component( - selector: 'heavy-loader', - template: 'heavy loader #{{id}} on duty!') -class HeavyLoaderComponent implements OnInit, OnDestroy { - int id = nextId++; - @Input() List logs; - - // Mock todo: get 10,000 rows of data from the server - ngOnInit() => _log( - "heavy-loader $id initialized, loading 10,000 rows of data from the server"); - - // Mock todo: clean-up - ngOnDestroy() => _log("heavy-loader $id destroyed, cleaning up"); - - _log(String msg) { - logs.add(msg); - _tick(); - } - - /// Triggers the next round of Angular change detection - /// after one turn of the browser event loop - /// ensuring display of msg added in onDestroy - _tick() => new Future(() {}); -} -// #enddocregion diff --git a/public/docs/_examples/structural-directives/dart/lib/structural_directives_component.dart b/public/docs/_examples/structural-directives/dart/lib/structural_directives_component.dart deleted file mode 100644 index 901c8b18b1..0000000000 --- a/public/docs/_examples/structural-directives/dart/lib/structural_directives_component.dart +++ /dev/null @@ -1,21 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; - -import 'heavy_loader_component.dart'; -import 'unless_directive.dart'; - -@Component( - selector: 'structural-directives', - templateUrl: 'structural_directives_component.html', - styles: const ['button { min-width: 100px; }'], - directives: const [UnlessDirective, HeavyLoaderComponent]) -class StructuralDirectivesComponent { - List heroes = ['Mr. Nice', 'Narco', 'Bombasto']; - bool condition = true; - bool isVisible = true; - List logs = []; - String status = 'ready'; - - get hero => heroes[0]; -} diff --git a/public/docs/_examples/structural-directives/dart/lib/structural_directives_component.html b/public/docs/_examples/structural-directives/dart/lib/structural_directives_component.html deleted file mode 100644 index 7ad7cf2247..0000000000 --- a/public/docs/_examples/structural-directives/dart/lib/structural_directives_component.html +++ /dev/null @@ -1,108 +0,0 @@ - - -

    Structural Directives

    - - - -
    {{hero}}
    -
    {{hero}}
    - - -
    - - - -
    - - - -
    - - - - -

    - condition is true and ngIf is true. -

    -

    - condition is false and ngIf is false. -

    - - -

    - condition is false and myUnless is true. -

    - -

    - condition is true and myUnless is false. -

    - - -
    - - -
    - - -
    - -
    - - -
    - -

    heavy-loader log:

    -
    {{message}}
    - - -
    - - -

    - Hip! -

    - -

    - Hooray! -

    - - -
    - - - - -

    - Our heroes are true! -

    - - - - - -
    - - - - - -
    {{ hero }}
    - - - - diff --git a/public/docs/_examples/structural-directives/dart/lib/unless_directive.dart b/public/docs/_examples/structural-directives/dart/lib/unless_directive.dart deleted file mode 100644 index 907e0edd15..0000000000 --- a/public/docs/_examples/structural-directives/dart/lib/unless_directive.dart +++ /dev/null @@ -1,31 +0,0 @@ -// #docplaster -// #docregion -// #docregion unless-declaration -import 'package:angular2/core.dart'; -// #enddocregion unless-declaration - -// #docregion unless-declaration -@Directive(selector: '[myUnless]') -class UnlessDirective { - // #enddocregion unless-declaration - - // #docregion unless-constructor - TemplateRef _templateRef; - ViewContainerRef _viewContainer; - - UnlessDirective(this._templateRef, this._viewContainer); - // #enddocregion unless-constructor - - // #docregion unless-set - @Input() - set myUnless(bool condition) { - if (!condition) { - _viewContainer.createEmbeddedView(_templateRef); - } else { - _viewContainer.clear(); - } - } - // #enddocregion unless-set - // #docregion unless-declaration -} -// #enddocregion unless-declaration diff --git a/public/docs/_examples/structural-directives/dart/pubspec.yaml b/public/docs/_examples/structural-directives/dart/pubspec.yaml deleted file mode 100644 index 5d4b446529..0000000000 --- a/public/docs/_examples/structural-directives/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: structural_directives -description: Structural directives example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/structural-directives/dart/web/index.html b/public/docs/_examples/structural-directives/dart/web/index.html deleted file mode 100644 index 7d5b4d15c9..0000000000 --- a/public/docs/_examples/structural-directives/dart/web/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Angular Structural Directives - - - - - - - Loading... - - - diff --git a/public/docs/_examples/structural-directives/dart/web/main.dart b/public/docs/_examples/structural-directives/dart/web/main.dart deleted file mode 100644 index f26456b187..0000000000 --- a/public/docs/_examples/structural-directives/dart/web/main.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:structural_directives/structural_directives_component.dart'; - -main() { - bootstrap(StructuralDirectivesComponent); -} diff --git a/public/docs/_examples/template-syntax/dart/.analysis_options b/public/docs/_examples/template-syntax/dart/.analysis_options deleted file mode 100644 index d8c582e96f..0000000000 --- a/public/docs/_examples/template-syntax/dart/.analysis_options +++ /dev/null @@ -1,16 +0,0 @@ -# Supported lint rules and documentation: http://dart-lang.github.io/linter/lints/ -linter: - rules: - - always_declare_return_types - - camel_case_types - - empty_constructor_bodies - - annotate_overrides - - avoid_init_to_null - - constant_identifier_names - - one_member_abstracts - - slash_for_doc_comments - - sort_constructors_first - - unnecessary_brace_in_string_interp - -analyzer: - # strong-mode: true diff --git a/public/docs/_examples/template-syntax/dart/.docsync.json b/public/docs/_examples/template-syntax/dart/.docsync.json deleted file mode 100644 index 8156f76401..0000000000 --- a/public/docs/_examples/template-syntax/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "Template Syntax", - "docPart": "guide" -} diff --git a/public/docs/_examples/template-syntax/dart/example-config.json b/public/docs/_examples/template-syntax/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/template-syntax/dart/lib/app_component.dart b/public/docs/_examples/template-syntax/dart/lib/app_component.dart deleted file mode 100644 index 4be7533fcc..0000000000 --- a/public/docs/_examples/template-syntax/dart/lib/app_component.dart +++ /dev/null @@ -1,262 +0,0 @@ -// #docregion -import 'dart:convert'; -import 'dart:html'; - -import 'package:angular2/core.dart'; -import 'package:angular2/common.dart'; - -import 'hero.dart'; -import 'hero_detail_component.dart'; -import 'click_directive.dart'; -import 'sizer_component.dart'; - -enum Color { red, green, blue } - -@Component( - selector: 'my-app', - templateUrl: 'app_component.html', - directives: const [ - HeroDetailComponent, - BigHeroDetailComponent, - MyClickDirective, - MyClickDirective2, - MySizerComponent - ]) -class AppComponent implements OnInit, AfterViewInit { - @override - void ngOnInit() { - refreshHeroes(); - } - - @override - void ngAfterViewInit() { - _detectNgForTrackByEffects(); - } - - String heroName; - String help; - String actionName = 'Go for it'; - String badCurly = 'bad curly'; - String classes = 'special'; - bool canSave = true; - bool isActive = false; - bool isSpecial = true; - bool isUnchanged = true; - bool isSelected = false; - final Color colorRed = Color.red; - Color color = Color.red; - var colorEnum = Color; - - List heroes; - Hero currentHero; - - // #docregion refresh-heroes - /// Updates [this.heroes] with fresh set of cloned heroes. - void refreshHeroes() { - heroes = mockHeroes.map((hero) => hero.clone()).toList(); - currentHero = heroes[0]; - } - // #enddocregion refresh-heroes - - final Hero nullHero = null; - Map product = {'name': 'frimfram', 'price': 42}; - FormElement form; - String clicked = ''; - String clickMessage = ''; - String clickMessage2 = ''; - final String iconUrl = 'assets/images/ng-logo.png'; - - // heroImageUrl = 'http://www.wpclipart.com/cartoon/people/hero/hero_silhoutte_T.png'; - // Public Domain terms of use: http://www.wpclipart.com/terms.html - final String heroImageUrl = 'assets/images/hero.png'; - - // villainImageUrl = 'http://www.clker.com/cliparts/u/s/y/L/x/9/villain-man-hi.png' - // Public Domain terms of use http://www.clker.com/disclaimer.html - final String villainImageUrl = 'assets/images/villain.png'; - - void alerter(String msg) { - window.alert(msg); - } - - void callFax(String value) { - alerter('Faxing $value ...'); - } - - void callPhone(String value) { - alerter('Calling $value ...'); - } - - void colorToggle() { - color = (color == Color.red) ? Color.blue : Color.red; - } - - int getVal() => val; - - void onCancel(UIEvent event) { - HtmlElement el = event?.target; - var evtMsg = event != null ? 'Event target is ${el.innerHtml}.' : ''; - alerter('Canceled. $evtMsg'); - } - - void onClickMe(UIEvent event) { - HtmlElement el = event?.target; - var evtMsg = event != null ? 'Event target class is ${el.className}.' : ''; - alerter('Click me. $evtMsg'); - } - - void deleteHero([Hero hero]) { - alerter('Deleted hero: ${hero?.firstName}'); - } - - bool onSave([UIEvent event = null]) { - HtmlElement el = event?.target; - var evtMsg = event != null ? ' Event target is ${el.innerHtml}.' : ''; - alerter('Saved. $evtMsg'); - return false; - } - - void onSubmit(NgForm form) { - var evtMsg = form.valid - ? ' Form value is ${JSON.encode(form.value)}' - : ' Form is invalid'; - alerter('Form submitted. $evtMsg'); - } - - void setUpperCaseFirstName(String firstName) { - currentHero.firstName = firstName.toUpperCase(); - } - - String getStyles(Element el) { - final style = el.style; - final Map styles = {}; - for (var i = 0; i < style.length; i++) { - styles[style.item(i)] = style.getPropertyValue(style.item(i)); - } - return JSON.encode(styles); - } - - Map _previousClasses = {}; - // #docregion setClasses - Map setClasses() { - final classes = { - 'saveable': canSave, // true - 'modified': !isUnchanged, // false - 'special': isSpecial // true - }; - // #docregion setClasses - // compensate for DevMode (sigh) - if (JSON.encode(_previousClasses) == JSON.encode(classes)) - return _previousClasses; - _previousClasses = classes; - // #enddocregion setClasses - return classes; - } - // #enddocregion setClasses - - // #docregion setStyles - Map setStyles() { - return { - 'font-style': canSave ? 'italic' : 'normal', // italic - 'font-weight': !isUnchanged ? 'bold' : 'normal', // normal - 'font-size': isSpecial ? '24px' : '8px' // 24px - }; - } - // #enddocregion setStyles - - // #docregion NgStyle - bool isItalic = false; - bool isBold = false; - String fontSize = 'large'; - String fontSizePx = '14'; - - Map setStyle() { - return { - 'font-style': isItalic ? 'italic' : 'normal', - 'font-weight': isBold ? 'bold' : 'normal', - 'font-size': fontSize - }; - } - // #enddocregion NgStyle - - String title = 'Template Syntax'; - // #docregion evil-title - String evilTitle = 'Template Syntax'; - // #enddocregion evil-title - - String toeChoice; - - String toeChooser(Element picker) { - List choices = picker.children; - for (var i = 0; i < choices.length; i++) { - var choice = choices[i] as CheckboxInputElement; - if (choice.checked) { - toeChoice = choice.value; - return toeChoice; - } - } - - return null; - } - - // #docregion trackByHeroes - int trackByHeroes(int index, Hero hero) => hero.id; - // #enddocregion trackByHeroes - - // #docregion trackById - int trackById(int index, dynamic item) => item.id; - // #enddocregion trackById - - int val = 2; - - //////// Detect effects of NgForTrackBy /////////////// - int heroesNoTrackByChangeCount = 0; - int heroesWithTrackByChangeCount = 0; - - @ViewChildren('noTrackBy') - QueryList childrenNoTrackBy; - @ViewChildren('withTrackBy') - QueryList childrenWithTrackBy; - - void _detectNgForTrackByEffects() { - /// Converts [viewChildren] to a list of [Element]. - List _extractChildren(QueryList viewChildren) => - viewChildren.toList()[0].nativeElement.children.toList() - as List; - - { - // Updates 'without TrackBy' statistics. - List _oldNoTrackBy = _extractChildren(this.childrenNoTrackBy); - - this.childrenNoTrackBy.changes.listen((Iterable changes) { - final newNoTrackBy = _extractChildren(changes); - final isSame = newNoTrackBy.fold(true, (bool isSame, Element elt) { - return isSame && _oldNoTrackBy.contains(elt); - }); - - if (!isSame) { - _oldNoTrackBy = newNoTrackBy; - this.heroesNoTrackByChangeCount++; - } - }); - } - - { - // Updates 'with TrackBy' statistics. - List _oldWithTrackBy = - _extractChildren(this.childrenWithTrackBy); - - this.childrenWithTrackBy.changes.listen((Iterable changes) { - final newWithTrackBy = _extractChildren(changes); - final isSame = newWithTrackBy.fold(true, (bool isSame, Element elt) { - return isSame && _oldWithTrackBy.contains(elt); - }); - - if (!isSame) { - _oldWithTrackBy = newWithTrackBy; - this.heroesWithTrackByChangeCount++; - } - }); - } - } - /////////////////// -} diff --git a/public/docs/_examples/template-syntax/dart/lib/app_component.html b/public/docs/_examples/template-syntax/dart/lib/app_component.html deleted file mode 100644 index 3255a02ff6..0000000000 --- a/public/docs/_examples/template-syntax/dart/lib/app_component.html +++ /dev/null @@ -1,827 +0,0 @@ - - -

    Template Syntax

    -Interpolation
    -Mental Model
    -Buttons
    -Properties vs. Attributes
    -
    -Property Binding
    - -
    -Event Binding
    -Two-way Binding
    -
    -
    Directives
    - -
    -* prefix and <template>
    -Template reference variables
    -Inputs and outputs
    -Pipes
    -Safe navigation operator ?.
    -Enums
    - - -

    Interpolation

    - - -

    My current hero is {{currentHero.firstName}}

    - - - -

    - {{title}} - -

    - - - - -

    The sum of 1 + 1 is {{1 + 1}}

    - - - - -

    The sum of 1 + 1 is not {{1 + 1 + getVal()}}

    - - -top - - -

    New Mental Model

    - - - - -
    Mental Model
    - - - -

    - -
    - - -
    Mental Model
    - - - -
    -

    - -
    - - - - -
    -

    - -
    - - - -
    - -
    -

    - - - - -
    click me
    - -{{clicked}} -

    - -
    - - - - Hero Name: {{heroName}} -
    -

    - - - - -

    - - -
    Special
    - -

    - - - - -top - - -

    Property vs. Attribute (img examples)

    - - - -

    - - - - - -top - - -

    Buttons

    - - - - -

    - - -

    - - - -top - - -

    Property Binding

    - - - - - - - - -
    [ngClass] binding to the classes property
    - - - - - - - - - - - -
    - - - -
    - - - - - -

    is the interpolated image.

    -

    is the property bound image.

    - -

    "{{title}}" is the interpolated title.

    -

    "" is the property bound title.

    - - - -

    "{{evilTitle}}" is the interpolated evil title.

    -

    "" is the property bound evil title.

    - - -top - - -

    Attribute Binding

    - - - - - - - - - - -
    One-Two
    FiveSix
    - - -
    - - - - -

    - - -
    - - - - - - - -
    - -top - - -

    Class Binding

    - - - -
    Bad curly special
    - - - - -
    Bad curly
    - - - - - -
    The class binding is special
    - - - -
    This one is not so special
    - - -
    This class binding is special too
    - -top - - -

    Style Binding

    - - - - - - - - - - - -top - - -

    Event Binding

    - - - - - - - - - -
    - - - -
    click with myClick
    - - -{{clickMessage}} -
    - - - - - - -
    - - - - - -
    Click me -
    Click me too!
    -
    - -

    - - - -
    - -
    - -

    - - -
    - -
    - -

    -top - -

    Two-way Binding

    -
    - - -
    Resizable Text
    - - -
    -
    -
    -

    De-sugared two-way binding

    - - - -
    -

    - -top - - -

    NgModel (two-way) Binding

    - -

    Result: {{currentHero.firstName}}

    - - - - -without NgModel -
    - - - -[(ngModel)] -
    - - - -bindon-ngModel -
    - - - -(ngModelChange) = "...firstName=$event" -
    - - - -(ngModelChange) = "setUpperCaseFirstName($event)" -
    - -top - - -

    NgClass Binding

    - -

    setClasses returns {{setClasses() | json}}

    - -
    This div is saveable and special
    - -
    - After setClasses(), the classes are "{{classDiv.className}}" -
    - - - -
    This div is special
    - -
    Bad curly special
    -
    Curly special
    - -top - - -

    NgStyle Binding

    - - -
    -

    Change style of this text!

    - - | - | - - -

    Style set to: '{{styleP.style.cssText}}'

    -
    - - - -
    - This div is x-large. -
    - - -

    Use setStyles() - CSS property names

    -

    setStyles returns {{setStyles()}}.

    - -
    - This div is italic, normal weight, and extra large (24px). -
    - -

    After setStyles(), the DOM confirms that the styles are - - {{getStyles(styleDiv)}} - . -

    - - - -top - - -

    NgIf Binding

    - - -
    Hello, {{currentHero.firstName}}
    - - - - -
    Hello, {{nullHero.firstName}}
    - - - - - - - - - - -
    Hero Detail removed from DOM (via template) because isActive is false
    - - - - -
    Show with class
    -
    Hide with class
    - - - - -
    Show with style
    -
    Hide with style
    - - -top - - -

    NgSwitch Binding

    - -
    - Eenie - Meanie - Miney - Moe - ??? -
    - -
    -
    Pick a toe
    -
    - You picked ... - - - - - - - Eenie - Meanie - Miney - Moe - other - - - - - - - - - - - - -
    -
    - -top - - -

    NgFor Binding

    - -
    - -
    {{hero.fullName}}
    - -
    -
    - -
    - - - - -
    - -top - -

    NgFor with index

    -

    with semi-colon separator

    -
    - -
    {{i + 1}} - {{hero.fullName}}
    - -
    - -

    with comma separator

    -
    - -
    {{i + 1}} - {{hero.fullName}}
    -
    - -top - -

    NgForTrackBy

    - -

    First hero:

    - -

    without trackBy

    -
    - -
    ({{hero.id}}) {{hero.fullName}}
    - -
    -
    - Hero DOM elements change #{{heroesNoTrackByChangeCount}} without trackBy -
    - -

    with trackBy and semi-colon separator

    -
    - -
    ({{hero.id}}) {{hero.fullName}}
    - -
    -
    - Hero DOM elements change #{{heroesWithTrackByChangeCount}} with trackBy -
    - -

    with trackBy and comma separator

    -
    -
    ({{hero.id}}) {{hero.fullName}}
    -
    - -

    with trackBy and space separator

    -
    -
    ({{hero.id}}) {{hero.fullName}}
    -
    - -

    with *ngForTrackBy

    -
    - -
    ({{hero.id}}) {{hero.fullName}}
    - -
    - -

    with generic trackById function

    -
    - -
    ({{hero.id}}) {{hero.fullName}}
    - -
    - -top - - -

    * prefix and <template>

    - -

    *ngIf expansion

    -

    *ngIf

    - - - - -

    expand to template = "..."

    - - - - -

    expand to <template>

    - - - - -

    *ngFor expansion

    -

    *ngFor

    - - - - - -

    expand to template = "..."

    -
    - - - - -
    - -

    expand to <template>

    -
    - - - - -
    - -top - - -

    Template reference variables

    - - - - - - - - - - - -

    Example Form

    - - -
    - -
    - - -
    - - -
    - - -

    - - - - -top - - -

    Inputs and Outputs

    - - - - - - - - - - - -
    myClick2
    -{{clickMessage2}} - -top - - -

    Pipes

    - - -
    Title through uppercase pipe: {{title | uppercase}}
    - - - - -
    - Title through a pipe chain: - {{title | uppercase | lowercase}} -
    - - - - -
    Birthdate: {{currentHero?.birthdate | date:'longDate'}}
    - - - -
    {{currentHero}}
    - - -
    Birthdate: {{(currentHero?.birthdate | date:'longDate') | uppercase}}
    - -
    - - {{product['price'] | currency:'USD':true}} -
    - -top - - -

    Safe navigation operator ?.

    - -
    - - The title is {{title}} - -
    - -
    - - The current hero's name is {{currentHero?.firstName}} - -
    - -
    - - The current hero's name is {{currentHero.firstName}} - -
    - - - - - - -
    The null hero's name is {{nullHero.firstName}}
    - - - - -
    - - - The null hero's name is {{nullHero?.firstName}} - -
    - - -top - - - -

    Enums in binding

    - -

    - - The name of the Color.red enum is {{colorRed}}.
    - The current color is {{color}} and its index is {{color.index}}.
    - - -

    - -top diff --git a/public/docs/_examples/template-syntax/dart/lib/click_directive.dart b/public/docs/_examples/template-syntax/dart/lib/click_directive.dart deleted file mode 100644 index 101b9eb5c6..0000000000 --- a/public/docs/_examples/template-syntax/dart/lib/click_directive.dart +++ /dev/null @@ -1,42 +0,0 @@ -// #docplaster -import 'dart:html'; - -import 'package:angular2/core.dart'; - -@Directive(selector: '[myClick]') -class MyClickDirective { - // #docregion output-myClick - // @Output(alias) [type info] propertyName = ... - @Output('myClick') final EventEmitter clicks = new EventEmitter(); - - // #enddocregion output-myClick - bool _toggle = false; - - MyClickDirective(ElementRef el) { - Element nativeEl = el.nativeElement; - nativeEl.onClick.listen((Event e) { - _toggle = !_toggle; - clicks.emit(_toggle ? 'Click!' : ''); - }); - } -} - -// #docregion output-myClick2 -@Directive( -// #enddocregion output-myClick2 - selector: '[myClick2]', -// #docregion output-myClick2 - // ... - outputs: const ['clicks:myClick']) // propertyName:alias -// #enddocregion output-myClick2 -class MyClickDirective2 { - final EventEmitter clicks = new EventEmitter(); - bool _toggle = false; - - MyClickDirective2(ElementRef el) { - el.nativeElement.onClick.listen((Event e) { - _toggle = !_toggle; - clicks.emit(_toggle ? 'Click2!' : ''); - }); - } -} diff --git a/public/docs/_examples/template-syntax/dart/lib/hero.dart b/public/docs/_examples/template-syntax/dart/lib/hero.dart deleted file mode 100644 index d366a23c19..0000000000 --- a/public/docs/_examples/template-syntax/dart/lib/hero.dart +++ /dev/null @@ -1,37 +0,0 @@ -// #docregion -class Hero { - static int _nextId = 1; - - final int id; - String firstName; - String lastName; - DateTime birthdate; - String url; - int rate = 100; - - Hero(this.firstName, - {this.lastName, this.birthdate, this.url, this.rate, int id}) - : this.id = id ?? _nextId++; - - String get fullName { - if (lastName == null) return firstName; - return '$firstName $lastName'; - } - - Hero clone() => new Hero(firstName, - lastName: lastName, birthdate: birthdate, url: url, rate: rate, id: id); - - @override String toString() => '$fullName (rate: $rate)'; -} - -final List mockHeroes = [ - new Hero('Hercules', - lastName: 'Son of Zeus', - birthdate: new DateTime(1970, 2, 25), - url: 'http://www.imdb.com/title/tt0065832/', - rate: 325), - new Hero('eenie', lastName: 'toe'), - new Hero('Meanie', lastName: 'Toe'), - new Hero('Miny', lastName: 'Toe'), - new Hero('Moe', lastName: 'Toe') -]; diff --git a/public/docs/_examples/template-syntax/dart/lib/hero_detail_component.dart b/public/docs/_examples/template-syntax/dart/lib/hero_detail_component.dart deleted file mode 100644 index 5eb6da1c76..0000000000 --- a/public/docs/_examples/template-syntax/dart/lib/hero_detail_component.dart +++ /dev/null @@ -1,80 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -// #docregion input-output-2 -@Component( -// #enddocregion input-output-2 - selector: 'hero-detail', -// #docregion input-output-2 - // ... - inputs: const ['hero'], - outputs: const ['deleteRequest'], -// #enddocregion input-output-2 - styles: const [ - 'button { margin-left: 8px} div {margin: 8px 0} img {height:24px}' - ], -// #docregion template-1 - template: ''' -
    - - - {{prefix}} {{hero?.fullName}} - - -
    ''' -// #enddocregion template-1 -// #docregion input-output-2 - ) -// #enddocregion input-output-2 -class HeroDetailComponent { - Hero hero = new Hero('Zzzzzzzz'); // default sleeping hero - String heroImageUrl = 'assets/images/hero.png'; - String lineThrough = ''; // PENDING: use null instead? - @Input() String prefix = ''; - - // #docregion deleteRequest - // This component make a request but it can't actually delete a hero. - final deleteRequest = new EventEmitter(); - - void delete() { - deleteRequest.emit(hero); - // #enddocregion deleteRequest - lineThrough = (lineThrough == '') ? 'line-through' : ''; - // #docregion deleteRequest - } - // #enddocregion deleteRequest -} - -@Component( - selector: 'big-hero-detail', - /* - inputs: ['hero'], - outputs: ['deleteRequest'], - */ - template: ''' -
    - -
    {{hero?.fullName}}
    -
    First: {{hero?.firstName}}
    -
    Last: {{hero?.lastName}}
    -
    Birthdate: {{hero?.birthdate | date:'longDate'}}
    - -
    Rate/hr: {{hero?.rate | currency:'EUR'}}
    -
    - -
    ''') -class BigHeroDetailComponent extends HeroDetailComponent { - // #docregion input-output-1 - @Input() Hero hero; - @Output() final deleteRequest = new EventEmitter(); - // #enddocregion input-output-1 - - String get heroImageUrl => 'assets/images/hero.png'; - - @override void delete() { - deleteRequest.emit(hero); - } -} diff --git a/public/docs/_examples/template-syntax/dart/lib/sizer_component.dart b/public/docs/_examples/template-syntax/dart/lib/sizer_component.dart deleted file mode 100644 index 84dbc1d9ff..0000000000 --- a/public/docs/_examples/template-syntax/dart/lib/sizer_component.dart +++ /dev/null @@ -1,30 +0,0 @@ -// #docregion -import 'dart:math'; -import 'package:angular2/core.dart'; - -@Component( - selector: 'my-sizer', - template: ''' -
    - - - -
    ''') -class MySizerComponent { - static final defaultPxSize = 14; - - @Input() - String size; - - @Output() - var sizeChange = new EventEmitter(); - - void dec() => resize(-1); - void inc() => resize(1); - - void resize(num delta) { - final numSize = num.parse(size, (_) => defaultPxSize); - size = min(40, max(8, numSize + delta)).toString(); - sizeChange.emit(size); - } -} diff --git a/public/docs/_examples/template-syntax/dart/pubspec.yaml b/public/docs/_examples/template-syntax/dart/pubspec.yaml deleted file mode 100644 index 44a8cc832f..0000000000 --- a/public/docs/_examples/template-syntax/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: template_syntax -description: Template Syntax -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/template-syntax/dart/web/assets/images/hero.png b/public/docs/_examples/template-syntax/dart/web/assets/images/hero.png deleted file mode 100644 index 2a128ac367..0000000000 Binary files a/public/docs/_examples/template-syntax/dart/web/assets/images/hero.png and /dev/null differ diff --git a/public/docs/_examples/template-syntax/dart/web/assets/images/ng-logo.png b/public/docs/_examples/template-syntax/dart/web/assets/images/ng-logo.png deleted file mode 100644 index 1e488b1a49..0000000000 Binary files a/public/docs/_examples/template-syntax/dart/web/assets/images/ng-logo.png and /dev/null differ diff --git a/public/docs/_examples/template-syntax/dart/web/assets/images/villain.png b/public/docs/_examples/template-syntax/dart/web/assets/images/villain.png deleted file mode 100644 index 26697d1a42..0000000000 Binary files a/public/docs/_examples/template-syntax/dart/web/assets/images/villain.png and /dev/null differ diff --git a/public/docs/_examples/template-syntax/dart/web/index.html b/public/docs/_examples/template-syntax/dart/web/index.html deleted file mode 100644 index 3444f9f8f9..0000000000 --- a/public/docs/_examples/template-syntax/dart/web/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Template Syntax - - - - - - - - Loading... - - diff --git a/public/docs/_examples/template-syntax/dart/web/main.dart b/public/docs/_examples/template-syntax/dart/web/main.dart deleted file mode 100644 index 1a5f965ec1..0000000000 --- a/public/docs/_examples/template-syntax/dart/web/main.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:template_syntax/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/template-syntax/dart/web/template-syntax.css b/public/docs/_examples/template-syntax/dart/web/template-syntax.css deleted file mode 100644 index c8c0925830..0000000000 --- a/public/docs/_examples/template-syntax/dart/web/template-syntax.css +++ /dev/null @@ -1,12 +0,0 @@ -fieldset {border-style:none} -img {height: 100px;} -.box {border: 1px solid black; padding:3px} -.child-div {margin-left: 1em; font-weight: normal} -.hidden {display: none} -.parent-div {margin-top: 1em; font-weight: bold} -.special {font-weight:bold; font-size: x-large} -.bad {color: red;} -.curly {font-family: "Brush Script MT"} -.toe {margin-left: 1em; font-style: italic;} -little-hero {color:blue; font-size: smaller; background-color: Turquoise } -.to-toc {margin-top: 10px; display: block} \ No newline at end of file diff --git a/public/docs/_examples/toh-1/dart/.docsync.json b/public/docs/_examples/toh-1/dart/.docsync.json deleted file mode 100644 index 7ea3bce8f9..0000000000 --- a/public/docs/_examples/toh-1/dart/.docsync.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Tour of Heroes: The Hero Editor", - "docPart": "tutorial", - "docHref": "toh-pt1.html" -} diff --git a/public/docs/_examples/toh-1/dart/example-config.json b/public/docs/_examples/toh-1/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/toh-1/dart/lib/app_component.dart b/public/docs/_examples/toh-1/dart/lib/app_component.dart deleted file mode 100644 index 362d8b3004..0000000000 --- a/public/docs/_examples/toh-1/dart/lib/app_component.dart +++ /dev/null @@ -1,30 +0,0 @@ -// #docregion pt1 -import 'package:angular2/core.dart'; - -// #docregion hero-class-1 -class Hero { - final int id; - String name; - - Hero(this.id, this.name); -} -// #enddocregion hero-class-1 - -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    -

    {{hero.name}} details!

    -
    {{hero.id}}
    -
    - - -
    ''' -) -class AppComponent { - String title = 'Tour of Heroes'; - // #docregion hero-property-1 - Hero hero = new Hero(1, 'Windstorm'); - // #enddocregion hero-property-1 -} -// #enddocregion pt1 diff --git a/public/docs/_examples/toh-1/dart/pubspec.yaml b/public/docs/_examples/toh-1/dart/pubspec.yaml deleted file mode 100644 index 8c8d67bdb7..0000000000 --- a/public/docs/_examples/toh-1/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: angular_tour_of_heroes -description: Tour of Heroes -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/toh-1/dart/web/index.html b/public/docs/_examples/toh-1/dart/web/index.html deleted file mode 100644 index 3a2280f3b7..0000000000 --- a/public/docs/_examples/toh-1/dart/web/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Angular Tour of Heroes - - - - - - - - Loading... - - diff --git a/public/docs/_examples/toh-1/dart/web/main.dart b/public/docs/_examples/toh-1/dart/web/main.dart deleted file mode 100644 index c7ff5cd60b..0000000000 --- a/public/docs/_examples/toh-1/dart/web/main.dart +++ /dev/null @@ -1,9 +0,0 @@ -// #docregion pt1 -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_tour_of_heroes/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} -// #enddocregion pt1 diff --git a/public/docs/_examples/toh-2/dart/.docsync.json b/public/docs/_examples/toh-2/dart/.docsync.json deleted file mode 100644 index 7b3eecf567..0000000000 --- a/public/docs/_examples/toh-2/dart/.docsync.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Tour of Heroes: Master/Detail", - "docPart": "tutorial", - "docHref": "toh-pt2.html" -} diff --git a/public/docs/_examples/toh-2/dart/example-config.json b/public/docs/_examples/toh-2/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/toh-2/dart/lib/app_component.dart b/public/docs/_examples/toh-2/dart/lib/app_component.dart deleted file mode 100644 index 82fc56754a..0000000000 --- a/public/docs/_examples/toh-2/dart/lib/app_component.dart +++ /dev/null @@ -1,111 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -class Hero { - final int id; - String name; - - Hero(this.id, this.name); -} - -// #docregion hero-array -final List mockHeroes = [ - new Hero(11, 'Mr. Nice'), - new Hero(12, 'Narco'), - new Hero(13, 'Bombasto'), - new Hero(14, 'Celeritas'), - new Hero(15, 'Magneta'), - new Hero(16, 'RubberMan'), - new Hero(17, 'Dynama'), - new Hero(18, 'Dr IQ'), - new Hero(19, 'Magma'), - new Hero(20, 'Tornado') -]; -// #enddocregion hero-array - -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    -

    My Heroes

    -
      -
    • - {{hero.id}} {{hero.name}} -
    • -
    -
    -

    {{selectedHero.name}} details!

    -
    {{selectedHero.id}}
    -
    - - -
    -
    - ''', -// #docregion styles - styles: const [ - ''' - .selected { - background-color: #CFD8DC !important; - color: white; - } - .heroes { - margin: 0 0 2em 0; - list-style-type: none; - padding: 0; - width: 10em; - } - .heroes li { - cursor: pointer; - position: relative; - left: 0; - background-color: #EEE; - margin: .5em; - padding: .3em 0em; - height: 1.6em; - border-radius: 4px; - } - .heroes li.selected:hover { - color: white; - } - .heroes li:hover { - color: #607D8B; - background-color: #EEE; - left: .1em; - } - .heroes .text { - position: relative; - top: -3px; - } - .heroes .badge { - display: inline-block; - font-size: small; - color: white; - padding: 0.8em 0.7em 0em 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; - margin-right: .8em; - border-radius: 4px 0px 0px 4px; - } - ''' - ]) -// #enddocregion styles -class AppComponent { - final String title = 'Tour of Heroes'; - final List heroes = mockHeroes; -// #docregion selected-hero - Hero selectedHero; -// #enddocregion selected-hero - -// #docregion on-select - onSelect(Hero hero) { - selectedHero = hero; - } -// #enddocregion on-select -} diff --git a/public/docs/_examples/toh-2/dart/pubspec.yaml b/public/docs/_examples/toh-2/dart/pubspec.yaml deleted file mode 100644 index 8c8d67bdb7..0000000000 --- a/public/docs/_examples/toh-2/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: angular_tour_of_heroes -description: Tour of Heroes -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/toh-2/dart/web/index.html b/public/docs/_examples/toh-2/dart/web/index.html deleted file mode 100644 index 3a2280f3b7..0000000000 --- a/public/docs/_examples/toh-2/dart/web/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Angular Tour of Heroes - - - - - - - - Loading... - - diff --git a/public/docs/_examples/toh-2/dart/web/main.dart b/public/docs/_examples/toh-2/dart/web/main.dart deleted file mode 100644 index 2b35525f8d..0000000000 --- a/public/docs/_examples/toh-2/dart/web/main.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_tour_of_heroes/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/toh-3/dart/.docsync.json b/public/docs/_examples/toh-3/dart/.docsync.json deleted file mode 100644 index b6418ebe94..0000000000 --- a/public/docs/_examples/toh-3/dart/.docsync.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Tour of Heroes: Multiple Components", - "docPart": "tutorial", - "docHref": "toh-pt3.html" -} diff --git a/public/docs/_examples/toh-3/dart/example-config.json b/public/docs/_examples/toh-3/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/toh-3/dart/lib/app_component.dart b/public/docs/_examples/toh-3/dart/lib/app_component.dart deleted file mode 100644 index a51d317005..0000000000 --- a/public/docs/_examples/toh-3/dart/lib/app_component.dart +++ /dev/null @@ -1,102 +0,0 @@ -//#docregion -import 'package:angular2/core.dart'; - -// #docregion hero-import -import 'hero.dart'; -// #enddocregion hero-import -// #docregion hero-detail-import -import 'hero_detail_component.dart'; -// #enddocregion hero-detail-import - -final List mockHeroes = [ - new Hero(11, 'Mr. Nice'), - new Hero(12, 'Narco'), - new Hero(13, 'Bombasto'), - new Hero(14, 'Celeritas'), - new Hero(15, 'Magneta'), - new Hero(16, 'RubberMan'), - new Hero(17, 'Dynama'), - new Hero(18, 'Dr IQ'), - new Hero(19, 'Magma'), - new Hero(20, 'Tornado') -]; - -@Component( - selector: 'my-app', - // #docregion hero-detail-template - template: ''' -

    {{title}}

    -

    My Heroes

    -
      -
    • - {{hero.id}} {{hero.name}} -
    • -
    - - ''', - // #enddocregion hero-detail-template - styles: const [ - ''' - .selected { - background-color: #CFD8DC !important; - color: white; - } - .heroes { - margin: 0 0 2em 0; - list-style-type: none; - padding: 0; - width: 10em; - } - .heroes li { - cursor: pointer; - position: relative; - left: 0; - background-color: #EEE; - margin: .5em; - padding: .3em 0em; - height: 1.6em; - border-radius: 4px; - } - .heroes li.selected:hover { - color: white; - } - .heroes li:hover { - color: #607D8B; - background-color: #EEE; - left: .1em; - } - .heroes .text { - position: relative; - top: -3px; - } - .heroes .badge { - display: inline-block; - font-size: small; - color: white; - padding: 0.8em 0.7em 0em 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; - margin-right: .8em; - border-radius: 4px 0px 0px 4px; - } - ''' - ], - // #docregion directives - directives: const [HeroDetailComponent] - // #enddocregion directives - ) -class AppComponent { - final String title = 'Tour of Heroes'; - final List heroes = mockHeroes; - Hero selectedHero; - - void onSelect(Hero hero) { - selectedHero = hero; - } -} diff --git a/public/docs/_examples/toh-3/dart/lib/hero.dart b/public/docs/_examples/toh-3/dart/lib/hero.dart deleted file mode 100644 index ea51fc9bc2..0000000000 --- a/public/docs/_examples/toh-3/dart/lib/hero.dart +++ /dev/null @@ -1,7 +0,0 @@ -// #docregion -class Hero { - final int id; - String name; - - Hero(this.id, this.name); -} diff --git a/public/docs/_examples/toh-3/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-3/dart/lib/hero_detail_component.dart deleted file mode 100644 index 9b85d21965..0000000000 --- a/public/docs/_examples/toh-3/dart/lib/hero_detail_component.dart +++ /dev/null @@ -1,36 +0,0 @@ -// #docplaster -// #docregion -// #docregion v1 -import 'package:angular2/core.dart'; - -// #enddocregion v1 -// #docregion hero-import -import 'hero.dart'; -// #enddocregion hero-import - -// #docregion v1 -@Component( - selector: 'my-hero-detail', - // #enddocregion v1 - // #docregion template - template: ''' -
    -

    {{hero.name}} details!

    -
    {{hero.id}}
    -
    - - -
    -
    ''' - // #enddocregion template - // #docregion v1 - ) -class HeroDetailComponent { - // #enddocregion v1 - // #docregion inputs - @Input() - // #docregion hero - Hero hero; - // #enddocregion hero, inputs - // #docregion v1 -} diff --git a/public/docs/_examples/toh-3/dart/pubspec.yaml b/public/docs/_examples/toh-3/dart/pubspec.yaml deleted file mode 100644 index 8c8d67bdb7..0000000000 --- a/public/docs/_examples/toh-3/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: angular_tour_of_heroes -description: Tour of Heroes -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/toh-3/dart/web/index.html b/public/docs/_examples/toh-3/dart/web/index.html deleted file mode 100644 index 3a2280f3b7..0000000000 --- a/public/docs/_examples/toh-3/dart/web/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Angular Tour of Heroes - - - - - - - - Loading... - - diff --git a/public/docs/_examples/toh-3/dart/web/main.dart b/public/docs/_examples/toh-3/dart/web/main.dart deleted file mode 100644 index f77be42dce..0000000000 --- a/public/docs/_examples/toh-3/dart/web/main.dart +++ /dev/null @@ -1,9 +0,0 @@ -// #docregion pt1 -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_tour_of_heroes/app_component.dart'; - -main() { - bootstrap(AppComponent); -} -// #enddocregion pt1 diff --git a/public/docs/_examples/toh-4/dart/.docsync.json b/public/docs/_examples/toh-4/dart/.docsync.json deleted file mode 100644 index fa76636c8e..0000000000 --- a/public/docs/_examples/toh-4/dart/.docsync.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Tour of Heroes: Services", - "docPart": "tutorial", - "docHref": "toh-pt4.html" -} diff --git a/public/docs/_examples/toh-4/dart/example-config.json b/public/docs/_examples/toh-4/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/toh-4/dart/lib/app_component.dart b/public/docs/_examples/toh-4/dart/lib/app_component.dart deleted file mode 100644 index 26e3e9fa50..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/app_component.dart +++ /dev/null @@ -1,107 +0,0 @@ -// #docplaster -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'hero_detail_component.dart'; -// #docregion hero-service-import -import 'hero_service.dart'; -// #enddocregion hero-service-import - -@Component( - selector: 'my-app', - // #docregion template - template: ''' -

    {{title}}

    -

    My Heroes

    -
      -
    • - {{hero.id}} {{hero.name}} -
    • -
    - - ''', - // #enddocregion template - styles: const [ - ''' - .selected { - background-color: #CFD8DC !important; - color: white; - } - .heroes { - margin: 0 0 2em 0; - list-style-type: none; - padding: 0; - width: 10em; - } - .heroes li { - cursor: pointer; - position: relative; - left: 0; - background-color: #EEE; - margin: .5em; - padding: .3em 0em; - height: 1.6em; - border-radius: 4px; - } - .heroes li.selected:hover { - color: white; - } - .heroes li:hover { - color: #607D8B; - background-color: #EEE; - left: .1em; - } - .heroes .text { - position: relative; - top: -3px; - } - .heroes .badge { - display: inline-block; - font-size: small; - color: white; - padding: 0.8em 0.7em 0em 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; - margin-right: .8em; - border-radius: 4px 0px 0px 4px; - } - ''' - ], - directives: const [ - HeroDetailComponent - ], - providers: const [ - HeroService - ]) -class AppComponent implements OnInit { - String title = 'Tour of Heroes'; - List heroes; - Hero selectedHero; - - final HeroService _heroService; - - AppComponent(this._heroService); - - // #docregion get-heroes - Future getHeroes() async { - heroes = await _heroService.getHeroes(); - } - // #enddocregion get-heroes - - void ngOnInit() { - getHeroes(); - } - - void onSelect(Hero hero) { - selectedHero = hero; - } -} diff --git a/public/docs/_examples/toh-4/dart/lib/app_component_1.dart b/public/docs/_examples/toh-4/dart/lib/app_component_1.dart deleted file mode 100644 index 99953d1470..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/app_component_1.dart +++ /dev/null @@ -1,60 +0,0 @@ -// #docplaster -// #docregion on-init -import 'package:angular2/core.dart'; - -// #enddocregion on-init -import 'hero.dart'; -import 'hero_detail_component.dart'; -import 'hero_service_1.dart'; - -// Testable but never shown -@Component( - selector: 'my-app', - template: ''' -
    - {{hero.name}} -
    - - ''', - directives: const [HeroDetailComponent], - // #docregion providers - providers: const [HeroService]) - // #enddocregion providers -// #docregion on-init -class AppComponent implements OnInit { - // #enddocregion on-init - String title = 'Tour of Heroes'; - // #docregion heroes-prop - List heroes; - // #enddocregion heroes-prop - Hero selectedHero; - - // #docregion new-service - HeroService heroService = new HeroService(); // don't do this - // #enddocregion new-service - // #docregion ctor - final HeroService _heroService; - AppComponent(this._heroService); - // #enddocregion ctor - - // #docregion getHeroes - void getHeroes() { - // #docregion get-heroes - heroes = _heroService.getHeroes(); - // #enddocregion get-heroes - } - // #enddocregion getHeroes - - // #docregion ng-on-init, on-init - void ngOnInit() { - // #enddocregion on-init - getHeroes(); - // #docregion on-init - } - // #enddocregion ng-on-init, on-init - - void onSelect(Hero hero) { - selectedHero = hero; - } - // #docregion on-init -} diff --git a/public/docs/_examples/toh-4/dart/lib/hero.dart b/public/docs/_examples/toh-4/dart/lib/hero.dart deleted file mode 100644 index 828f8cebab..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/hero.dart +++ /dev/null @@ -1,6 +0,0 @@ -class Hero { - final int id; - String name; - - Hero(this.id, this.name); -} diff --git a/public/docs/_examples/toh-4/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-4/dart/lib/hero_detail_component.dart deleted file mode 100644 index 9b9ede32fe..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/hero_detail_component.dart +++ /dev/null @@ -1,21 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'hero.dart'; - -@Component( - selector: 'my-hero-detail', - template: ''' -
    -

    {{hero.name}} details!

    -
    {{hero.id}}
    -
    - - -
    -
    - ''') -class HeroDetailComponent { - @Input() - Hero hero; -} diff --git a/public/docs/_examples/toh-4/dart/lib/hero_service.dart b/public/docs/_examples/toh-4/dart/lib/hero_service.dart deleted file mode 100644 index 4eff635e4c..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/hero_service.dart +++ /dev/null @@ -1,26 +0,0 @@ -// #docplaster -// #docregion -// #docregion just-get-heroes -import 'dart:async'; - -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'mock_heroes.dart'; - -@Injectable() -class HeroService { - // #docregion get-heroes - Future> getHeroes() async => mockHeroes; - // #enddocregion get-heroes, just-get-heroes - // #enddocregion - // See the "Take it slow" appendix - // #docregion get-heroes-slowly - Future> getHeroesSlowly() { - return new Future.delayed(const Duration(seconds: 2), getHeroes); - } - // #enddocregion get-heroes-slowly - // #docregion - // #docregion just-get-heroes -} - diff --git a/public/docs/_examples/toh-4/dart/lib/hero_service_1.dart b/public/docs/_examples/toh-4/dart/lib/hero_service_1.dart deleted file mode 100644 index 6feca85ae0..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/hero_service_1.dart +++ /dev/null @@ -1,22 +0,0 @@ -// #docplaster -// #docregion final -// #docregion empty-class -import 'package:angular2/core.dart'; - -// #enddocregion empty-class -import 'hero.dart'; -import 'mock_heroes.dart'; - -// #docregion getHeroes-stub -@Injectable() -class HeroService { - // #enddocregion getHeroes-stub, empty-class, final - /* - // #docregion getHeroes-stub - List getHeroes() {} // stub - // #enddocregion getHeroes-stub - */ - // #docregion final - List getHeroes() => mockHeroes; - // #docregion empty-class, getHeroes-stub -} diff --git a/public/docs/_examples/toh-4/dart/lib/mock_heroes.dart b/public/docs/_examples/toh-4/dart/lib/mock_heroes.dart deleted file mode 100644 index b67fe9be21..0000000000 --- a/public/docs/_examples/toh-4/dart/lib/mock_heroes.dart +++ /dev/null @@ -1,15 +0,0 @@ -// #docregion -import 'hero.dart'; - -final List mockHeroes = [ - new Hero(11, 'Mr. Nice'), - new Hero(12, 'Narco'), - new Hero(13, 'Bombasto'), - new Hero(14, 'Celeritas'), - new Hero(15, 'Magneta'), - new Hero(16, 'RubberMan'), - new Hero(17, 'Dynama'), - new Hero(18, 'Dr IQ'), - new Hero(19, 'Magma'), - new Hero(20, 'Tornado') -]; diff --git a/public/docs/_examples/toh-4/dart/pubspec.yaml b/public/docs/_examples/toh-4/dart/pubspec.yaml deleted file mode 100644 index 8c8d67bdb7..0000000000 --- a/public/docs/_examples/toh-4/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: angular_tour_of_heroes -description: Tour of Heroes -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/toh-4/dart/web/index.html b/public/docs/_examples/toh-4/dart/web/index.html deleted file mode 100644 index 3a2280f3b7..0000000000 --- a/public/docs/_examples/toh-4/dart/web/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Angular Tour of Heroes - - - - - - - - Loading... - - diff --git a/public/docs/_examples/toh-4/dart/web/main.dart b/public/docs/_examples/toh-4/dart/web/main.dart deleted file mode 100644 index 2b35525f8d..0000000000 --- a/public/docs/_examples/toh-4/dart/web/main.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_tour_of_heroes/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/toh-4/dart/web/main_1.dart b/public/docs/_examples/toh-4/dart/web/main_1.dart deleted file mode 100644 index 40c663bd13..0000000000 --- a/public/docs/_examples/toh-4/dart/web/main_1.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_tour_of_heroes/app_component_1.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/toh-5/dart/.docsync.json b/public/docs/_examples/toh-5/dart/.docsync.json deleted file mode 100644 index 74d2e1165a..0000000000 --- a/public/docs/_examples/toh-5/dart/.docsync.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Tour of Heroes: Routing", - "docPart": "tutorial", - "docHref": "toh-pt5.html" -} diff --git a/public/docs/_examples/toh-5/dart/example-config.json b/public/docs/_examples/toh-5/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/toh-5/dart/lib/app_component.css b/public/docs/_examples/toh-5/dart/lib/app_component.css deleted file mode 100644 index f4e8082ea1..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/app_component.css +++ /dev/null @@ -1,29 +0,0 @@ -/* #docregion */ -h1 { - font-size: 1.2em; - color: #999; - margin-bottom: 0; -} -h2 { - font-size: 2em; - margin-top: 0; - padding-top: 0; -} -nav a { - padding: 5px 10px; - text-decoration: none; - margin-top: 10px; - display: inline-block; - background-color: #eee; - border-radius: 4px; -} -nav a:visited, a:link { - color: #607D8B; -} -nav a:hover { - color: #039be5; - background-color: #CFD8DC; -} -nav a.router-link-active { - color: #039be5; -} diff --git a/public/docs/_examples/toh-5/dart/lib/app_component.dart b/public/docs/_examples/toh-5/dart/lib/app_component.dart deleted file mode 100644 index 9bc62a3477..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/app_component.dart +++ /dev/null @@ -1,51 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; -// #docregion import-router -import 'package:angular2/router.dart'; -// #enddocregion import-router - -import 'dashboard_component.dart'; -import 'hero_detail_component.dart'; -import 'hero_service.dart'; -import 'heroes_component.dart'; - -@Component( - selector: 'my-app', - // #docregion template, template-v3 - template: ''' -

    {{title}}

    - - ''', - // #enddocregion template, template-v3 - // #docregion styleUrls - styleUrls: const ['app_component.css'], - // #enddocregion styleUrls - // #docregion directives-and-providers - directives: const [ROUTER_DIRECTIVES], - providers: const [HeroService, ROUTER_PROVIDERS]) -// #enddocregion directives-and-providers -// #docregion heroes, routes -@RouteConfig(const [ - // #enddocregion heroes - // #docregion dashboard - const Route( - path: '/dashboard', - name: 'Dashboard', - component: DashboardComponent, - useAsDefault: true), - // #enddocregion dashboard - // #docregion hero-detail - const Route( - path: '/detail/:id', name: 'HeroDetail', component: HeroDetailComponent), - // #enddocregion hero-detail - // #docregion heroes - const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent) -]) -// #enddocregion heroes, routes -class AppComponent { - String title = 'Tour of Heroes'; -} diff --git a/public/docs/_examples/toh-5/dart/lib/app_component_1.dart b/public/docs/_examples/toh-5/dart/lib/app_component_1.dart deleted file mode 100644 index 8455181dbc..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/app_component_1.dart +++ /dev/null @@ -1,40 +0,0 @@ -// #docplaster -// #docregion , v2 -import 'package:angular2/core.dart'; -// #enddocregion , -// #docregion v2 -import 'package:angular2/router.dart'; -// #docregion - -import 'hero_service.dart'; -import 'heroes_component.dart'; - -// #enddocregion v2 -@Component( - selector: 'my-app', - template: ''' -

    {{title}}

    - ''', - directives: const [HeroesComponent], - providers: const [HeroService]) -// #enddocregion , -class Bogus {} - -// #docregion v2 -@Component( - selector: 'my-app', - // #docregion template-v2 - template: ''' -

    {{title}}

    - Heroes - ''', - // #enddocregion template-v2 - directives: const [ROUTER_DIRECTIVES], - providers: const [HeroService, ROUTER_PROVIDERS]) -@RouteConfig(const [ - const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent) -]) -// #docregion , -class AppComponent { - String title = 'Tour of Heroes'; -} diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.css b/public/docs/_examples/toh-5/dart/lib/dashboard_component.css deleted file mode 100644 index d850f074b5..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.css +++ /dev/null @@ -1,60 +0,0 @@ -/* #docregion */ -[class*='col-'] { - float: left; - text-decoration: none; - padding-right: 20px; - padding-bottom: 20px; -} -[class*='col-']:last-of-type { - padding-right: 0; -} -*, *:after, *:before { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -h3 { - text-align: center; margin-bottom: 0; -} -h4 { - position: relative; -} -.grid { - margin: 0; -} -.col-1-4 { - width: 25%; -} -.module { - padding: 20px; - text-align: center; - color: #eee; - max-height: 120px; - min-width: 120px; - background-color: #607D8B; - border-radius: 2px; -} -.module:hover { - background-color: #EEE; - cursor: pointer; - color: #607d8b; -} -.grid-pad { - padding: 10px 0; -} -.grid-pad > [class*='col-']:last-of-type { - padding-right: 20px; -} -@media (max-width: 600px) { - .module { - font-size: 10px; - max-height: 75px; } -} -@media (max-width: 1024px) { - .grid { - margin: 0; - } - .module { - min-width: 60px; - } -} diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart b/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart deleted file mode 100644 index 40dc1a4694..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart +++ /dev/null @@ -1,39 +0,0 @@ -// #docplaster -// #docregion , imports -import 'dart:async'; - -import 'package:angular2/core.dart'; -// #docregion import-router -import 'package:angular2/router.dart'; -// #enddocregion import-router - -import 'hero.dart'; -import 'hero_service.dart'; -// #enddocregion imports - -// #docregion metadata -@Component( - selector: 'my-dashboard', - templateUrl: 'dashboard_component.html', - // #enddocregion metadata - // #docregion css - styleUrls: const ['dashboard_component.css'], - // #enddocregion css - // #docregion metadata - directives: const [ROUTER_DIRECTIVES], - ) -// #enddocregion metadata -// #docregion class -class DashboardComponent implements OnInit { - List heroes; - - // #docregion ctor - final HeroService _heroService; - - DashboardComponent(this._heroService); - // #enddocregion ctor - - Future ngOnInit() async { - heroes = (await _heroService.getHeroes()).skip(1).take(4).toList(); - } -} diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.html b/public/docs/_examples/toh-5/dart/lib/dashboard_component.html deleted file mode 100644 index 56779ce130..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.html +++ /dev/null @@ -1,11 +0,0 @@ - -

    Top Heroes

    - diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.dart b/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.dart deleted file mode 100644 index 5324624d1f..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Component( - selector: 'my-dashboard', - template: '

    My Dashboard

    ' -) -class DashboardComponent {} diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.html b/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.html deleted file mode 100644 index 0c556b8de0..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.html +++ /dev/null @@ -1,9 +0,0 @@ - -

    Top Heroes

    -
    -
    -
    -

    {{hero.name}}

    -
    -
    -
    diff --git a/public/docs/_examples/toh-5/dart/lib/hero.dart b/public/docs/_examples/toh-5/dart/lib/hero.dart deleted file mode 100644 index 828f8cebab..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/hero.dart +++ /dev/null @@ -1,6 +0,0 @@ -class Hero { - final int id; - String name; - - Hero(this.id, this.name); -} diff --git a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.css b/public/docs/_examples/toh-5/dart/lib/hero_detail_component.css deleted file mode 100644 index ab2437efd8..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.css +++ /dev/null @@ -1,30 +0,0 @@ -/* #docregion */ -label { - display: inline-block; - width: 3em; - margin: .5em 0; - color: #607D8B; - font-weight: bold; -} -input { - height: 2em; - font-size: 1em; - padding-left: .4em; -} -button { - margin-top: 20px; - font-family: Arial; - background-color: #eee; - border: none; - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; cursor: hand; -} -button:hover { - background-color: #cfd8dc; -} -button:disabled { - background-color: #eee; - color: #ccc; - cursor: auto; -} diff --git a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-5/dart/lib/hero_detail_component.dart deleted file mode 100644 index 6a344362ca..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.dart +++ /dev/null @@ -1,49 +0,0 @@ -// #docplaster -// #docregion , v2 -// #docregion added-imports -import 'dart:async'; - -// #enddocregion added-imports -import 'package:angular2/core.dart'; -// #docregion added-imports -import 'package:angular2/router.dart'; -import 'package:angular2/platform/common.dart'; - -// #enddocregion added-imports -import 'hero.dart'; -// #docregion added-imports -import 'hero_service.dart'; -// #enddocregion added-imports - -@Component( - selector: 'my-hero-detail', - // #docregion metadata, templateUrl - templateUrl: 'hero_detail_component.html', - // #enddocregion metadata, templateUrl, v2 - styleUrls: const ['hero_detail_component.css'] - // #docregion v2 - ) -// #docregion implement -class HeroDetailComponent implements OnInit { - // #enddocregion implement - Hero hero; - // #docregion ctor - final HeroService _heroService; - final RouteParams _routeParams; - final Location _location; - - HeroDetailComponent(this._heroService, this._routeParams, this._location); - // #enddocregion ctor - - // #docregion ngOnInit - Future ngOnInit() async { - var _id = _routeParams.get('id'); - var id = int.parse(_id ?? '', onError: (_) => null); - if (id != null) hero = await (_heroService.getHero(id)); - } - // #enddocregion ngOnInit - - // #docregion goBack - void goBack() => _location.back(); - // #enddocregion goBack -} diff --git a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.html b/public/docs/_examples/toh-5/dart/lib/hero_detail_component.html deleted file mode 100644 index 9b2adf5c1e..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.html +++ /dev/null @@ -1,14 +0,0 @@ - - -
    -

    {{hero.name}} details!

    -
    - {{hero.id}}
    -
    - - -
    - - - -
    \ No newline at end of file diff --git a/public/docs/_examples/toh-5/dart/lib/hero_service.dart b/public/docs/_examples/toh-5/dart/lib/hero_service.dart deleted file mode 100644 index aca9e3c21d..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/hero_service.dart +++ /dev/null @@ -1,22 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; - -import 'hero.dart'; -import 'mock_heroes.dart'; - -@Injectable() -class HeroService { - Future> getHeroes() async => mockHeroes; - - Future> getHeroesSlowly() { - return new Future>.delayed( - const Duration(seconds: 2), getHeroes); - } - - // #docregion getHero - Future getHero(int id) async => - (await getHeroes()).firstWhere((hero) => hero.id == id); - // #enddocregion getHero -} diff --git a/public/docs/_examples/toh-5/dart/lib/heroes_component.css b/public/docs/_examples/toh-5/dart/lib/heroes_component.css deleted file mode 100644 index 35e45af98d..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/heroes_component.css +++ /dev/null @@ -1,59 +0,0 @@ -.selected { - background-color: #CFD8DC !important; - color: white; -} -.heroes { - margin: 0 0 2em 0; - list-style-type: none; - padding: 0; - width: 15em; -} -.heroes li { - cursor: pointer; - position: relative; - left: 0; - background-color: #EEE; - margin: .5em; - padding: .3em 0; - height: 1.6em; - border-radius: 4px; -} -.heroes li:hover { - color: #607D8B; - background-color: #DDD; - left: .1em; -} -.heroes li.selected:hover { - background-color: #BBD8DC !important; - color: white; -} -.heroes .text { - position: relative; - top: -3px; -} -.heroes .badge { - display: inline-block; - font-size: small; - color: white; - padding: 0.8em 0.7em 0 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; - margin-right: .8em; - border-radius: 4px 0 0 4px; -} -button { - font-family: Arial; - background-color: #eee; - border: none; - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; - cursor: hand; -} -button:hover { - background-color: #cfd8dc; -} diff --git a/public/docs/_examples/toh-5/dart/lib/heroes_component.dart b/public/docs/_examples/toh-5/dart/lib/heroes_component.dart deleted file mode 100644 index e11d2f62f4..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/heroes_component.dart +++ /dev/null @@ -1,55 +0,0 @@ -// #docplaster -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; -import 'package:angular2/router.dart'; - -import 'hero.dart'; -import 'hero_service.dart'; - -// #docregion metadata, renaming -@Component( - selector: 'my-heroes', - // #enddocregion renaming - templateUrl: 'heroes_component.html', - styleUrls: const ['heroes_component.css'] -// #docregion renaming -) -// #enddocregion metadata -// #docregion class -class HeroesComponent implements OnInit { - // #enddocregion renaming - final Router _router; - final HeroService _heroService; - List heroes; - Hero selectedHero; - - // #docregion renaming - HeroesComponent(this._heroService, - // #enddocregion renaming - this._router - // #docregion renaming - ); - // #enddocregion renaming - - Future getHeroes() async { - heroes = await _heroService.getHeroes(); - } - - void ngOnInit() { - getHeroes(); - } - - void onSelect(Hero hero) { - selectedHero = hero; - } - - // #docregion gotoDetail - Future gotoDetail() => _router.navigate([ - 'HeroDetail', - {'id': selectedHero.id.toString()} - ]); - // #enddocregion gotoDetail - // #docregion renaming -} diff --git a/public/docs/_examples/toh-5/dart/lib/heroes_component.html b/public/docs/_examples/toh-5/dart/lib/heroes_component.html deleted file mode 100644 index d0495e364c..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/heroes_component.html +++ /dev/null @@ -1,19 +0,0 @@ - - -

    My Heroes

    -
      -
    • - {{hero.id}} {{hero.name}} -
    • -
    - -
    -

    - - {{selectedHero.name | uppercase}} is my hero - -

    - -
    diff --git a/public/docs/_examples/toh-5/dart/lib/mock_heroes.dart b/public/docs/_examples/toh-5/dart/lib/mock_heroes.dart deleted file mode 100644 index 4c2153255b..0000000000 --- a/public/docs/_examples/toh-5/dart/lib/mock_heroes.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'hero.dart'; - -final List mockHeroes = [ - new Hero(11, 'Mr. Nice'), - new Hero(12, 'Narco'), - new Hero(13, 'Bombasto'), - new Hero(14, 'Celeritas'), - new Hero(15, 'Magneta'), - new Hero(16, 'RubberMan'), - new Hero(17, 'Dynama'), - new Hero(18, 'Dr IQ'), - new Hero(19, 'Magma'), - new Hero(20, 'Tornado') -]; diff --git a/public/docs/_examples/toh-5/dart/pubspec.yaml b/public/docs/_examples/toh-5/dart/pubspec.yaml deleted file mode 100644 index 8c8d67bdb7..0000000000 --- a/public/docs/_examples/toh-5/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: angular_tour_of_heroes -description: Tour of Heroes -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/toh-5/dart/web/index.html b/public/docs/_examples/toh-5/dart/web/index.html deleted file mode 100644 index 3be150d2a2..0000000000 --- a/public/docs/_examples/toh-5/dart/web/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - Angular Tour of Heroes - - - - - - - - - - - - - Loading... - - diff --git a/public/docs/_examples/toh-5/dart/web/main.dart b/public/docs/_examples/toh-5/dart/web/main.dart deleted file mode 100644 index 2b35525f8d..0000000000 --- a/public/docs/_examples/toh-5/dart/web/main.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:angular2/platform/browser.dart'; - -import 'package:angular_tour_of_heroes/app_component.dart'; - -void main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/toh-6/dart/.docsync.json b/public/docs/_examples/toh-6/dart/.docsync.json deleted file mode 100644 index 29f01f6648..0000000000 --- a/public/docs/_examples/toh-6/dart/.docsync.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Tour of Heroes: HTTP", - "docPart": "tutorial", - "docHref": "toh-pt6.html" -} diff --git a/public/docs/_examples/toh-6/dart/example-config.json b/public/docs/_examples/toh-6/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/toh-6/dart/lib/app_component.css b/public/docs/_examples/toh-6/dart/lib/app_component.css deleted file mode 100644 index f4e8082ea1..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/app_component.css +++ /dev/null @@ -1,29 +0,0 @@ -/* #docregion */ -h1 { - font-size: 1.2em; - color: #999; - margin-bottom: 0; -} -h2 { - font-size: 2em; - margin-top: 0; - padding-top: 0; -} -nav a { - padding: 5px 10px; - text-decoration: none; - margin-top: 10px; - display: inline-block; - background-color: #eee; - border-radius: 4px; -} -nav a:visited, a:link { - color: #607D8B; -} -nav a:hover { - color: #039be5; - background-color: #CFD8DC; -} -nav a.router-link-active { - color: #039be5; -} diff --git a/public/docs/_examples/toh-6/dart/lib/app_component.dart b/public/docs/_examples/toh-6/dart/lib/app_component.dart deleted file mode 100644 index 262f54b8ad..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/app_component.dart +++ /dev/null @@ -1,45 +0,0 @@ -// #docplaster -// #docregion -import 'package:angular2/core.dart'; -import 'package:angular2/router.dart'; - -import 'package:angular_tour_of_heroes/heroes_component.dart'; -import 'package:angular_tour_of_heroes/hero_service.dart'; -import 'package:angular_tour_of_heroes/dashboard_component.dart'; -// #docregion hero-detail-import -import 'package:angular_tour_of_heroes/hero_detail_component.dart'; -// #enddocregion hero-detail-import - -@Component( - selector: 'my-app', - // #docregion template - template: ''' -

    {{title}}

    - - ''', - // #enddocregion template - // #docregion style-urls - styleUrls: const ['app_component.css'], - // #enddocregion style-urls - directives: const [ROUTER_DIRECTIVES], - providers: const [HeroService, ROUTER_PROVIDERS]) -@RouteConfig(const [ - // #docregion dashboard-route - const Route( - path: '/dashboard', - name: 'Dashboard', - component: DashboardComponent, - useAsDefault: true), - // #enddocregion dashboard-route - // #docregion hero-detail-route - const Route( - path: '/detail/:id', name: 'HeroDetail', component: HeroDetailComponent), - // #enddocregion hero-detail-route - const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent) -]) -class AppComponent { - String title = 'Tour of Heroes'; -} diff --git a/public/docs/_examples/toh-6/dart/lib/dashboard_component.css b/public/docs/_examples/toh-6/dart/lib/dashboard_component.css deleted file mode 100644 index dc7fb7ce06..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/dashboard_component.css +++ /dev/null @@ -1,62 +0,0 @@ -/* #docregion */ -[class*='col-'] { - float: left; - padding-right: 20px; - padding-bottom: 20px; -} -[class*='col-']:last-of-type { - padding-right: 0; -} -a { - text-decoration: none; -} -*, *:after, *:before { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -h3 { - text-align: center; margin-bottom: 0; -} -h4 { - position: relative; -} -.grid { - margin: 0; -} -.col-1-4 { - width: 25%; -} -.module { - padding: 20px; - text-align: center; - color: #eee; - max-height: 120px; - min-width: 120px; - background-color: #607D8B; - border-radius: 2px; -} -.module:hover { - background-color: #EEE; - cursor: pointer; - color: #607d8b; -} -.grid-pad { - padding: 10px 0; -} -.grid-pad > [class*='col-']:last-of-type { - padding-right: 20px; -} -@media (max-width: 600px) { - .module { - font-size: 10px; - max-height: 75px; } -} -@media (max-width: 1024px) { - .grid { - margin: 0; - } - .module { - min-width: 60px; - } -} diff --git a/public/docs/_examples/toh-6/dart/lib/dashboard_component.dart b/public/docs/_examples/toh-6/dart/lib/dashboard_component.dart deleted file mode 100644 index 952736be7c..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/dashboard_component.dart +++ /dev/null @@ -1,28 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; -import 'package:angular2/router.dart'; - -import 'hero.dart'; -import 'hero_service.dart'; -// #docregion search -import 'hero_search_component.dart'; - -@Component( - selector: 'my-dashboard', - templateUrl: 'dashboard_component.html', - styleUrls: const ['dashboard_component.css'], - directives: const [HeroSearchComponent, ROUTER_DIRECTIVES]) -// #enddocregion search -class DashboardComponent implements OnInit { - List heroes; - - final HeroService _heroService; - - DashboardComponent(this._heroService); - - Future ngOnInit() async { - heroes = (await _heroService.getHeroes()).skip(1).take(4).toList(); - } -} diff --git a/public/docs/_examples/toh-6/dart/lib/dashboard_component.html b/public/docs/_examples/toh-6/dart/lib/dashboard_component.html deleted file mode 100644 index 12ca29d8d1..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/dashboard_component.html +++ /dev/null @@ -1,10 +0,0 @@ - -

    Top Heroes

    - - diff --git a/public/docs/_examples/toh-6/dart/lib/hero.dart b/public/docs/_examples/toh-6/dart/lib/hero.dart deleted file mode 100644 index bc9a33b8d9..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero.dart +++ /dev/null @@ -1,14 +0,0 @@ -// #docregion -class Hero { - final int id; - String name; - - Hero(this.id, this.name); - - factory Hero.fromJson(Map hero) => - new Hero(_toInt(hero['id']), hero['name']); - - Map toJson() => {'id': id, 'name': name}; -} - -int _toInt(id) => id is int ? id : int.parse(id); diff --git a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.css b/public/docs/_examples/toh-6/dart/lib/hero_detail_component.css deleted file mode 100644 index ab2437efd8..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.css +++ /dev/null @@ -1,30 +0,0 @@ -/* #docregion */ -label { - display: inline-block; - width: 3em; - margin: .5em 0; - color: #607D8B; - font-weight: bold; -} -input { - height: 2em; - font-size: 1em; - padding-left: .4em; -} -button { - margin-top: 20px; - font-family: Arial; - background-color: #eee; - border: none; - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; cursor: hand; -} -button:hover { - background-color: #cfd8dc; -} -button:disabled { - background-color: #eee; - color: #ccc; - cursor: auto; -} diff --git a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-6/dart/lib/hero_detail_component.dart deleted file mode 100644 index d200d831ee..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.dart +++ /dev/null @@ -1,39 +0,0 @@ -// #docplaster -// #docregion , v2 -import 'dart:async'; - -import 'package:angular2/core.dart'; -import 'package:angular2/router.dart'; -import 'package:angular2/platform/common.dart'; - -import 'hero.dart'; -import 'hero_service.dart'; - -@Component( - selector: 'my-hero-detail', - templateUrl: 'hero_detail_component.html', - styleUrls: const ['hero_detail_component.css'] - ) -class HeroDetailComponent implements OnInit { - Hero hero; - final HeroService _heroService; - final RouteParams _routeParams; - final Location _location; - - HeroDetailComponent(this._heroService, this._routeParams, this._location); - - Future ngOnInit() async { - var _id = _routeParams.get('id'); - var id = int.parse(_id ?? '', onError: (_) => null); - if (id != null) hero = await (_heroService.getHero(id)); - } - - // #docregion save - Future save() async { - await _heroService.update(hero); - goBack(); - } - // #enddocregion save - - void goBack() => _location.back(); -} diff --git a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.html b/public/docs/_examples/toh-6/dart/lib/hero_detail_component.html deleted file mode 100644 index 161dc2246e..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.html +++ /dev/null @@ -1,14 +0,0 @@ - -
    -

    {{hero.name}} details!

    -
    - {{hero.id}}
    -
    - - -
    - - - - -
    diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_component.css b/public/docs/_examples/toh-6/dart/lib/hero_search_component.css deleted file mode 100644 index b41b4ec33e..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_search_component.css +++ /dev/null @@ -1,15 +0,0 @@ -/* #docregion */ -.search-result { - border-bottom: 1px solid gray; - border-left: 1px solid gray; - border-right: 1px solid gray; - width:195px; - height: 20px; - padding: 5px; - background-color: white; - cursor: pointer; -} -#search-box { - width: 200px; - height: 20px; -} diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_component.dart b/public/docs/_examples/toh-6/dart/lib/hero_search_component.dart deleted file mode 100644 index fc52ace1ba..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_search_component.dart +++ /dev/null @@ -1,57 +0,0 @@ -// #docplaster -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; -import 'package:angular2/router.dart'; -import 'package:stream_transformers/stream_transformers.dart'; - -import 'hero_search_service.dart'; -import 'hero.dart'; - -@Component( - selector: 'hero-search', - templateUrl: 'hero_search_component.html', - styleUrls: const ['hero_search_component.css'], - providers: const [HeroSearchService]) -class HeroSearchComponent implements OnInit { - HeroSearchService _heroSearchService; - Router _router; - - // #docregion search - Stream> heroes; - // #enddocregion search - // #docregion searchTerms - StreamController _searchTerms = - new StreamController.broadcast(); - // #enddocregion searchTerms - - HeroSearchComponent(this._heroSearchService, this._router) {} - // #docregion searchTerms - - // Push a search term into the stream. - void search(String term) => _searchTerms.add(term); - // #enddocregion searchTerms - // #docregion search - - Future ngOnInit() async { - heroes = _searchTerms.stream - .transform(new Debounce(new Duration(milliseconds: 300))) - .distinct() - .transform(new FlatMapLatest((term) => term.isEmpty - ? new Stream>.fromIterable([[]]) - : _heroSearchService.search(term).asStream())) - .handleError((e) { - print(e); // for demo purposes only - }); - } - // #enddocregion search - - void gotoDetail(Hero hero) { - var link = [ - 'HeroDetail', - {'id': hero.id.toString()} - ]; - _router.navigate(link); - } -} diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_component.html b/public/docs/_examples/toh-6/dart/lib/hero_search_component.html deleted file mode 100644 index 08c0560c5b..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_search_component.html +++ /dev/null @@ -1,11 +0,0 @@ - -
    -

    Hero Search

    - -
    -
    - {{hero.name}} -
    -
    -
    diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_service.dart b/public/docs/_examples/toh-6/dart/lib/hero_search_service.dart deleted file mode 100644 index 3fecf42e1b..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_search_service.dart +++ /dev/null @@ -1,33 +0,0 @@ -// #docregion -import 'dart:async'; -import 'dart:convert'; - -import 'package:angular2/core.dart'; -import 'package:http/http.dart'; - -import 'hero.dart'; - -@Injectable() -class HeroSearchService { - final Client _http; - - HeroSearchService(this._http); - - Future> search(String term) async { - try { - final response = await _http.get('app/heroes/?name=$term'); - return _extractData(response) - .map((json) => new Hero.fromJson(json)) - .toList(); - } catch (e) { - throw _handleError(e); - } - } - - dynamic _extractData(Response resp) => JSON.decode(resp.body)['data']; - - Exception _handleError(dynamic e) { - print(e); // for demo purposes only - return new Exception('Server error; cause: $e'); - } -} diff --git a/public/docs/_examples/toh-6/dart/lib/hero_service.dart b/public/docs/_examples/toh-6/dart/lib/hero_service.dart deleted file mode 100644 index 08d18d69d5..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/hero_service.dart +++ /dev/null @@ -1,96 +0,0 @@ -// #docplaster -// #docregion , imports -import 'dart:async'; -import 'dart:convert'; - -import 'package:angular2/core.dart'; -import 'package:http/http.dart'; - -import 'hero.dart'; -// #enddocregion imports - -@Injectable() -class HeroService { - // #docregion update - static final _headers = {'Content-Type': 'application/json'}; - // #enddocregion update - // #docregion getHeroes - static const _heroesUrl = 'api/heroes'; // URL to web API - - final Client _http; - - HeroService(this._http); - - Future> getHeroes() async { - try { - final response = await _http.get(_heroesUrl); - final heroes = _extractData(response) - .map((value) => new Hero.fromJson(value)) - .toList(); - return heroes; - // #docregion catch - } catch (e) { - throw _handleError(e); - } - // #enddocregion catch - } - - // #docregion extract-data - dynamic _extractData(Response resp) => JSON.decode(resp.body)['data']; - // #enddocregion extract-data - - // #docregion handleError - Exception _handleError(dynamic e) { - print(e); // for demo purposes only - return new Exception('Server error; cause: $e'); - } - // #enddocregion handleError, getHeroes - - // #docregion getHero - Future getHero(int id) async { - try { - final response = await _http.get('$_heroesUrl/$id'); - return new Hero.fromJson(_extractData(response)); - } catch (e) { - throw _handleError(e); - } - } - // #enddocregion getHero - - // #docregion create - Future create(String name) async { - try { - final response = await _http.post(_heroesUrl, - headers: _headers, body: JSON.encode({'name': name})); - return new Hero.fromJson(_extractData(response)); - } catch (e) { - throw _handleError(e); - } - } - // #enddocregion create - // #docregion update - - Future update(Hero hero) async { - try { - final url = '$_heroesUrl/${hero.id}'; - final response = - await _http.put(url, headers: _headers, body: JSON.encode(hero)); - return new Hero.fromJson(_extractData(response)); - } catch (e) { - throw _handleError(e); - } - } - // #enddocregion update - - // #docregion delete - Future delete(int id) async { - try { - final url = '$_heroesUrl/$id'; - await _http.delete(url, headers: _headers); - } catch (e) { - throw _handleError(e); - } - } - // #enddocregion delete - -} diff --git a/public/docs/_examples/toh-6/dart/lib/heroes_component.css b/public/docs/_examples/toh-6/dart/lib/heroes_component.css deleted file mode 100644 index d2c958a911..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/heroes_component.css +++ /dev/null @@ -1,68 +0,0 @@ -/* #docregion */ -.selected { - background-color: #CFD8DC !important; - color: white; -} -.heroes { - margin: 0 0 2em 0; - list-style-type: none; - padding: 0; - width: 15em; -} -.heroes li { - cursor: pointer; - position: relative; - left: 0; - background-color: #EEE; - margin: .5em; - padding: .3em 0; - height: 1.6em; - border-radius: 4px; -} -.heroes li:hover { - color: #607D8B; - background-color: #DDD; - left: .1em; -} -.heroes li.selected:hover { - background-color: #BBD8DC !important; - color: white; -} -.heroes .text { - position: relative; - top: -3px; -} -.heroes .badge { - display: inline-block; - font-size: small; - color: white; - padding: 0.8em 0.7em 0 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; - margin-right: .8em; - border-radius: 4px 0 0 4px; -} -button { - font-family: Arial; - background-color: #eee; - border: none; - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; - cursor: hand; -} -button:hover { - background-color: #cfd8dc; -} -/* #docregion additions */ -button.delete { - float:right; - margin-top: 2px; - margin-right: .8em; - background-color: gray !important; - color:white; -} diff --git a/public/docs/_examples/toh-6/dart/lib/heroes_component.dart b/public/docs/_examples/toh-6/dart/lib/heroes_component.dart deleted file mode 100644 index 19b8f4e0ba..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/heroes_component.dart +++ /dev/null @@ -1,58 +0,0 @@ -// #docregion -import 'dart:async'; - -import 'package:angular2/core.dart'; -import 'package:angular2/router.dart'; - -import 'hero.dart'; -import 'hero_detail_component.dart'; -import 'hero_service.dart'; - -@Component( - selector: 'my-heroes', - templateUrl: 'heroes_component.html', - styleUrls: const ['heroes_component.css'], - directives: const [HeroDetailComponent]) -class HeroesComponent implements OnInit { - List heroes; - Hero selectedHero; - - final HeroService _heroService; - final Router _router; - - HeroesComponent(this._heroService, this._router); - - Future getHeroes() async { - heroes = await _heroService.getHeroes(); - } - - // #docregion add - Future add(String name) async { - name = name.trim(); - if (name.isEmpty) return; - heroes.add(await _heroService.create(name)); - selectedHero = null; - } - // #enddocregion add - - // #docregion delete - Future delete(Hero hero) async { - await _heroService.delete(hero.id); - heroes.remove(hero); - if (selectedHero == hero) selectedHero = null; - } - // #enddocregion delete - - void ngOnInit() { - getHeroes(); - } - - void onSelect(Hero hero) { - selectedHero = hero; - } - - Future gotoDetail() => _router.navigate([ - 'HeroDetail', - {'id': selectedHero.id.toString()} - ]); -} diff --git a/public/docs/_examples/toh-6/dart/lib/heroes_component.html b/public/docs/_examples/toh-6/dart/lib/heroes_component.html deleted file mode 100644 index 3ffb597fbc..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/heroes_component.html +++ /dev/null @@ -1,30 +0,0 @@ - - -

    My Heroes

    - -
    - - -
    - -
      - -
    • - {{hero.id}} - {{hero.name}} - - - -
    • - -
    -
    -

    - {{selectedHero.name | uppercase}} is my hero -

    - -
    diff --git a/public/docs/_examples/toh-6/dart/lib/in_memory_data_service.dart b/public/docs/_examples/toh-6/dart/lib/in_memory_data_service.dart deleted file mode 100644 index f17195b204..0000000000 --- a/public/docs/_examples/toh-6/dart/lib/in_memory_data_service.dart +++ /dev/null @@ -1,70 +0,0 @@ -// #docregion , init -import 'dart:async'; -import 'dart:convert'; -import 'dart:math'; - -import 'package:angular2/core.dart'; -import 'package:http/http.dart'; -import 'package:http/testing.dart'; - -import 'hero.dart'; - -@Injectable() -class InMemoryDataService extends MockClient { - static final _initialHeroes = [ - {'id': 11, 'name': 'Mr. Nice'}, - {'id': 12, 'name': 'Narco'}, - {'id': 13, 'name': 'Bombasto'}, - {'id': 14, 'name': 'Celeritas'}, - {'id': 15, 'name': 'Magneta'}, - {'id': 16, 'name': 'RubberMan'}, - {'id': 17, 'name': 'Dynama2'}, - {'id': 18, 'name': 'Dr IQ'}, - {'id': 19, 'name': 'Magma'}, - {'id': 20, 'name': 'Tornado'} - ]; - static final List _heroesDb = - _initialHeroes.map((json) => new Hero.fromJson(json)).toList(); - static int _nextId = _heroesDb.map((hero) => hero.id).fold(0, max) + 1; - - static Future _handler(Request request) async { - var data; - switch (request.method) { - case 'GET': - final id = int.parse(request.url.pathSegments.last, onError: (_) => null); - if (id != null) { - data = _heroesDb.firstWhere((hero) => hero.id == id); // throws if no match - } else { - String prefix = request.url.queryParameters['name'] ?? ''; - final regExp = new RegExp(prefix, caseSensitive: false); - data = _heroesDb.where((hero) => hero.name.contains(regExp)).toList(); - } - break; - // #enddocregion init-disabled - case 'POST': - var name = JSON.decode(request.body)['name']; - var newHero = new Hero(_nextId++, name); - _heroesDb.add(newHero); - data = newHero; - break; - case 'PUT': - var heroChanges = new Hero.fromJson(JSON.decode(request.body)); - var targetHero = _heroesDb.firstWhere((h) => h.id == heroChanges.id); - targetHero.name = heroChanges.name; - data = targetHero; - break; - case 'DELETE': - var id = int.parse(request.url.pathSegments.last); - _heroesDb.removeWhere((hero) => hero.id == id); - // No data, so leave it as null. - break; - // #docregion init-disabled - default: - throw 'Unimplemented HTTP method ${request.method}'; - } - return new Response(JSON.encode({'data': data}), 200, - headers: {'content-type': 'application/json'}); - } - - InMemoryDataService() : super(_handler); -} diff --git a/public/docs/_examples/toh-6/dart/pubspec.yaml b/public/docs/_examples/toh-6/dart/pubspec.yaml deleted file mode 100644 index 53049ad30b..0000000000 --- a/public/docs/_examples/toh-6/dart/pubspec.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# #docregion , additions -name: angular_tour_of_heroes - # #enddocregion additions -description: Tour of Heroes -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' - # #docregion additions -dependencies: - angular2: ^2.2.0 - http: ^0.11.0 - stream_transformers: ^0.3.0 - # #enddocregion additions -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 - # #docregion additions -transformers: -- angular2: - # #enddocregion additions - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - # #docregion additions - entry_points: web/main.dart - resolved_identifiers: - BrowserClient: 'package:http/browser_client.dart' - Client: 'package:http/http.dart' -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/toh-6/dart/web/index.html b/public/docs/_examples/toh-6/dart/web/index.html deleted file mode 100644 index 135bbe1091..0000000000 --- a/public/docs/_examples/toh-6/dart/web/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Angular Tour of Heroes - - - - - - - - - Loading... - - diff --git a/public/docs/_examples/toh-6/dart/web/main.dart b/public/docs/_examples/toh-6/dart/web/main.dart deleted file mode 100644 index d77da2b613..0000000000 --- a/public/docs/_examples/toh-6/dart/web/main.dart +++ /dev/null @@ -1,28 +0,0 @@ -// #docplaster -// #docregion , v1, v2 -import 'package:angular2/core.dart'; -import 'package:angular2/platform/browser.dart'; -import 'package:angular_tour_of_heroes/app_component.dart'; -// #enddocregion v1 -import 'package:angular_tour_of_heroes/in_memory_data_service.dart'; -import 'package:http/http.dart'; - -void main() { - bootstrap(AppComponent, - [provide(Client, useClass: InMemoryDataService)] - // Using a real back end? Import browser_client.dart and change the above to - // [provide(Client, useFactory: () => new BrowserClient(), deps: [])] - ); -} -// #enddocregion v2, -/* -// #docregion v1 -import 'package:http/browser_client.dart'; - -void main() { - bootstrap(AppComponent, [ - provide(BrowserClient, useFactory: () => new BrowserClient(), deps: []) - ]); -} -// #enddocregion v1 -*/ diff --git a/public/docs/_examples/user-input/dart/.docsync.json b/public/docs/_examples/user-input/dart/.docsync.json deleted file mode 100644 index 14a4c32d55..0000000000 --- a/public/docs/_examples/user-input/dart/.docsync.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "title": "User Input", - "docPart": "guide" -} diff --git a/public/docs/_examples/user-input/dart/example-config.json b/public/docs/_examples/user-input/dart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/user-input/dart/lib/app_component.dart b/public/docs/_examples/user-input/dart/lib/app_component.dart deleted file mode 100644 index 5f2c86f8d9..0000000000 --- a/public/docs/_examples/user-input/dart/lib/app_component.dart +++ /dev/null @@ -1,23 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -import 'click_me_component.dart'; -import 'click_me2_component.dart'; -import 'keyup_components.dart'; -import 'little_tour_component.dart'; -import 'loop_back_component.dart'; - -@Component( - selector: 'my-app', - templateUrl: 'app_component.html', - directives: const [ - ClickMeComponent, - ClickMe2Component, - KeyUpComponentV1, - KeyUpComponentV2, - KeyUpComponentV3, - KeyUpComponentV4, - LoopBackComponent, - LittleTourComponent - ]) -class AppComponent {} diff --git a/public/docs/_examples/user-input/dart/lib/app_component.html b/public/docs/_examples/user-input/dart/lib/app_component.html deleted file mode 100644 index ecda463827..0000000000 --- a/public/docs/_examples/user-input/dart/lib/app_component.html +++ /dev/null @@ -1,28 +0,0 @@ - -

    - -

    - -

    - -

    - -

    Give me some keys!

    -
    - -

    keyup loop-back component

    -
    -

    - -

    Give me some more keys!

    -
    - -

    Type away! Press [enter] when done.

    -
    - -

    Type away! Press [enter] or click elsewhere when done.

    -
    - -

    Little Tour of Heroes

    -

    Add a new hero

    -
    diff --git a/public/docs/_examples/user-input/dart/lib/click_me2_component.dart b/public/docs/_examples/user-input/dart/lib/click_me2_component.dart deleted file mode 100644 index 3329a6692e..0000000000 --- a/public/docs/_examples/user-input/dart/lib/click_me2_component.dart +++ /dev/null @@ -1,18 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -@Component( - selector: 'click-me2', - template: ''' - - {{clickMessage}}''') -class ClickMe2Component { - String clickMessage = ''; - int _clicks = 1; - - void onClickMe2(dynamic event) { - var evtMsg = - event != null ? ' Event target is ' + event.target.tagName : ''; - clickMessage = ('Click #${_clicks++}. ${evtMsg}'); - } -} diff --git a/public/docs/_examples/user-input/dart/lib/click_me_component.dart b/public/docs/_examples/user-input/dart/lib/click_me_component.dart deleted file mode 100644 index c31d92e78b..0000000000 --- a/public/docs/_examples/user-input/dart/lib/click_me_component.dart +++ /dev/null @@ -1,22 +0,0 @@ -/* FOR DOCS ... MUST MATCH ClickMeComponent template -// #docregion click-me-button - -// #enddocregion click-me-button -*/ - -// #docregion -import 'package:angular2/core.dart'; - -// #docregion click-me-component -@Component( - selector: 'click-me', - template: ''' - - {{clickMessage}}''') -class ClickMeComponent { - String clickMessage = ''; - - void onClickMe() { - clickMessage = 'You are my hero!'; - } -} diff --git a/public/docs/_examples/user-input/dart/lib/keyup_components.dart b/public/docs/_examples/user-input/dart/lib/keyup_components.dart deleted file mode 100644 index c38a51e9a3..0000000000 --- a/public/docs/_examples/user-input/dart/lib/keyup_components.dart +++ /dev/null @@ -1,83 +0,0 @@ -// #docplaster -// #docregion -import 'dart:html'; - -import 'package:angular2/core.dart'; - -// #docregion key-up-component-1 -@Component( - selector: 'key-up1', -// #docregion key-up-component-1-template - template: ''' - -

    {{values}}

    - ''' -// #enddocregion key-up-component-1-template - ) -// #docregion key-up-component-1-class, key-up-component-1-class-no-type -class KeyUpComponentV1 { - String values = ''; - - // #enddocregion key-up-component-1-class, key-up-component-1-class-no-type - /* - // #docregion key-up-component-1-class-no-type - onKey(dynamic event) { - values += event.target.value + ' | '; - } - // #enddocregion key-up-component-1-class-no-type - */ - // #docregion key-up-component-1-class - onKey(KeyboardEvent event) { - InputElement el = event.target; - values += '${el.value} | '; - } -// #docregion key-up-component-1-class-no-type -} -// #enddocregion key-up-component-1,key-up-component-1-class, key-up-component-1-class-no-type - -////////////////////////////////////////// - -// #docregion key-up-component-2 -@Component( - selector: 'key-up2', - template: ''' - -

    {{values}}

    - ''') -class KeyUpComponentV2 { - String values = ''; - onKey(value) { - values += '$value | '; - } -} -// #enddocregion key-up-component-2 - -////////////////////////////////////////// - -// #docregion key-up-component-3 -@Component( - selector: 'key-up3', - template: ''' - -

    {{values}}

    - ''') -class KeyUpComponentV3 { - String values = ''; -} -// #enddocregion key-up-component-3 - -////////////////////////////////////////// - -// #docregion key-up-component-4 -@Component( - selector: 'key-up4', - template: ''' - -

    {{values}}

    - ''') -class KeyUpComponentV4 { - String values = ''; -} -// #enddocregion key-up-component-4 diff --git a/public/docs/_examples/user-input/dart/lib/little_tour_component.dart b/public/docs/_examples/user-input/dart/lib/little_tour_component.dart deleted file mode 100644 index 4e8f066a0a..0000000000 --- a/public/docs/_examples/user-input/dart/lib/little_tour_component.dart +++ /dev/null @@ -1,25 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -// #docregion little-tour -@Component( - selector: 'little-tour', - template: ''' - - - - -
    • {{hero}}
    - ''') -class LittleTourComponent { - List heroes = ['Windstorm', 'Bombasto', 'Magneta', 'Tornado']; - - void addHero(String newHero) { - if (newHero?.length > 0) { - heroes.add(newHero); - } - } -} -// #enddocregion little-tour diff --git a/public/docs/_examples/user-input/dart/lib/loop_back_component.dart b/public/docs/_examples/user-input/dart/lib/loop_back_component.dart deleted file mode 100644 index f2ceb75d11..0000000000 --- a/public/docs/_examples/user-input/dart/lib/loop_back_component.dart +++ /dev/null @@ -1,12 +0,0 @@ -// #docregion -import 'package:angular2/core.dart'; - -// #docregion loop-back-component -@Component( - selector: 'loop-back', - template: ''' - -

    {{box.value}}

    - ''') -class LoopBackComponent {} -// #enddocregion loop-back-component diff --git a/public/docs/_examples/user-input/dart/pubspec.yaml b/public/docs/_examples/user-input/dart/pubspec.yaml deleted file mode 100644 index 5433ce187f..0000000000 --- a/public/docs/_examples/user-input/dart/pubspec.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# #docregion -name: user_input -description: User input example -version: 0.0.1 -environment: - sdk: '>=1.19.0 <2.0.0' -dependencies: - angular2: ^2.2.0 -dev_dependencies: - browser: ^0.10.0 - dart_to_js_script_rewriter: ^1.0.1 -transformers: -- angular2: - platform_directives: - - 'package:angular2/common.dart#COMMON_DIRECTIVES' - platform_pipes: - - 'package:angular2/common.dart#COMMON_PIPES' - entry_points: web/main.dart -- dart_to_js_script_rewriter diff --git a/public/docs/_examples/user-input/dart/web/index.html b/public/docs/_examples/user-input/dart/web/index.html deleted file mode 100644 index 6081616684..0000000000 --- a/public/docs/_examples/user-input/dart/web/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - User Input - - - - - - - - Loading... - - diff --git a/public/docs/_examples/user-input/dart/web/main.dart b/public/docs/_examples/user-input/dart/web/main.dart deleted file mode 100644 index fc77aef43b..0000000000 --- a/public/docs/_examples/user-input/dart/web/main.dart +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import 'package:angular2/platform/browser.dart'; - -import 'package:user_input/app_component.dart'; - -main() { - bootstrap(AppComponent); -} diff --git a/public/docs/_examples/user-input/dart/web/user-input-styles.css b/public/docs/_examples/user-input/dart/web/user-input-styles.css deleted file mode 100644 index b2133e5103..0000000000 --- a/public/docs/_examples/user-input/dart/web/user-input-styles.css +++ /dev/null @@ -1,9 +0,0 @@ -fieldset {border-style:none} -img {height: 100px;} -.box {border: 1px solid black; padding:3px} -.child-div {margin-left: 1em; font-weight: normal} -.hidden {display: none} -.parent-div {margin-top: 1em; font-weight: bold} -.special {font-weight:bold;} -.toe {margin-left: 1em; font-style: italic;} -little-hero {color:blue; font-size: smaller; background-color: Turquoise } \ No newline at end of file