Commit Graph

85 Commits

Author SHA1 Message Date
Brandy Carney
e210448e63 docs(toolbar): update API docs and any tests to remove old toolbar attributes 2016-12-07 12:29:34 -05:00
Brandy Carney
660d53101f docs(sass): add documentation for the remaining sass variables
closes #8785
2016-12-05 10:16:40 -05:00
Manu Mtz.-Almeida
ccb6bf1390 fix(modal): using cross mode animations
fixes #9323
2016-11-30 13:30:28 +01:00
Manu Mtz.-Almeida
fa0579fe46 feat(button): strong decorator 2016-11-29 10:13:01 -06:00
Manu Mtz.-Almeida
84b3792254 test(toolbar): correct toolbar height with statusbar 2016-11-28 21:08:24 +01:00
Manu Mtz.-Almeida
5ad7fd1908 perf(rendering): add css containment 2016-11-23 11:08:45 -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
9bb8e5ba5e test(modal): make sure enableBackdropDismiss works correctly
references #9185
2016-11-19 18:42:47 +01:00
Manu Mtz.-Almeida
11bb8ac587 style(modal): follows ios/md design spec in large screens 2016-11-19 18:25:46 +01:00
Manu Mtz.-Almeida
e46d8d6938 fix(modal): backdrop click catches navigation promise
A modal with canLeave = false, can lead to an unhandled exception when closing through a click in the backdrop
2016-11-19 18:15:26 +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
Brandy Carney
e7ad038b4d test(modal): update modal test to add new buttons and move toast 2016-11-03 16:27:30 -04:00
Manu Mtz.-Almeida
04d61ee47a fix(nav): swipe to go back gesture
- smoother by debouncing touch events (reduces bank)
- dynamic animation duration
- intelligent behavior based in the position, speed and direccion of the swipe (sharing logic with sliding item)

fixes #8919
fixes #8958
fixes #7934
2016-11-01 13:38:27 -05:00
Manu Mtz.-Almeida
033e1eae17 fix(nav): adds public willLoad lifecycle event
* fix(nav): adds public willLoad lifecycle event

* test(menu): adds more asserts
2016-11-01 13:12:29 -05:00
Hugo Aguirre
b0d393bc16 docs(modal): add sass variable descriptions 2016-10-29 18:29:25 -05:00
Manu Mtz.-Almeida
925be1533b test(modal): toast z-index issues
references #8597
2016-10-18 01:59:36 +02:00
Manu Mtz.-Almeida
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
Manu Mtz.-Almeida
2834cd87cd test(): improve e2e tests 2016-10-13 00:05:47 +02:00
Brandy Carney
2f8fbed0c4 test(e2e): update e2e tests to resolve snapshot issues 2016-10-12 17:29:28 -04:00
Manu Mtz.-Almeida
1300cbd7c0 test(modal): adds canLeave test 2016-10-12 22:47:31 +02:00
Manu Mtz.-Almeida
e2704a4a25 fix(modal): alerts do not trigger modal lifecycle events
fixes #8616
2016-10-12 19:58:38 +02:00
Manu Mtz.-Almeida
451ffe1133 fix(nav): ionViewDidLoad is called in modals
fixes #8449
2016-10-12 11:38:44 -05:00
Brandy Carney
2b7e83c1e1 test(modal): fix modal e2e test errors with forms 2016-10-12 11:43:43 -04:00
Manu Mtz.-Almeida
c9f4a4123f test(modal): adds e2e tests for open rc0 issues
references #8616
references #8597
references #8573
2016-10-10 19:15:05 +02:00
Alex Muramoto
45ea189fa2 docs(): update modal and searchbar docs
* 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

* docs(modal): add that modal is not reusable

* docs (searchbar): update description of debounce
2016-09-30 13:48:03 -04:00
Adam Bradley
d8ecf16feb refactor(nav): do not auto-add pascal case css class
Previously a css class generated from the JS class name, was
automatically being added to the page element. However, the JS class
name returned is not consistent among all browsers. Instead of
automatically applying a css classname, we now recommend adding a
`selector` to each page component.
2016-09-26 00:40:10 +01: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
Brandy Carney
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
Adam Bradley
52ada1ca6d chore(components): ngmodule updates 2016-09-13 17:07:33 -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
Adam Bradley
a4e393b619 fix(nav): fire lifecycle events from app root portal 2016-08-04 22:47:36 -05:00
Adam Bradley
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
Adam Bradley
61a86253a8 fix(nav): register child nav when created from modal 2016-08-04 11:49:21 -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
cac378f35b fix(menu): only one menu can be opened at a time
fixes #6826
2016-07-17 20:42:29 -05:00
Adam Bradley
0386476879 test(nav): clean up NavController tests 2016-07-15 15:55:49 -05:00
Adam Bradley
cca3309f4c chore(nav): create nav-interfaces file 2016-07-11 23:24:25 -05:00
Adam Bradley
da6215c08e test(modal): add provider tests
Related #7160
2016-07-01 20:30:28 -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
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
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