Commit Graph

69 Commits

Author SHA1 Message Date
Manu Mtz.-Almeida
fa0579fe46 feat(button): strong decorator 2016-11-29 10:13:01 -06:00
Manu Mtz.-Almeida
5ad7fd1908 perf(rendering): add css containment 2016-11-23 11:08:45 -06:00
Adam Bradley
dc7a638ae4 refactor(overlay): remove default pageTransitionDelay on dismiss 2016-11-21 13:40:21 -06:00
Adam Bradley
29a56c4536 fix(alert): fix alert input focusing and keyboard
Related #8185
2016-11-21 13:16:40 -06:00
Manu Mtz.-Almeida
06938b64a5 fix(backdrop): remove click cursor when the backdrop is not tappable 2016-11-20 16:00:53 +01:00
Manu Mtz.-Almeida
32ab817181 fix(gestures): gesture controller handled by components
* fix(gestures): gesture controller is handled by components

fixes #9046

* fix(gestures): adds hybrid disable scroll assistance

fixes #9130
fixes #9052
fixes #7444
2016-11-16 10:03:51 -06:00
Manu Mtz.-Almeida
09c08e9dd1 fix(transition): wrong easing 2016-11-03 00:57:06 +01:00
Thomas Krupers
6b48076778 docs(): add sass variable descriptions (#8929)
docs(): add variable descriptions
2016-10-27 15:19:54 -04:00
Brandy Carney
2eed5e24c2 fix(select): emit the ionSelect option when selecting an option 2016-10-21 19:11:02 -04:00
Manu Mtz.-Almeida
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
Manu Mtz.-Almeida
f34d0c298e refactor(css): appearance mixin (#8212) 2016-10-06 16:18:00 -04:00
Manu Mtz.-Almeida
21eae2e58a fix(tap-click): null is not an object when scrolling after focusing an input on iOS
fixes #7964
2016-10-01 12:42:10 +02:00
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Adam Bradley
7c05d0c0ba fix(di): update dependency injection and default configs 2016-09-16 00:49:09 -05:00
Adam Bradley
52ada1ca6d chore(components): ngmodule updates 2016-09-13 17:07:33 -05:00
Brandy Carney
16df3a4aab refactor(css): update theme imports 2016-09-13 16:57:32 -05:00
Brandy Carney
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
Adam Bradley
d7be8a80c0 test(ngmodule): update to ngmodule 2016-09-13 15:44:02 -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
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
Brandy Carney
54a33e08e7 docs(overlays): update the overlay docs for multiple classes in cssClass
closes #7618
2016-08-10 11:12:02 -04:00
Justin Willis
42fa36bb91 test(alert): add test for overlays in viewDidEnter (#7606)
* chore(test): add test for overlays in viewDidEnter

* fix(test): dont break snapshot

* fix(test): fix where we import from
2016-08-08 13:13:26 -04:00
mhartington
5542a931f3 feat(alert): allow smooth overflow scrolling 2016-08-04 15:27:09 -04:00
Adam Bradley
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
perry
4f52135c13 Revert "Revert "Merge branch 'master' of https://github.com/driftyco/ionic""
This reverts commit 4a6086c1f8.
2016-07-18 19:40:03 -05:00
perry
4a6086c1f8 Revert "Merge branch 'master' of https://github.com/driftyco/ionic"
This reverts commit 8945bf906d, reversing
changes made to f4fac225fa.
2016-07-18 19:24:56 -05:00
Manu Mtz.-Almeida
72c24bc927 feat(gesture-controller): disable/enable scrolling 2016-07-14 00:52:43 +02:00
Adam Bradley
cca3309f4c chore(nav): create nav-interfaces file 2016-07-11 23:24:25 -05:00
Brandy Carney
d1234643ee docs(alert): update description of setCssClass
references #6835
2016-07-08 13:51:40 -04:00
Brandy Carney
81ddd7f0a9 fix(select): add the cssClass passed by the user to the alert for a select
fixes #6835
2016-07-08 13:44:05 -04: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
mhartington
fbe6f82c89 docs(alert, loading, modal): update docs 2016-06-30 15:02:19 -04:00
Manu Mtz.-Almeida
ec99bfd019 feat(viewcontroller): add onWillDismiss callback
Fixed #6702
2016-06-30 08:06:19 -05:00
Víctor Oliva
76619cf4d0 feat(select): add disabled status in select options 2016-06-29 20:01:03 -05:00
Adam Bradley
4980659bd6 test(overlay): use injectable overlay controllers 2016-06-28 15:20:42 -05:00
Adam Bradley
215c6d846c refactor(overlays): inject overlay providers
BREAKING CHANGES:

- Overlay components, such as Alert or Modals, should now be created
using its injected provider.
- Overlays now have the `present()` method on the overlay’s instance,
rather than using `nav.present(overlayInstance)`.
- All overlays now present on top of all app content, to include menus.
- Below is an example of the change to `Alert`, but the pattern is the
same for all overlays: ActionSheet, Loading, Modal, Picker, Popover,
Toast

WAS:

```
import { NavController, Alert } from ‘ionic-angular’;

constructor(private nav: NavController) {
}

doAlert() {
  let alert = Alert.create({
    title: 'Alert',
  });
  this.nav.present(alert);
}
```

NOW:

```
import { AlertController } from ‘ionic-angular’;

constructor(private alertCtrl: AlertController) {
}

doAlert() {
  let alert = this.alertCtrl.create({
    title: 'Alert'
  });
  alert.present();
}
```
2016-06-28 15:18:09 -05:00
Adam Bradley
e06581d84c chore(angular): update to angular 2.0.0-rc.3 2016-06-22 14:27:08 -05:00
Adam Bradley
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
Adam Bradley
e5d79d28c0 refactor(ViewController): remove need for viewType property 2016-06-16 15:26:16 -05:00
Adam Bradley
d13fa4e2cf refactor(structure): allow content to scroll under headers/footers 2016-06-16 11:28:02 -05:00
Dan Bucholtz
2be96f29b2 * refactor(overlays): overlays now are enabled via ionViewDidEnter (#6811) closes #6753
overalys now are enabled via ionViewDidEnter

* style(overlays): fixed tslint error

fixed tslint error

* style(overlays): formatting

formatting

* refactor(overlays): minor refactor to match style

minor refactor to match style
2016-06-09 13:35:03 -05:00
Guillermo
af289ece12 Fix typo (#6789) 2016-06-07 16:11:13 -05:00
Manu Mtz.-Almeida
a1a582b7a1 fix(ion-backdrop): new ion-backdrop can prevent background scrolling
closes #6656
2016-06-02 17:09:44 +02:00
Adam Bradley
2eb88fa687 test(lifecycle): update lifecycle events 2016-06-01 12:19:08 -05:00
Adam Bradley
c18335e946 refactor(lifecycle): lifecycle methods prefixed w/ ionView
BREAKING CHANGES:

- Lifecycle method prefixes have changed to `ionView`
- `onPageLoaded` renamed to `ionViewLoaded`
- `onPageWillEnter` renamed to `ionViewWillEnter`
- `onPageDidEnter` renamed to `ionViewDidEnter`
- `onPageWillLeave` renamed to `ionViewWillLeave`
- `onPageDidLeave` renamed to `ionViewDidLeave`
- `onPageWillUnload` renamed to `ionViewWillUnload`
- `onPageDidUnload` renamed to `ionViewDidUnload`
2016-06-01 12:06:15 -05:00
Adam Bradley
03f4511635 chore(tslint): fix noImplicitAny errors 2016-05-31 18:40:29 -05:00
Ignat Ignatov
6e3859a657 docs(alert): add clarification about input options
Added clarifications about the `placeholder` and `label` input options, related to: https://forum.ionicframework.com/t/alerts-property-label-not-work/53335.
2016-05-31 16:30:34 -05:00
Adam Bradley
6e9087534d test(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:12 -05:00