Commit Graph

401 Commits

Author SHA1 Message Date
Tim Lancina
c883a2ae91 chore(): update Ionic imports in tests 2016-02-22 17:45:17 -06:00
Adam Bradley
ed85ab9863 test(nav): create nav memory test 2016-02-21 21:30:10 -06:00
Adam Bradley
b62725c8ce chore(animation): pass instance to onFinish callbacks 2016-02-21 13:52:25 -06:00
Adam Bradley
4cae151d47 fix(overlay): do not dom cache views before overlays
Closes #5483
2016-02-21 00:03:58 -06:00
Adam Bradley
4fabadecb7 fix(nav): immediately stop if view removed before trans finished 2016-02-20 22:43:17 -06:00
Adam Bradley
b9eec24c88 fix(tabs): pop tab page to parent nav
Closes #5196
2016-02-19 21:43:28 -06:00
Adam Bradley
6b9e59d0d0 feat(NavController): prevent other lifecycle events from firing
For Alert and ActionSheet, the currently active page’s leaving
lifecycle event should not fire. However, for Modal, the currently
active page’s leaving lifecycle should fire. Closes #5516
2016-02-19 12:06:49 -06:00
Adam Bradley
0d60a0f5d5 test(NavController): add cleanup tests 2016-02-19 10:40:44 -06:00
Adam Bradley
53af766a08 test(NavController): add lifecycle tests 2016-02-19 10:23:46 -06:00
Adam Bradley
8f0b88b7e4 fix(NavController): fire onPageWillUnload/DidUnload
Fixes #5507
2016-02-18 11:05:45 -06:00
Adam Bradley
da37029195 feat(nav): iOS swipe to go back
Closes #5185
2016-02-17 13:35:34 -06:00
Adam Bradley
20fef818ff chore(types): add more types to ViewController 2016-02-16 23:06:13 -06:00
Tim Lancina
04c1c7c3bd chore(typings): add es6 and jasmine typings
As of beta.6, angular2 no longer ships es6-shim or jasmine typings, so
we provide them ourselves.
2016-02-15 15:36:01 -06:00
Adam Bradley
e06cf71aae feat(tabs): rootParams, pass params to tabs
Closes #5172
2016-02-15 00:01:23 -06:00
mhartington
019009a3e2 chore(): fix bad types for docs 2016-02-12 16:36:27 -05:00
mhartington
5941042a98 chore() normalize types in docs 2016-02-12 15:51:28 -05:00
Tim Lancina
8b724a3bcb chore(tests): make typescript and unit tests friends 2016-02-12 13:59:38 -06:00
Tim Lancina
5f254f285f chore(e2e): make typescript and e2e friends 2016-02-12 11:37:39 -06:00
mhartington
224382a10e Merge branch '2.0' of https://github.com/driftyco/ionic into ins_n_outs 2016-02-11 14:10:04 -05:00
mhartington
d958085c03 docs(navPush): add input docs 2016-02-11 12:23:07 -05:00
Adam Bradley
8bde8d7522 fix(modal): set root nav view controller 2016-02-10 11:38:57 -06:00
Adam Bradley
8401aa4449 style(button): format css 2016-02-10 09:11:40 -06:00
Manu Mtz.-Almeida
38a3be438f fix(button): bar-button uses inner span as flexbox
- Fixed block/full buttons, now there are display: block
- Fixes <ion-segment-button> warnings
2016-02-10 15:49:19 +01:00
Adam Bradley
e6068785f6 refactor(transitions): created Transition class
Created interfaces for NavOptions, AnimationOptions and
TransitionOptions Created Transition class and move transition ts files
to their own folder.
2016-02-10 01:57:54 -06:00
Adam Bradley
da18868636 refactor(animations): inline css animations 2016-02-09 16:23:01 -06:00
mhartington
9cc28791db docs(navController): update docs 2016-02-09 10:17:09 -05:00
Adam Bradley
acf12cdd15 refactor(menu): inject MenuController to control app menus
Menu has been improved to make it easier to open, close, toggle and
enable menus.
Instead of injecting `IonicApp` to find the menu component, you now
inject
`MenuController`.

Was:

```
constructor(app: IonicApp) {
  this.app = app;
}
openMenu() {
  this.app.getComponent('leftMenu').close();
}
```

