Commit Graph

109 Commits

Author SHA1 Message Date
flmu
3715bfcea7 refactor(ionInfiniteScroll): make it primarily use own attrs, add tests 2014-03-04 11:04:05 -07:00
Max Lynch
d58c9560c0 Travis! Don't die on me! 2014-03-03 11:50:01 -06:00
Max Lynch
739292d519 Fixed click event for PhantomJS 2014-03-03 11:34:04 -06:00
Max Lynch
9ef52edb26 Added tests for toggle 2014-03-03 11:17:00 -06:00
Max Lynch
618bbcb084 Removed iit on unit test 2014-03-01 15:55:36 -06:00
Max Lynch
e538fa77c9 Draggable slider working 2014-03-01 15:52:47 -06:00
Tim Lancina
fa05f4b2ab watchCollection on right- and leftButtons to align headerBar title 2014-02-28 11:26:38 -06:00
Tim Lancina
4a3f75514d fine travis, let's try waiting longer 2014-02-27 16:43:35 -06:00
Tim Lancina
6754a83a6a fix headerBar title align 2014-02-27 16:32:08 -06:00
Andy Joslin
d9f2c9f70e test(tabbar): remove ddescribe 2014-02-26 16:15:17 -05:00
Andy Joslin
bcca397c39 fix(ionTabBar): fix iconOn and iconOff being wrong 2014-02-26 16:09:34 -05:00
Adam Bradley
cee42e3bc7 back button test fixes 2014-02-26 11:49:52 -06:00
Andy Joslin
8354d42b4b feat(ionNavAnimation): <a href="#/page" ion-nav-animation="slide-in-up"> 2014-02-26 08:40:02 -05:00
Adam Bradley
7deefe1ddb fix(back-button): Fade in/out back button instead of animating left/right, closes #624 2014-02-25 13:03:51 -06:00
Andy Joslin
c4549bae4f refactor(tabs): dont pass href attribute to ionTabNav 2014-02-25 12:32:58 -05:00
Andy Joslin
3419e40e52 refactor(tabs): dont show icon if no icon defined 2014-02-25 12:04:58 -05:00
Andy Joslin
0f1b6f47b8 fix(ionTabs): cleanup and fix many issues
Closes #597. Fixes #634. Fixes #334. Fixes #175. Fixes #646. Closes #647.
2014-02-25 10:54:41 -05:00
Andy Joslin
49e0dac999 feat(ionContent): use child scope instead of isolate scope
Adds new '$ionicBind' service, which takes an object containing
binding definitions (similar to angular directive isolate scope
definition).  Allows binding of any directive attribute & expressions
from a scope, letting us do normal attribute -> scope binding
without having to create isolate scopes.

Closes #555. Closes #669
2014-02-24 11:11:03 -05:00
Andy Joslin
7977d5391c test(ionSideMenu): test transclusion of content's scope 2014-02-24 06:57:39 -05:00
Adam Bradley
17e335e33a disabling some tests 2014-02-23 23:03:26 -06:00
Adam Bradley
98a86f2186 tmp test fixes for Android user-agent in saucelabs 2014-02-23 23:00:21 -06:00
Andy Joslin
465ea76969 fix(navBar): animations, hide back button, no flicker
Closes #653
2014-02-21 12:45:27 -05:00
Adam Bradley
7981e8e294 fix tab icon test 2014-02-21 09:50:09 -06:00
Adam Bradley
a0492f319c fix tabBar tests 2014-02-20 14:58:48 -06:00
Max Lynch
5f9a80fc01 removed unnecessary module injection 2014-02-20 09:50:13 -08:00
Max Lynch
89ec1b954e fix(htmlSanitize) - Added ngSanitize back, fixes #641 2014-02-20 09:48:55 -08:00
Andy Joslin
2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00
Andy Joslin
7cf4eef961 refactor(navBar): do not animate if there is no navDirection 2014-02-17 22:05:49 -05:00
UniRing
3d7011eb19 test(navBar): add tests for changing title, left/right buttons
Closes #622. Closes #623.
2014-02-17 16:52:10 -05:00
Andy Joslin
ebae638dfb test(ionicSideMenu): remove ddescribe 2014-02-17 13:13:32 -05:00
Andy Joslin
bfefc69f3c feat(sideMenu): allow and watch attrs width & is-enabled 2014-02-17 13:03:17 -05:00
Andy Joslin
a5d964734f fix(scrollView): fix error from checking device before ready 2014-02-17 11:57:20 -05:00
Andy Joslin
749cd3829c fix(navBar): animations work properly
Starting a couple of versions ago, animations in navbar stopped working.
I took this as a chance to fix this, and ddo a refactor to make the code
more modular and testable.

