Commit Graph

40 Commits

Author SHA1 Message Date
Manuel Mtz-Almeida
c10f72b1e2 fix(keyboard): big keyboard/input refactor
fixes #9699
fixes #11484
fixes #11389
fixes #11325
fixes #11291
fixes #10828
fixes #11291
fixes #10393
fixes #10257
fixes #9434
fixes #8933
fixes #7178
fixes #7047
fixes #10552
fixes #10393
fixes #10183
fixes #10187
fixes #10852
fixes #11578
2017-06-12 22:31:22 +02:00
Brandy Carney
556745191f refactor(item): prefix the input classes with item- 2017-05-24 14:46:51 -04:00
perry
41e34fc4ce chore(docs): moving docs from /docs/v2 to /docs 2017-03-29 11:00:52 -05:00
Manu Mtz.-Almeida
7272b5a42a refactor(all): color/mode inputs are not longer needed 2017-03-23 23:32:47 +01:00
perry
396f891f33 chore(docs): updating dgeni typescript package 2017-03-14 14:50:31 -05:00
Dan Bucholtz
ece5047b6c refactor(input): restructure input component to separate modules
restructure input component to separate modules
2017-03-02 14:50:07 -06:00
Andrew Royappa
3959272620 docs(input): copy editing (#10561)
Tiny rewording.
2017-02-27 11:21:39 -05:00
mhartington
da14042094 docs(input): add note about text input events
Closes https://github.com/driftyco/ionic-site/issues/991
2017-02-17 11:48:28 -05:00
Brandy Carney
cc21f93b87 docs(API): update descriptions to be more clear
also update descriptions for the same properties to be more consistent,
and reword all events to start and end the same.

closes #10248 closes driftyco/ionic-site#613 closes
driftyco/ionic-site#899
2017-01-31 17:47:52 -05:00
ryanhalley
f9a8ff696e docs(input): remove typo (#10233) 2017-01-30 19:40:24 -05:00
Brandy Carney
eba0866a34 fix(input): don't allow focus when disabled is set (#10214)
Adds the disabled attribute to the parent input/textarea, also fixes
where disabled textareas were focusable regardless of where disabled
was set

fixes #10155
2017-01-27 14:42:38 -06:00
Brandy Carney
803782a95d feat(input): add max, min, step as inputs and pass to native
closes #10189
2017-01-27 10:41:24 -06:00
Brandy Carney
f9a576ed93 fix(input): pass readonly from ion-input down to native input
also adds to placeholder test an input and textarea with readonly that can be toggled

fixes #6408
2017-01-23 11:36:46 -06:00
Brandy Carney
7a6ba2d300 fix(input): show clear-input on inputs with ngModel/formControlName
fixes #9077
2017-01-23 11:35:44 -06:00
Brandy Carney
5844a83343 fix(input): pass disabled down to input when it is set from form
- test modified to disable username and comments on `input/form-inputs`
and then toggle them via a button

see: http://g.recordit.co/RkN510TcHk.gif

fixes #9834
2017-01-13 10:45:00 -06:00
mhartington
4224e903db docs(input): add example for ion-textarea 2017-01-10 15:13:52 -05:00
Adam Bradley
7000b1b173 refactor: improve tree shaking abilities
Internal refactor completed in order to improve tree shaking and dead
code removal. The public API, with an exception to ion-slides, has
stayed the same. However, internally many changes were required so
bundlers could better exclude modules which should not be bundled.
Ultimately most changes resorted to removing references to `window` or
`document`, or a module that referenced one of those.

BREAKING CHANGES

ion-slides was refactored to remove the external dependencies, and
rewritten in TypeScript/ES6 modules to again improve tree shaking
abilities.
2017-01-09 09:51:39 -06:00
Josep Sayol
e80f4cf88d fix(input): prevent exception when input components outside Content 2016-12-14 14:27:19 -06:00
Adam Bradley
c377236dcb perf(scroll): efficient scroll events and properties 2016-12-05 16:50:05 -06:00
Ibrahim Hadeed
21ade93065 Fix typo 2016-11-26 00:24:27 -05:00
ramonornela
fa54a4e02d style(input): fix lints 2016-11-17 09:37:35 -02:00
Max Lynch
9469b4ff9a feat(input): clearOnEdit feature. Closes #9187 2016-11-16 16:42:48 -06:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
Denny Biasiolli
faed85c6d3 docs(input): fix typo in documentation (#9103) 2016-11-10 18:53:07 -05:00
mhartington
b4b9adb7fc refactor(textarea): remove type input from textarea 2016-11-07 15:05:00 -05:00
mhartington
bc5cd7f03f docs(input): update input docs 2016-11-07 14:52:15 -05:00
mhartington
da62b63253 docs(): minor doc updates 2016-10-10 09:13:04 -04:00
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Brandy Carney
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
Brandy Carney
55a0257dbc refactor(colors): color should be added as an input instead of directly adding the color to the component
BREAKING CHANGES:

Colors should be passed in the `color` input on components, not added
individually as an attribute on the component.

For example:

```
<ion-tabs primary>
```

Becomes

```
<ion-tabs color=”primary”>
```

Or to bind an expression to color:

```
<ion-navbar [color]="barColor">
   ...
</ion-navbar>
```

```ts
@Component({
  templateUrl: 'build/pages/about/about.html'
})
export class AboutPage {
  barColor: string;

  constructor(private nav: NavController, platform: Platform) {
    this.barColor = platform.is('android') ? 'primary' : 'light';
  }
}
```

Reason for this change:
It was difficult to dynamically add colors to components, especially if
the name of the color attribute was unknown in the template.
This change keeps the css flat since we aren’t chaining color
attributes on components and instead we assign a class to the component
which includes the color’s name.
This allows you to easily toggle a component between multiple colors.
Speeds up performance because we are no longer reading through all of
the attributes to grab the color ones.

references #7467
closes #7087 closes #7401 closes #7523
2016-08-23 17:16:55 -04:00
Alex Muramoto
97b57f1b53 Update docs and fix typos (#7776)
* docs(input): fix typo

* docs(scroll): add note about required CSS for scrollY

* docs(config): add swipeBackEnabled to config properties list

* docs(component generator): fix broken link in template comment

* docs(directive generator): fix broken link in template comment
2016-08-18 15:20:25 -04:00
Brandy Carney
938864e8d0 refactor(button): add ion-button attribute and icon attributes to style buttons
BREAKING CHANGES:

- `<button>` becomes `<button ion-button>`
- `<a button>` becomes `<a ion-button>`
- `<button ion-item>` does not get the `ion-button` attribute
- Buttons inside of `<ion-item-options>` do get the `ion-button`
attribute
- Removed the `category` attribute, this should be passed in
`ion-button` instead.
- Button attributes added for icons in buttons: `icon-only`,
`icon-left`, and `icon-right`

closes #7466
2016-08-16 17:11:02 -04:00
Bryan Walker
d17441459e docs(input): update input
Added additional item highlighting ability to make text area taller and include placeholder text.
2016-07-24 21:16:36 -05:00
Adam Bradley
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
Adam Bradley
4d56219a4c refactor(forms): upgrade to @angular/forms 2016-06-30 21:54:48 -05:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
Brandy Carney
f8d1103eca docs(input): add clear input example to demo and update doc to reflect
closes driftyco/ionic-site#618
2016-06-02 15:35:05 -04:00
Adam Bradley
03f4511635 chore(tslint): fix noImplicitAny errors 2016-05-31 18:40:29 -05:00
Adam Bradley
73635f3939 refactor(bootstrap): use ionicBootstrap() to bootstrap
BREAKING CHANGES:

- Ionic's custom decorators have been removed.
- `@App` and `@Page` should be replaced with `@Component`.
- `IonicApp` has been renamed to `App`.
- `ionicBootstrap` is required to bootstrap the app.
- Config is now the 3rd parameter in `ionicBootstrap(rootComponent,
providers, config)`.
- Property `prodMode` is now a config option, enabling or disabling
production mode.
2016-05-31 15:42:06 -05:00
Josh Thomas
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00