Now:

To programmatically interact with any menu, you can inject the
`MenuController`
provider into any component or directive. This makes it easy get ahold
of and
control the correct menu instance. By default Ionic will find the app's
menu
without requiring a menu ID. An id attribute on an `<ion-menu>` is only
required
if there are multiple menus on the same side. If there are multiple
menus, but
on different sides, you can use the name of the side to get the correct
menu

If there's only one menu:

```
constructor(menu: MenuController) {
  this.menu = menu;
}
openMenu() {
  this.menu.close();
}
```

If there is a menu on the left and right side:

```
toggleMenu() {
  this.menu.toggle('left');
}
```

If there are multiple menus on the same side:

```
<ion-menu id="myMenuId" side="left">...</ion-menu>
<ion-menu id="otherMenuId" side="left">...</ion-menu>

closeMenu() {
  this.menu.close('myMenuId');
}
```
2016-02-04 16:47:05 -06:00
Brandy Carney
858855050d docs(demos): rename nav-push-pop to navigation and use it on the nav as well
references #5311
2016-02-03 18:04:13 -05:00
Adam Bradley
843947933f docs(NavController): remove members from NavCtrl docs 2016-02-01 22:18:29 -06:00
mhartington
257247f9ee docs(navController): update docs 2016-02-01 23:05:05 -05:00
mhartington
a913e3e084 docs(nav): make inputs private 2016-02-01 22:43:03 -05:00
Adam Bradley
ecb5e4f031 test(alert): dismiss alert, then run nav.pop() 2016-01-29 23:31:51 -06:00
Adam Bradley
1c618b51eb feat(overlay): fire the cancel handler when dismissing from backdrop
Renamed action sheet’s button.style to button.role, and added
button.role to alerts. Pass the button’s role in the dismiss method.
Related #5251
2016-01-29 16:11:25 -06:00
Adam Bradley
dbc681fb7c docs(): hide methods not requiring docs 2016-01-27 14:27:36 -06:00
Adam Bradley
e76b55994c fix(input): checked attr can be an empty string or no value 2016-01-27 08:09:37 -06:00
Adam Bradley
42f6b1056f fix(input): update input css/tests 2016-01-27 08:09:37 -06:00
Adam Bradley
8f9727891b fix(tabs): fix overlay present on tabs 2016-01-25 12:54:55 -06:00
Drew Rygh
4d218666fb docs(navController): fix param parsing error
Closes #5137
2016-01-22 10:24:32 -06:00
Adam Bradley
f5f4169db0 fix(NavController): default setRoot/setPages to not animate transitions
setRoot() will be commonly used by side menus, which should not animate between pages.
2016-01-21 16:38:57 -06:00
Adam Bradley
ba0a041e86 fix(NavController): check if view has already been destroyed 2016-01-21 16:32:59 -06:00
Adam Bradley
ee106377fc chore(angular): upgrade to angular 2.0.0-beta.1
Biggest change was that renderer takes  and not just .
2016-01-20 11:15:01 -06:00
Adam Bradley
3213d02375 refactor(NavController): improve transitions, view stages
This refactor made it so view transitions do no step on one another when a new transition happens
during an active transition.
2016-01-19 14:24:49 -06:00
Adam Bradley
6b2f42467f fix(navParams): move navParams to nav-params.ts 2016-01-15 11:03:14 -06:00
Adam Bradley
ff10b3bb49 fix(navCtrl): add more states during transitions 2016-01-15 10:21:18 -06:00
Adam Bradley
02626b9489 chore(): add types to Refresher 2016-01-14 21:04:20 -06:00
Adam Bradley
100b1e79ae chore(): fix Tabs types 2016-01-13 22:40:30 -06:00
Tim Lancina
c4d59002c0 chore(): fix menu types 2016-01-13 21:03:37 -06:00
Tim Lancina
763341a45d chore(): fix NavRegistry types 2016-01-13 17:32:42 -06:00
Adam Bradley
8fdc9ed673 chore(): fix NavController typescript errors 2016-01-12 21:41:37 -06:00
Adam Bradley
00b0f4de56 chore(): fix NavController typescript errors 2016-01-12 16:02:20 -06:00