42 Commits

Author SHA1 Message Date
5ad7fd1908 perf(rendering): add css containment 2016-11-23 11:08:45 -06:00
9bb8e5ba5e test(modal): make sure enableBackdropDismiss works correctly
references #9185
2016-11-19 18:42:47 +01:00
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
09c08e9dd1 fix(transition): wrong easing 2016-11-03 00:57:06 +01:00
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
451ffe1133 fix(nav): ionViewDidLoad is called in modals
fixes #8449
2016-10-12 11:38:44 -05:00
248d0c1a9c chore(e2e): add css back to e2e tests where it was missing
add css back to e2e tests where it was missing
2016-09-27 16:48:27 -05:00
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
7c05d0c0ba fix(di): update dependency injection and default configs 2016-09-16 00:49:09 -05:00
52ada1ca6d chore(components): ngmodule updates 2016-09-13 17:07:33 -05:00
16df3a4aab refactor(css): update theme imports 2016-09-13 16:57:32 -05:00
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
d7be8a80c0 test(ngmodule): update to ngmodule 2016-09-13 15:44:02 -05:00
25ff530dcf docs(loading): add returns statement 2016-09-13 11:38:46 -05:00
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
7ddebdd6a1 test(loading): add test to show setting dynamic content
references #6103
2016-08-17 14:07:43 -04:00
fa754f1110 Merge branch 'issue/6103-change-content-of-loading-component' of https://github.com/stonelasley/ionic into stonelasley-issue/6103-change-content-of-loading-component 2016-08-17 13:48:07 -04:00
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
c750847df1 feat(loading): add setContent function 2016-08-12 18:24:07 -06:00
54a33e08e7 docs(overlays): update the overlay docs for multiple classes in cssClass
closes #7618
2016-08-10 11:12:02 -04:00
466dea310b feat(loading): add ability to pass multiple classes to cssClass
references #7618
2016-08-09 16:15:58 -04:00
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
cca3309f4c chore(nav): create nav-interfaces file 2016-07-11 23:24:25 -05:00
5bbe31a69f fix(loading): clear timeout if dismissed before timeout fires 2016-07-07 13:00:12 -05:00
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
fbe6f82c89 docs(alert, loading, modal): update docs 2016-06-30 15:02:19 -04:00
ec99bfd019 feat(viewcontroller): add onWillDismiss callback
Fixed #6702
2016-06-30 08:06:19 -05:00
4980659bd6 test(overlay): use injectable overlay controllers 2016-06-28 15:20:42 -05:00
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
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
e5d79d28c0 refactor(ViewController): remove need for viewType property 2016-06-16 15:26:16 -05:00
d13fa4e2cf refactor(structure): allow content to scroll under headers/footers 2016-06-16 11:28:02 -05:00
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
a1a582b7a1 fix(ion-backdrop): new ion-backdrop can prevent background scrolling
closes #6656
2016-06-02 17:09:44 +02:00
2eb88fa687 test(lifecycle): update lifecycle events 2016-06-01 12:19:08 -05:00
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
11448dcd0c chore(tslint): fix noImplicitAny errors 2016-05-31 21:07:17 -05:00
6e9087534d test(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:12 -05:00
2b836a930f chore(tests): correct components to use src path instead of ionic to ensure karma tests pass. 2016-05-19 16:58:08 -05:00
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00