mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -9,7 +9,7 @@ import {
|
|||||||
import {Ion} from '../ion';
|
import {Ion} from '../ion';
|
||||||
import {IonInput} from '../form/input';
|
import {IonInput} from '../form/input';
|
||||||
import {IonicConfig} from '../../config/config';
|
import {IonicConfig} from '../../config/config';
|
||||||
import {IonicComponent, IonicView} from '../../config/decorators';
|
import {IonicComponent} from '../../config/decorators';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The checkbox is no different than the HTML checkbox input, except it's styled differently
|
* The checkbox is no different than the HTML checkbox input, except it's styled differently
|
||||||
@ -42,7 +42,7 @@ import {IonicComponent, IonicView} from '../../config/decorators';
|
|||||||
'(click)': 'click($event)'
|
'(click)': 'click($event)'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template:
|
template:
|
||||||
'<media-checkbox disable-activated>' +
|
'<media-checkbox disable-activated>' +
|
||||||
'<checkbox-icon></checkbox-icon>' +
|
'<checkbox-icon></checkbox-icon>' +
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import {Component, Directive, View, Optional, ElementRef, TemplateRef, forwardRef, Inject} from 'angular2/angular2';
|
import {Component, Directive, View, Optional, ElementRef, TemplateRef, forwardRef, Inject} from 'angular2/angular2';
|
||||||
|
|
||||||
import {Ion} from '../ion';
|
import {Ion} from '../ion';
|
||||||
|
import {Icon} from '../icon/icon';
|
||||||
import {ToolbarBase} from '../toolbar/toolbar';
|
import {ToolbarBase} from '../toolbar/toolbar';
|
||||||
import {IonicConfig} from '../../config/config';
|
import {IonicConfig} from '../../config/config';
|
||||||
import {IonicView} from '../../config/decorators';
|
import {IonicView} from '../../config/decorators';
|
||||||
@ -54,7 +55,7 @@ class BackButtonText extends Ion {
|
|||||||
'class': 'toolbar'
|
'class': 'toolbar'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template:
|
template:
|
||||||
'<div class="toolbar-inner">' +
|
'<div class="toolbar-inner">' +
|
||||||
'<button class="back-button">' +
|
'<button class="back-button">' +
|
||||||
@ -69,7 +70,7 @@ class BackButtonText extends Ion {
|
|||||||
'<ng-content select="ion-nav-items[secondary]"></ng-content>' +
|
'<ng-content select="ion-nav-items[secondary]"></ng-content>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="toolbar-background"></div>',
|
'<div class="toolbar-background"></div>',
|
||||||
directives: [BackButton, BackButtonText]
|
directives: [BackButton, BackButtonText, Icon]
|
||||||
})
|
})
|
||||||
export class Navbar extends ToolbarBase {
|
export class Navbar extends ToolbarBase {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {ElementRef, Host, Optional, NgControl, Query, QueryList} from 'angular2/angular2';
|
import {ElementRef, Host, Optional, NgControl, Query, QueryList, View} from 'angular2/angular2';
|
||||||
|
|
||||||
import {IonicDirective, IonicComponent, IonicView} from '../../config/decorators';
|
import {IonicDirective, IonicComponent} from '../../config/decorators';
|
||||||
import {IonicConfig} from '../../config/config';
|
import {IonicConfig} from '../../config/config';
|
||||||
import {Ion} from '../ion';
|
import {Ion} from '../ion';
|
||||||
import {ListHeader} from '../list/list';
|
import {ListHeader} from '../list/list';
|
||||||
@ -182,7 +182,7 @@ export class RadioGroup extends Ion {
|
|||||||
'(click)': 'click($event)'
|
'(click)': 'click($event)'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template:
|
template:
|
||||||
'<ion-item-content id="{{labelId}}">' +
|
'<ion-item-content id="{{labelId}}">' +
|
||||||
'<ng-content></ng-content>' +
|
'<ng-content></ng-content>' +
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {ElementRef, Pipe, NgControl, Renderer} from 'angular2/angular2';
|
import {ElementRef, Pipe, NgControl, Renderer, View} from 'angular2/angular2';
|
||||||
//import {ControlGroup} from 'angular2/forms'
|
//import {ControlGroup} from 'angular2/forms'
|
||||||
|
|
||||||
import {Ion} from '../ion';
|
import {Ion} from '../ion';
|
||||||
import {IonicConfig} from '../../config/config';
|
import {IonicConfig} from '../../config/config';
|
||||||
import {IonicComponent, IonicView} from '../../config/decorators';
|
import {IonicComponent} from '../../config/decorators';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO
|
* TODO
|
||||||
@ -20,7 +20,7 @@ import {IonicComponent, IonicView} from '../../config/decorators';
|
|||||||
'placeholder': 'Search'
|
'placeholder': 'Search'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template: `
|
template: `
|
||||||
<div class="search-bar-input-container" [class.left-align]="shouldLeftAlign">
|
<div class="search-bar-input-container" [class.left-align]="shouldLeftAlign">
|
||||||
<div class="search-bar-search-icon"></div>
|
<div class="search-bar-search-icon"></div>
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
import {Ion} from '../ion';
|
import {Ion} from '../ion';
|
||||||
import {IonInput} from '../form/input';
|
import {IonInput} from '../form/input';
|
||||||
import {IonicConfig} from '../../config/config';
|
import {IonicConfig} from '../../config/config';
|
||||||
import {IonicComponent, IonicView} from '../../config/decorators';
|
import {IonicComponent} from '../../config/decorators';
|
||||||
import {pointerCoord} from '../../util/dom';
|
import {pointerCoord} from '../../util/dom';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -99,7 +99,7 @@ class MediaSwitch {
|
|||||||
'(mouseup)': 'pointerUp($event)'
|
'(mouseup)': 'pointerUp($event)'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template:
|
template:
|
||||||
'<ng-content select="[item-left]"></ng-content>' +
|
'<ng-content select="[item-left]"></ng-content>' +
|
||||||
'<ion-item-content id="{{labelId}}">' +
|
'<ion-item-content id="{{labelId}}">' +
|
||||||
|
@ -66,7 +66,7 @@ import * as dom from 'ionic/util/dom';
|
|||||||
'tabBarIcons': 'top'
|
'tabBarIcons': 'top'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template: '' +
|
template: '' +
|
||||||
'<section class="navbar-container">' +
|
'<section class="navbar-container">' +
|
||||||
'<template navbar-anchor></template>' +
|
'<template navbar-anchor></template>' +
|
||||||
|
@ -2,7 +2,6 @@ import {Component, Directive, View, Host, ElementRef, Optional, forwardRef, Inje
|
|||||||
|
|
||||||
import {Ion} from '../ion';
|
import {Ion} from '../ion';
|
||||||
import {IonicConfig} from '../../config/config';
|
import {IonicConfig} from '../../config/config';
|
||||||
import {IonicView} from '../../config/decorators';
|
|
||||||
import {MenuToggle} from '../menu/menu-toggle';
|
import {MenuToggle} from '../menu/menu-toggle';
|
||||||
import {Navbar} from '../nav-bar/nav-bar';
|
import {Navbar} from '../nav-bar/nav-bar';
|
||||||
|
|
||||||
@ -62,7 +61,7 @@ export class ToolbarBase extends Ion {
|
|||||||
'class': 'toolbar'
|
'class': 'toolbar'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@IonicView({
|
@View({
|
||||||
template:
|
template:
|
||||||
'<div class="toolbar-inner">' +
|
'<div class="toolbar-inner">' +
|
||||||
'<ng-content select="[menu-toggle]"></ng-content>' +
|
'<ng-content select="[menu-toggle]"></ng-content>' +
|
||||||
|
@ -1,24 +1,35 @@
|
|||||||
import {CORE_DIRECTIVES, FORM_DIRECTIVES, forwardRef} from 'angular2/angular2'
|
import {CORE_DIRECTIVES, FORM_DIRECTIVES, forwardRef} from 'angular2/angular2'
|
||||||
|
|
||||||
import {
|
import {OverlayAnchor} from '../components/overlay/overlay';
|
||||||
OverlayAnchor,
|
import {Menu} from '../components/menu/menu';
|
||||||
Menu, MenuToggle, MenuClose,
|
import {MenuToggle} from '../components/menu/menu-toggle';
|
||||||
Button, Content, Scroll, Refresher,
|
import {MenuClose} from '../components/menu/menu-close';
|
||||||
Slides, Slide, SlideLazy,
|
import {Button} from '../components/button/button';
|
||||||
Tabs, Tab,
|
import {Content} from '../components/content/content';
|
||||||
Card, List, ListHeader, Item, ItemGroup, ItemGroupTitle,
|
import {Scroll} from '../components/scroll/scroll';
|
||||||
Toolbar, ToolbarTitle, ToolbarItem,
|
import {Refresher} from '../components/scroll/pull-to-refresh';
|
||||||
Icon,
|
import {Slides, Slide, SlideLazy} from '../components/slides/slides';
|
||||||
Checkbox, Switch,
|
import {Tabs} from '../components/tabs/tabs';
|
||||||
TextInput, TextInputElement, Label,
|
import {Tab} from '../components/tabs/tab';
|
||||||
Segment, SegmentButton, SegmentControlValueAccessor,
|
import {Card} from '../components/card/card';
|
||||||
RadioGroup, RadioButton, SearchBar,
|
import {List, ListHeader} from '../components/list/list';
|
||||||
Nav, NavbarTemplate, Navbar,
|
import {Item} from '../components/item/item';
|
||||||
NavPush, NavPop, NavRouter,
|
import {ItemGroup, ItemGroupTitle} from '../components/item/item-group';
|
||||||
IdRef,
|
import {Toolbar, ToolbarTitle, ToolbarItem} from '../components/toolbar/toolbar';
|
||||||
ShowWhen, HideWhen
|
import {Icon} from '../components/icon/icon';
|
||||||
} from '../ionic';
|
import {Checkbox} from '../components/checkbox/checkbox';
|
||||||
|
import {Switch} from '../components/switch/switch';
|
||||||
|
import {TextInput, TextInputElement} from '../components/text-input/text-input';
|
||||||
|
import {Label} from '../components/text-input/label';
|
||||||
|
import {Segment, SegmentButton, SegmentControlValueAccessor} from '../components/segment/segment';
|
||||||
|
import {RadioGroup, RadioButton} from '../components/radio/radio';
|
||||||
|
import {SearchBar} from '../components/search-bar/search-bar';
|
||||||
|
import {Nav} from '../components/nav/nav';
|
||||||
|
import {NavPush, NavPop} from '../components/nav/nav-push';
|
||||||
|
import {NavRouter} from '../components/nav/nav-router';
|
||||||
|
import {NavbarTemplate, Navbar} from '../components/nav-bar/nav-bar';
|
||||||
|
import {IdRef} from '../components/app/id';
|
||||||
|
import {ShowWhen, HideWhen} from '../components/show-hide-when/show-hide-when';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The core Ionic directives. Automatically available in every
|
* The core Ionic directives. Automatically available in every
|
||||||
@ -30,63 +41,63 @@ export const IONIC_DIRECTIVES = [
|
|||||||
FORM_DIRECTIVES,
|
FORM_DIRECTIVES,
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
forwardRef(() => OverlayAnchor),
|
OverlayAnchor,
|
||||||
forwardRef(() => Menu),
|
Menu,
|
||||||
forwardRef(() => MenuToggle),
|
MenuToggle,
|
||||||
forwardRef(() => MenuClose),
|
MenuClose,
|
||||||
|
|
||||||
forwardRef(() => Button),
|
Button,
|
||||||
forwardRef(() => Content),
|
Content,
|
||||||
forwardRef(() => Scroll),
|
Scroll,
|
||||||
forwardRef(() => Refresher),
|
Refresher,
|
||||||
|
|
||||||
// Lists
|
// Lists
|
||||||
forwardRef(() => Card),
|
Card,
|
||||||
forwardRef(() => List),
|
List,
|
||||||
forwardRef(() => ListHeader),
|
ListHeader,
|
||||||
forwardRef(() => Item),
|
Item,
|
||||||
forwardRef(() => ItemGroup),
|
ItemGroup,
|
||||||
forwardRef(() => ItemGroupTitle),
|
ItemGroupTitle,
|
||||||
|
|
||||||
// Slides
|
// Slides
|
||||||
forwardRef(() => Slides),
|
Slides,
|
||||||
forwardRef(() => Slide),
|
Slide,
|
||||||
forwardRef(() => SlideLazy),
|
SlideLazy,
|
||||||
|
|
||||||
// Tabs
|
// Tabs
|
||||||
forwardRef(() => Tabs),
|
Tabs,
|
||||||
forwardRef(() => Tab),
|
Tab,
|
||||||
|
|
||||||
// Toolbar
|
// Toolbar
|
||||||
forwardRef(() => Toolbar),
|
Toolbar,
|
||||||
forwardRef(() => ToolbarTitle),
|
ToolbarTitle,
|
||||||
forwardRef(() => ToolbarItem),
|
ToolbarItem,
|
||||||
|
|
||||||
// Media
|
// Media
|
||||||
forwardRef(() => Icon),
|
Icon,
|
||||||
|
|
||||||
// Forms
|
// Forms
|
||||||
forwardRef(() => Segment),
|
Segment,
|
||||||
forwardRef(() => SegmentButton),
|
SegmentButton,
|
||||||
forwardRef(() => SegmentControlValueAccessor),
|
SegmentControlValueAccessor,
|
||||||
forwardRef(() => Checkbox),
|
Checkbox,
|
||||||
forwardRef(() => RadioGroup),
|
RadioGroup,
|
||||||
forwardRef(() => RadioButton),
|
RadioButton,
|
||||||
forwardRef(() => Switch),
|
Switch,
|
||||||
forwardRef(() => TextInput),
|
TextInput,
|
||||||
forwardRef(() => TextInputElement),
|
TextInputElement,
|
||||||
forwardRef(() => Label),
|
Label,
|
||||||
|
|
||||||
// Nav
|
// Nav
|
||||||
forwardRef(() => Nav),
|
Nav,
|
||||||
forwardRef(() => NavbarTemplate),
|
NavbarTemplate,
|
||||||
forwardRef(() => Navbar),
|
Navbar,
|
||||||
|
|
||||||
forwardRef(() => NavPush),
|
NavPush,
|
||||||
forwardRef(() => NavPop),
|
NavPop,
|
||||||
forwardRef(() => NavRouter),
|
NavRouter,
|
||||||
forwardRef(() => IdRef),
|
IdRef,
|
||||||
|
|
||||||
forwardRef(() => ShowWhen),
|
ShowWhen,
|
||||||
forwardRef(() => HideWhen)
|
HideWhen
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user