Commit Graph

169 Commits

Author SHA1 Message Date
Manu Mtz.-Almeida
2ac3b4a3b4 fix(app): navPop() can go back inside modals
fixes #7611
2016-12-03 23:16:19 +01:00
Manu Mtz.-Almeida
eebb062e71 fix(app): navPop() does not go to previous tab
references #7611
2016-12-03 21:40:59 +01:00
Manu Mtz.-Almeida
db20af7498 chore(): fixes compilation 2016-10-01 19:13:36 +02:00
Manu Mtz.-Almeida
8de253a9b1 fix(app): go back navigation can close menus 2016-12-02 14:06:51 +01:00
Manu Mtz.-Almeida
5567191a45 fix(modal): app.navPop() can dismiss modals
fixes #8692
2016-12-02 11:55:26 +01:00
Manu Mtz.-Almeida
6ef6f0aeea fix(toggle): uses PanGesture abstraction
fixes #9428
2016-12-01 16:19:01 +01:00
Manu Mtz.-Almeida
7b2a6d523e fix(app): setScrollDisabled() is a private method 2016-12-01 13:31:58 +01:00
Manu Mtz.-Almeida
5526d70c26 perf(app): adds fast path in isEnabled() and isScrolling() 2016-11-28 18:34:58 +01:00
Manu Mtz.-Almeida
907191bbc2 perf(tabs): improve tab switching response 2016-11-28 09:00:41 -06:00
Manu Mtz.-Almeida
177a089e91 fix(app-root): async disable-scroll is cancelled properly
references #9367
2016-11-26 19:28:57 +01:00
Manu Mtz.-Almeida
5ad7fd1908 perf(rendering): add css containment 2016-11-23 11:08:45 -06:00
Manu Mtz.-Almeida
70f8a8e5eb fix(nav): zIndex in overlays 2016-11-16 12:17:25 -06: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
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05: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
90f9b5c42f fix(config): Cannot read property 'canDisableScroll' of undefined in unit tests 2016-10-20 22:16:25 +02:00
Manu Mtz.-Almeida
35d12efe0b fix(tapclick): several improvements
- refactors code using UIEventManager
- improved performance by using passive event listeners
- fixes isScrolling()
- click tolerance has been increased to match native behavior
- click is immediately prevented if the content is scrolled.
2016-10-20 21:14:45 +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
mhartington
da62b63253 docs(): minor doc updates 2016-10-10 09:13:04 -04:00
Manu Mtz.-Almeida
e2a6f2bbec docs(): remove all prodMode references 2016-10-07 15:43:39 +02:00
Max Lynch
f817ac0f60 chore(storage): Remove storage. Code moving to @ionic/storage 2016-09-26 13:35:10 -05:00
mhartington
4baa5b1e0c docs(): update docs 2016-09-26 14:28:11 -04:00
Adam Bradley
963e83514f fix(platform): fire platform ready on app init 2016-09-22 14:11:06 -05:00
mattbryan9
001c1c9f2c fix(app): corrected paths to theme from app.scss 2016-09-19 08:27:24 -05:00
Adam Bradley
7c05d0c0ba fix(di): update dependency injection and default configs 2016-09-16 00:49:09 -05:00
Adam Bradley
f368abee26 test(ion): fix ion tests 2016-09-13 22:16:26 -05:00
Brandy Carney
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
Adam Bradley
78122c551d refactor(sass): restructure for sass theme updates 2016-09-13 15:54:23 -05:00
Adam Bradley
bf2b6abac5 refactor(export): update component/provider exports 2016-09-13 15:48:25 -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
Dan Bucholtz
e244d09eaa docs(app): documented setEnabled, setScrollDisabled methods
documented setEnabled, setScrollDisabled methods
2016-08-10 09:38:08 -05:00
mhartington
4cfb5a48ee doc(): update private 2016-08-06 12:26:06 -04:00
Adam Bradley
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
Adam Bradley
ff3daeed6c chore(): remove css-scrollbar styles 2016-08-04 12:58:50 -05:00
Brandy Carney
087e2f2480 revert(tabs): undo commit that removes tab sub pages
Fix advanced tabs test

This reverts
https://github.com/driftyco/ionic/commit/743de19ae898e83375b51ef9c376225
c8e63f0ef
2016-07-28 15:28:55 -05:00
Manu Mtz.-Almeida
44ab527f74 fix(backdrop): flicker in UIWebView 2016-07-19 13:33:44 -07: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
0a7d865975 refactor(nav): create NavControllerBase and public abstract class
Use NavController as the public API, and NavControllerBase as the
internal API. Refactored all app/nav/tabs unit tests and created
centralized mocking functions.
2016-07-15 15:54:56 -05:00
Manu Mtz.-Almeida
5909fa4ba5 refactor(gestures): no longer use hammer for drag gestures 2016-07-15 11:23:36 -05:00
Manu Mtz.-Almeida
72c24bc927 feat(gesture-controller): disable/enable scrolling 2016-07-14 00:52:43 +02:00
Adam Bradley
1ae6619367 Merge pull request #7212 from manucorporat/gesture-controller
New Gesture controller
2016-07-13 15:24:12 -05:00
Manu Mtz.-Almeida
9f19023cb9 feat(gesture): Introducing new gesture controller 2016-07-13 22:11:38 +02:00
Adam Bradley
743de19ae8 refactor(tabs): remove tabSubPages UI
The Material Design spec has added “Bottom Navigation”, which is what
Ionic calls “Tabs”. Ionic’s MD mode now follows the updated Material
Design spec with the tabbar placed on the bottom. Additionally, any tab
sub pages do not automatically cover up the tabbar. Covering up the
tabbar is still possible by using a modal, however, it is no longer a
default feature for MD mode.
2016-07-12 20:28:40 -05:00
Adam Bradley
cca3309f4c chore(nav): create nav-interfaces file 2016-07-11 23:24:25 -05:00
Brandy Carney
0d33adafe4 chore(sass): fix linter error 2016-07-07 13:09:52 -04:00