Commit Graph

153 Commits

Author SHA1 Message Date
Brandy Carney
932ab42eb1 docs(menu): remove basic menu usage doc link 2016-04-11 22:05:05 -04:00
Brandy Carney
203b07809e Revert "fix(sass): remove global imports from components"
This reverts commit dad2155ecd.
2016-04-11 13:24:58 -04:00
Brandy Carney
dad2155ecd fix(sass): remove global imports from components
globals.mode is already imported in the components.mode file, so it
doesn’t need to be imported per component

fixes #5931
2016-04-11 11:59:44 -04:00
Adam Bradley
acc6321d0d chore: add ViewEncapsulation.None to components
Closes #5884
2016-04-10 20:38:04 -05:00
Adam Bradley
4e8ecae83c chore: add ChangeDetectionStrategy.OnPush strategy
Close #5885
2016-04-10 00:28:50 -05:00
Adam Bradley
6f3b9bef82 style(tslint): tslint updates 2016-04-06 21:28:52 -05:00
Manu Mtz.-Almeida
17c38862cc fix(Nav): fixes swipeBackEnabled as attribute
closes #5653
2016-03-18 16:04:28 +01:00
Brandy Carney
d3d689ae11 style(sass): remove all PropertySortOrder errors from linter
references #5797
2016-03-14 15:56:19 -04:00
Brandy Carney
f7b52eeee1 chore(sass): update sass to match linter config
references #5797
2016-03-10 22:42:38 -05:00
Adam Bradley
e639457654 fix(overlays): update keyboard focus management 2016-03-05 20:32:21 -06:00
Brandy Carney
62c7199fd1 Merge branch '2.0' into windows-mode 2016-03-03 13:12:52 -05:00
Tim Lancina
a237c16bc0 chore(): use relative imports in tests 2016-03-02 15:43:51 -06:00
Brandy Carney
2b77d52061 docs(API): clean up API docs 2016-03-01 19:24:33 -05:00
Brandy Carney
c43a1a2d77 Merge branch '2.0' into windows-mode 2016-02-24 17:37:42 -05:00
Brandy Carney
138e8763dc feat(windows): clean up action sheet UI
references #5565
2016-02-24 14:46:45 -05:00
mhartington
96d35ffbe7 docs(menuTypes): make private from dgeni 2016-02-24 14:12:06 -05:00
Brandy Carney
cd7d627f61 feat(windows): add menu Sass component
references #5565
2016-02-23 19:30:50 -05:00
Tim Lancina
c883a2ae91 chore(): update Ionic imports in tests 2016-02-22 17:45:17 -06:00
Adam Bradley
ea5172527b chore(gesture): null hammer on unlisten 2016-02-21 21:35:24 -06:00
Adam Bradley
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
Brandy Carney
8564d79a7d fix(menu): fix enabled check
references #5535
2016-02-19 20:36:27 -05:00
Brandy Carney
5f31df05de test(menu): add karma tests 2016-02-19 20:36:05 -05:00
Brandy Carney
f0b5838880 test(menu): update test to use 3 menus and menu toggle by side
references #5535
2016-02-19 16:18:55 -05:00
Brandy Carney
a2b7a21a95 feat(menu): grab the menu by side only if it is enabled
this removes the need to pass an id when you enable one menu

references #5535
2016-02-19 16:18:31 -05:00
Brandy Carney
5e1eeff40d test(menu): add test that reproduces issue with multiple menus and navbar toggles 2016-02-19 14:47:42 -05:00
Adam Bradley
93b456145c chore(gestures): add isListening to gestures 2016-02-16 22:20:14 -06:00
Adam Bradley
80fa94bd41 chore(types): add types to slide gestures 2016-02-16 22:08:22 -06:00
Adam Bradley
d33db81ed6 chore(menu): rename swipe progress steps 2016-02-16 20:21:33 -06:00
Adam Bradley
0d47a1b79f feat(menu): allow persistent menus
Closes #5204
2016-02-15 21:40:16 -06:00
Adam Bradley
c02fb51d04 feat(menu): close any opened menu 2016-02-15 19:42:30 -06:00
Adam Bradley
ff24152524 fix(menu): add/remove gesture listeners per enabled menu 2016-02-15 13:23:01 -06:00
Adam Bradley
3bb09cee07 feat(MenuController): create isOpen() and isEnabled()
Closes #5390
2016-02-13 00:54:01 -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
5f254f285f chore(e2e): make typescript and e2e friends 2016-02-12 11:37:39 -06:00
Brandy Carney
17c1846f05 test(menu): fix menu swipe enabling on right side menu 2016-02-10 11:01:41 -06:00
Adam Bradley
7c10c4dd42 chore(): update modal tests 2016-02-10 01:56:51 -06:00
Adam Bradley
da18868636 refactor(animations): inline css animations 2016-02-09 16:23:01 -06:00
Brandy Carney
86f793dcee test(menu): fix snapshot test 2016-02-05 16:20:27 -05:00
mhartington
c7a58f0dfc docs(menu): update docs 2016-02-05 15:06:54 -05:00
Adam Bradley
fc49d1aa29 docs(menu): update menuToggle menuClose docs 2016-02-04 20:32:24 -06:00
Adam Bradley
9f906ae8ae docs(MenuController): update MenuController docs 2016-02-04 20:15:40 -06: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
Adam Bradley
a42836340a fix(menu): only close when open on enable change 2016-02-04 12:22:09 -06:00
Adam Bradley
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
mhartington
d8a4ec3893 docs(menu, menuClose, menuToggle): update docs 2016-02-01 16:27:26 -05:00
Adam Bradley
dbc681fb7c docs(): hide methods not requiring docs 2016-01-27 14:27:36 -06:00
Adam Bradley
42f6b1056f fix(input): update input css/tests 2016-01-27 08:09:37 -06:00
Brandy Carney
0b0500d242 fix(menu): fix right side menu - platform becomes _platform
Closes #5147
2016-01-25 17:09:57 -05:00
David Kronmueller
504540f51c feat(menu): restrain menu slide start to a specific angle
The menu curently opens and closes at any angle of slide action. In case the menu has enough items
to create a vertical scrollbar it makes it impossible for the user the scroll vertically without
affecting the slide behavior of the menu. This fix restrains the menu open/close to a specific
angle.

#5180
2016-01-25 14:22:38 +01:00