chore(): rename IonicForm to Form

This commit is contained in:
Adam Bradley
2015-10-16 12:03:11 -05:00
parent bb3b20727c
commit 7a2ab2b6c4
6 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
import {Component, Directive, Optional, NgControl, ElementRef, Renderer} from 'angular2/angular2'; import {Component, Directive, Optional, NgControl, ElementRef, Renderer} from 'angular2/angular2';
import {Ion} from '../ion'; import {Ion} from '../ion';
import {IonicForm} from '../../util/form'; import {Form} from '../../util/form';
/** /**
* 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
@ -43,7 +43,7 @@ import {IonicForm} from '../../util/form';
export class Checkbox { export class Checkbox {
constructor( constructor(
form: IonicForm, form: Form,
@Optional() ngControl: NgControl, @Optional() ngControl: NgControl,
elementRef: ElementRef, elementRef: ElementRef,
renderer: Renderer renderer: Renderer

View File

@ -1,6 +1,6 @@
import {Component, Directive, ElementRef, Renderer, Host, Optional, NgControl, Inject, forwardRef} from 'angular2/angular2'; import {Component, Directive, ElementRef, Renderer, Host, Optional, NgControl, Inject, forwardRef} from 'angular2/angular2';
import {IonicForm} from '../../util/form'; import {Form} from '../../util/form';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
import {pointerCoord} from '../../util/dom'; import {pointerCoord} from '../../util/dom';
@ -103,7 +103,7 @@ export class Switch {
* @param {NgControl=} ngControl TODO * @param {NgControl=} ngControl TODO
*/ */
constructor( constructor(
form: IonicForm, form: Form,
elementRef: ElementRef, elementRef: ElementRef,
config: Config, config: Config,
renderer: Renderer, renderer: Renderer,

View File

@ -1,7 +1,7 @@
import {Component, Directive, NgIf, forwardRef, Host, Optional, ElementRef, Renderer, Attribute, Query, QueryList, NgZone} from 'angular2/angular2'; import {Component, Directive, NgIf, forwardRef, Host, Optional, ElementRef, Renderer, Attribute, Query, QueryList, NgZone} from 'angular2/angular2';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
import {IonicForm} from '../../util/form'; import {Form} from '../../util/form';
import {Label} from './label'; import {Label} from './label';
import {IonicApp} from '../app/app'; import {IonicApp} from '../app/app';
import {Content} from '../content/content'; import {Content} from '../content/content';
@ -27,7 +27,7 @@ import {Platform} from '../../platform/platform';
export class TextInput { export class TextInput {
constructor( constructor(
form: IonicForm, form: Form,
elementRef: ElementRef, elementRef: ElementRef,
config: Config, config: Config,
renderer: Renderer, renderer: Renderer,
@ -403,7 +403,7 @@ export class TextInputElement {
}) })
class InputScrollAssist { class InputScrollAssist {
constructor(form: IonicForm, textInput: TextInput) { constructor(form: Form, textInput: TextInput) {
this.form = form; this.form = form;
this.textInput = textInput; this.textInput = textInput;
} }

View File

@ -5,7 +5,7 @@ import {IonicApp} from '../components/app/app';
import {Config} from './config'; import {Config} from './config';
import {Platform} from '../platform/platform'; import {Platform} from '../platform/platform';
import {OverlayController} from '../components/overlay/overlay-controller'; import {OverlayController} from '../components/overlay/overlay-controller';
import {IonicForm} from '../util/form'; import {Form} from '../util/form';
import {Keyboard} from '../util/keyboard'; import {Keyboard} from '../util/keyboard';
import {ActionSheet} from '../components/action-sheet/action-sheet'; import {ActionSheet} from '../components/action-sheet/action-sheet';
import {Modal} from '../components/modal/modal'; import {Modal} from '../components/modal/modal';
@ -50,7 +50,7 @@ export function ionicProviders(config) {
provide(TapClick, {useValue: tapClick}), provide(TapClick, {useValue: tapClick}),
provide(FeatureDetect, {useValue: featureDetect}), provide(FeatureDetect, {useValue: featureDetect}),
provide(Events, {useValue: events}), provide(Events, {useValue: events}),
IonicForm, Form,
Keyboard, Keyboard,
OverlayController, OverlayController,
ActionSheet, ActionSheet,

View File

@ -15,7 +15,7 @@ import {Config} from '../config/config';
* ``` * ```
*/ */
@Injectable() @Injectable()
export class IonicForm { export class Form {
constructor(config: Config, zone: NgZone) { constructor(config: Config, zone: NgZone) {
this._config = config; this._config = config;

View File

@ -1,14 +1,14 @@
import {Injectable, NgZone} from 'angular2/angular2'; import {Injectable, NgZone} from 'angular2/angular2';
import {Config} from '../config/config'; import {Config} from '../config/config';
import {IonicForm} from './form'; import {Form} from './form';
import * as dom from './dom'; import * as dom from './dom';
@Injectable() @Injectable()
export class Keyboard { export class Keyboard {
constructor(config: Config, form: IonicForm, zone: NgZone) { constructor(config: Config, form: Form, zone: NgZone) {
this.form = form; this.form = form;
this.zone = zone; this.zone = zone;