54 Commits

Author SHA1 Message Date
17c38862cc fix(Nav): fixes swipeBackEnabled as attribute
closes #5653
2016-03-18 16:04:28 +01:00
a237c16bc0 chore(): use relative imports in tests 2016-03-02 15:43:51 -06:00
c883a2ae91 chore(): update Ionic imports in tests 2016-02-22 17:45:17 -06:00
ea5172527b chore(gesture): null hammer on unlisten 2016-02-21 21:35:24 -06:00
004e63555e refactor(menu): improve menu get lookup
If a `menuId` is not provided then it'll return the first menu found.
If a `menuId` is `left` or `right`, then it'll return the enabled menu
on that side. Otherwise, if a `menuId` is provided, then it'll try to
find the menu using the menu's `id` property. If a menu is not found
then it'll return `null`. If a menu id was provided, but was not found,
it will not fallback to finding any menu. Closes #5535
2016-02-19 23:37:31 -06:00
5f31df05de test(menu): add karma tests 2016-02-19 20:36:05 -05:00
f0b5838880 test(menu): update test to use 3 menus and menu toggle by side
references #5535
2016-02-19 16:18:55 -05:00
5e1eeff40d test(menu): add test that reproduces issue with multiple menus and navbar toggles 2016-02-19 14:47:42 -05:00
0d47a1b79f feat(menu): allow persistent menus
Closes #5204
2016-02-15 21:40:16 -06:00
c02fb51d04 feat(menu): close any opened menu 2016-02-15 19:42:30 -06:00
ff24152524 fix(menu): add/remove gesture listeners per enabled menu 2016-02-15 13:23:01 -06:00
5f254f285f chore(e2e): make typescript and e2e friends 2016-02-12 11:37:39 -06:00
17c1846f05 test(menu): fix menu swipe enabling on right side menu 2016-02-10 11:01:41 -06:00
7c10c4dd42 chore(): update modal tests 2016-02-10 01:56:51 -06:00
da18868636 refactor(animations): inline css animations 2016-02-09 16:23:01 -06:00
86f793dcee test(menu): fix snapshot test 2016-02-05 16:20:27 -05:00
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
72699dbbb4 fix(menu): fix scrolling page w/ side menus
Improved which angles should allow the side menu to open, depending if
it’s a left or right menu. Also check if the distance of the drag is
longer than a side menu would get. For example, scrolling vertically
for a long ways would have a long distance, but triggering a side menu
to open would be a short distance.

Also ensure that a side menu can always be closed incase something goes
wrong.

Closes #5272
2016-02-02 16:41:35 -06:00
42f6b1056f fix(input): update input css/tests 2016-01-27 08:09:37 -06:00
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
0ef8c78737 add swipeEnabled input to menu to set default swipeable of side menu. add swipeEnable() api to enable disable particular side menu swipeable 2016-01-18 12:29:57 +08:00
7dd65f3571 refactor(icon): logo ionicons use logo- prefix rather than suffix 2016-01-11 14:42:39 -06:00
883e1b68b1 refactor(icon): rename icon to ion-icon
Closes #855
2016-01-05 22:27:07 -06:00
1e427443ad chore(): fix overlay demos/tests 2015-12-30 20:38:27 -06:00
c136d2143a alert wip 2015-12-23 23:11:40 -06:00
8b35fae3bd fix(typo): change deTEction 2015-12-18 11:04:30 -06:00
c118009a7c fix(menu): run gestures outside of zone
Closes #755
2015-12-18 10:58:08 -06:00
5d6d9b9610 chore(upgrad): ng alpha52 and case-sensitive templates 2015-12-10 22:52:55 -06:00
ce2e4a3e32 fix back button, add deprecation warnings 2015-12-08 15:48:40 -06:00
8b0316cbb2 fix menu-toggle style in content 2015-12-08 14:20:31 -06:00
8b693ce836 toolbar button updates 2015-12-07 11:18:00 -06:00
5349b3e034 feat(menu): opening event EventEmitter
Closes #632
2015-11-23 20:23:52 -06:00
a72fce0441 test(menu): menu with popup overlay 2015-11-23 12:38:04 -06:00
103c183190 fix(keyboard): close keyboard before transition
Closes #616
2015-11-23 12:21:47 -06:00
46b161519a test(): right side only menu icon 2015-11-04 14:45:35 -06:00
d3e9980f9c fix(menu): enabling/disabling 2015-10-31 15:02:59 -05:00
2c270b3722 feat(menu): enable/disable side menus 2015-10-31 14:41:27 -05:00
eb46236b8e test(setRoot): close menu on nav resolve 2015-10-30 15:58:39 -05:00
cd4f683ce5 feat(menu): push type. Fixes #380 2015-10-29 13:33:29 -05:00
03cb1a7a5b refactor(): IonicForm/IonicKeyboard
Closes #224
2015-10-09 11:29:58 -05:00
26e3554d56 rename IonicView to Page 2015-10-07 13:44:53 -05:00
1befe94802 alpha39 updates 2015-10-07 10:51:08 -05:00
f497608768 chore(item): rename forward-icon to detail-push 2015-10-06 10:53:36 -05:00
3a0a6b6ee7 Removed right menu in basic test. #226 2015-09-30 18:31:47 -05:00
1a60540f2b feat(menu): right side menus 2015-09-22 12:36:42 -05:00
3bd0b5c8ac chore(): use class selectors in e2e 2015-09-22 11:25:27 -05:00
50c82a7de9 chore(): remove unneeded e2e ids 2015-09-22 11:19:06 -05:00
d63bcf29f4 css updates after snapshot 2015-09-18 23:12:55 -05:00
3364414d24 use padding attribute 2015-09-18 21:58:44 -05:00
fc89e86c83 iOS title centering improvements wip 2015-09-15 16:14:10 -05:00