Commit Graph

144 Commits

Author SHA1 Message Date
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
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
Manu Mtz.-Almeida
4f6a9b143c feat(tabs): tabsHideOnSubPages can be modified per tab
references #8970
2016-11-01 02:21:28 +01:00
Alex Muramoto
a49bdf0c8b docs(tabs): add steps to switch tabs from child component (#8829)
* 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

* docs(tabs): add steps to switch tabs from child component
2016-10-22 00:17:48 +02:00
Manu Mtz.-Almeida
4be5d8329e fix(tabs): $tabs-md-tab-font-size is taken into account
fixes #8820
2016-10-21 17:58:27 +02:00
Manu Mtz.-Almeida
d9e8b1bec6 refactor(nav-controller-base): cleanup some logic
NavControllerBase is the core of ionic 2 navigation. It handles all the transitions and it is complicated code to follow.
I am refactoring it to allow future developers and contributors to follow it better.

!node.parent now becomes node.isRoot()

ViewController does not remove itself from the stack, but two new auxiliar function in nav controller: _insertView() and _removeView() are used to add a view to the stack.

And so on...

All e2e and unit tests passing...
2016-10-18 16:36:55 +02:00
Manu Mtz.-Almeida
ba557acb4f fix(nav): ion-nav inside ion-content work properly 2016-10-15 02:59:57 +02:00
Manu Mtz.-Almeida
060748b4cf test(tabs): adds show test
references #6412
2016-10-13 23:59:23 +02:00
Manu Mtz.-Almeida
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
mhartington
58beb4173f docs(): update links 2016-10-12 14:17:35 -04:00
Brandy Carney
9a4c2a0848 test(tabs): add e2e test for badges in tabs
references #8317
2016-10-11 15:49:45 -04:00
Alan Agius
888443ce7f fix(tabs) ion-badge not being given the proper color (#8399) 2016-10-11 15:48:37 -04:00
mhartington
17fdfa80ec docs(): fix broken links 2016-10-10 17:35:07 -04:00
Manu Mtz.-Almeida
db72a7d26b fix(menu): menu's content is resized properly
fixes #8504
2016-10-10 08:45:22 -05:00
Manu Mtz.-Almeida
bcbe03c480 fix(icon): isActive="false" with ios mode
fixes #8435
2016-10-10 08:42:49 -05:00
Max Lynch
5156917d78 fix(tabs): remove from parent nav when destroyed 2016-10-06 19:23:38 -05:00
Manu Mtz.-Almeida
ac8854772a fix(tabs): add TabHighlight to IONIC_DIRECTIVES
fixes #8294
2016-09-30 23:48:08 +02:00
Dan Bucholtz
248d0c1a9c chore(e2e): add css back to e2e tests where it was missing
add css back to e2e tests where it was missing
2016-09-27 16:48:27 -05: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
ed221eff1d refactor(nav): queue based transitions 2016-09-13 17:13:43 -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
29758e6705 docs(nav/tabs): update links to use correct URLs
closes driftyco/ionic-site#768
2016-08-24 12:02:15 -04: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
8eb0667b79 test(tabs): fix navCtrl reference 2016-08-04 20:17:09 -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
Brandy Carney
15d69c2ab5 docs(sass): brian lied to me, update sass syntax
references driftyco/ionic-site#613
2016-08-03 17:50:42 -04:00
Brandy Carney
b7c45482c6 docs(sass): add the correct documentation syntax for the sass vars
references driftyco/ionic-site#613
2016-08-03 17:07:44 -04:00
Brandy Carney
ccf6ae5dd3 chore: fix linter error 2016-08-01 16:27:30 -04:00
Brandy Carney
eea7e6ba69 feat(tabs): add the transition for material design tabs
refactored the sass naming to use `text-capitalization` instead of
`text-transform` since it now has an actual `transform` property and I
think this will be less confusing than having a `text-text-transform`
and a `text-transform`.

references #7455
2016-08-01 16:22:20 -04:00
Dan Bucholtz
8bf1a353fd docs(nav, tabs): moved details from component docs to api docs where applicable (#7471)
moved details from component docs to api docs where applicable
2016-08-01 13:44:56 -05:00
Brandy Carney
cab7b0d8b5 refactor(tabs): fix undefined sass variables 2016-07-28 23:35:06 -05:00
Brandy Carney
af01841c86 refactor(tabs): update Sass variable naming to be more consistent
Added comments on each Sass variable.

references #5651 references #7455
2016-07-28 23:11:26 -05:00
Brandy Carney
4dc53a2d9d refactor(tabs): change the material design tabs to act as bottom navigation
Update tabs to reflect the material design bottom navigation spec:
https://material.google.com/components/bottom-navigation.html#bottom-nav
igation-usage

BREAKING CHANGES:

Material design mode defaults have changed to the following:

```
tabsHighlight: false,
tabsPlacement: 'bottom',
tabsHideOnSubPages: false
```

`tabsHighlight` can now be passed as an attribute on the `ion-tabs`
element, this allows for tabs to be added in multiple places inside of
an app and enable the highlight on some of them.

references #7455
2016-07-28 21:57:35 -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
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
Brandy Carney
99efa3687f fix(tabs): add sass variable for inactive opacity and pass it to the colors loop 2016-07-15 17:43:02 -04:00
Adam Bradley
0386476879 test(nav): clean up NavController tests 2016-07-15 15:55:49 -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
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
dd969a2958 fix(tabs): make the text color opaque instead of the entire button
this affects `md` and `wp` mode.

fixes #6638
2016-07-08 17:20:18 -04:00