Lots of manual dom manipulation was offloaded to angular directives, and
now we will not have bugs with end-user using interpolated class
attribute on their own nav-bar and overriding our own manually added
classes.
2014-02-17 09:11:52 -05:00
Andy Joslin
35ad05163a refactor(navBar): use class interpolation 2014-02-13 16:02:00 -05:00
Andy Joslin
69fda4e526 fix(tabs): broadcast tab.shown/tab.hidden to only child scopes
Addresses #588
2014-02-13 12:15:41 -05:00
Andy Joslin
c119498d1b feat($ionicScrollDelegate): add scrollTo(left,top,animate) to delegate
Also moves $ionicScrollDelegate.register to $ionicScroll controller,
and makes `<scroll>` directive be registered with $ionicScrollDelegate.
2014-02-11 13:40:45 -05:00
Andy Joslin
03bf67d42f test(ionicContent): mock scrollView.{scrollTo,getValues} 2014-02-11 11:49:37 -05:00
Adam Bradley
74a05a0338 fix(backButton): able to hide back button if any back button attr set in navBar, closes #564 2014-02-10 15:07:20 -06:00
Andy Joslin
8581d162a3 refactor(content): set saved-scroll after timeout, only set valid values
Addresses #439
2014-02-08 00:19:03 -05:00
Andy Joslin
b11e0f512b feat(tabs): allow tab badge-style attribute to set badge class 2014-02-07 13:16:02 -05:00
Andy Joslin
0facb120c7 feat(tab): allow html in tab title attribute
Closes #528
2014-02-06 22:25:12 -05:00
Adam Bradley
2d39418d0b fix(backButton): Do not show back button if no attributes set, closes #549 2014-02-06 20:31:47 -06:00
Andy Joslin
2ac71aa8ee chore: delete unused test file 2014-02-06 18:36:18 -05:00
Andy Joslin
e755623331 feat(ionic): remove angular-sanitize (ngSanitize) as dependency
Add small bindHtmlUnsafe directive without html checking
2014-02-06 15:50:12 -05:00
Andy Joslin
7f4b28d9da feat(list): reordering scrolls page, reordering performance better
Fixes #521. Reordering now uses webkitTransform instead of
element.style.left.  Additionally, as you drag the drag-element to the
top or bottom of the scroll-area, it will scroll it up or down as
allowed.

Refactors necessary: Common code from `<content>` and `<scroll>` moved
into js/ext/angular/controllers/ionicScrollController.  Then `<content>`
and `<scroll>` expose the controller, and `<list>` can require it.

`<list>` then uses the controller (if exists) to pass the scrollView and
scrollEl to ReorderDrag, and ReorderDrag uses that to scroll.

Additionally, js/ext/angular/test/controller/ionicScrollController tests
much functionality that was untested before.
2014-02-06 15:04:23 -05:00
Adam Bradley
aa93047a9e remove test from unused tabBar directive 2014-02-05 20:49:36 -06:00
UniRing
bc927e57e7 feat(tabs): allow badges on tabbar via bound badge attr 2014-02-05 11:38:06 -05:00
Andy Joslin
456dc2b9f2 chore(build): more ci server automation 2014-02-04 22:33:42 -05:00
Adam Bradley
738ace8969 fix(navBar): Back button w/ text to use inner <i> 2014-02-04 20:57:57 -06:00
Andy Joslin
2d1b71c8e2 feat(content): remember scroll of previous page
`content` directive stores scroll in view page history.

The history is passed down through $viewContentLoaded event, which is
broadcasted by navView directive when it loads a page.
2014-02-04 08:48:03 -05:00