Commit Graph

312 Commits

Author SHA1 Message Date
Andy Joslin
35ad05163a refactor(navBar): use class interpolation 2014-02-13 16:02:00 -05:00
Andy Joslin
e106457e61 feat(modal): add .isShown() method to modal instances
Closes #320
2014-02-13 14:42:35 -05:00
Andy Joslin
110ff9f475 feat(modal): $broadcast 'modal.shown/hidden/removed' from parent scope
Closes #243
2014-02-13 14:40:54 -05:00
Andy Joslin
80ee6c2497 test(tabs): add tab.shown catching to test page
Addresses #588
2014-02-13 12:18:02 -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
Adam Bradley
91fbcdc130 fix to prevent ghostclick of an input under a modal 2014-02-13 10:00:41 -06:00
Andy Joslin
68ffe8b7a3 test(anchorScroll): improve test page 2014-02-13 09:42:57 -05:00
Adam Bradley
fc8ab4b8ea fix(click): event.preventDefault() when setting focus() on an input, closes 583 2014-02-13 01:46:51 -06:00
Adam Bradley
6a962c28a5 added a range within a side menu 2014-02-13 01:40:35 -06:00
Adam Bradley
8b308a1737 feat(event): Created stopEvent directive to use for certain ng-click cases, closes #550 2014-02-12 23:06:36 -06:00
Andy Joslin
9327ac71c7 fix(android): when keyboard comes up, ensure input is in view
This requires us to set fullscreen="false" in our cordova apps.

Uses the resize event to determine when the keyboard has been shown,
then broadcasts an event from the activeElement: 'scrollChildIntoView',
which is caught by the nearest parent scrollView.  The scrollView will
then see if that element is within the new device's height (since the
keyboard resizes the screen), and if not scroll it into view.

Additionally, when the keyboard resizes the screen we add a
`.hide-footer` class to the body, which will hide tabbars and footer
bars while the keyboard is opened.

For now, this is android only.

Closes #314.
2014-02-12 09:45:35 -05:00
Adam Bradley
c27427f336 fix active class for list items and complex items, closes #498 2014-02-11 17:14:13 -06:00
Andy Joslin
61a280bda8 fix(sideMenuContent): make dragContent default to true 2014-02-11 16:22:55 -05:00
Andy Joslin
79387a4e4a fix(refresher): make refresher css not create gap at end of list 2014-02-11 14:29:24 -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
Andy Joslin
1c4d4a8b90 fix(browser): on first hash-set, dont set scrollTop 2014-02-11 09:44:59 -05:00
Andy Joslin
36691bbaeb feat($ionicScrollDelegate): allow anchorScroll to animate with param
Addresses #508
2014-02-11 09:16:29 -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
Adam Bradley
2132d292e7 fix(click): Clicks firing twice, closes #573 2014-02-10 13:36:39 -06:00
Andy Joslin
5d2f24cf59 chore(): make test files use ionic.bundle.js 2014-02-10 13:49:02 -05:00
Adam Bradley
042ad8e271 feature(DOM): Experiment w/ excluding 'ng-scope' and 'ng-isolate-scope' classnames from elements
Ultimate goal is to reduce DOM manipulations. It appears 'ng-scope' and
'ng-isolate-scope' classnames are not required for Angular to work. So
in an effort to reduce any DOM manipulations, we’re going to try to
excluding them from being added to elements and see what comes of it.
2014-02-10 11:20:43 -06:00
Andy Joslin
4cc4a18c66 fix(scrollView): nested scrollViews now work independently
Closes #278
2014-02-10 09:53:40 -05:00
Andy Joslin
38c756b750 refactor(anchorScroll): use getElementById instead of querySelector to fix number ids
Addresses #508
2014-02-10 09:26:45 -05:00
Andy Joslin
4c9a4c0c62 refactor(anchorScroll): only get element ids under scrollEl 2014-02-09 18:06:05 -05:00
Andy Joslin
c2bbd9e96e feat($ionicScrollDelegate): add .anchorScroll() function
Scrolls to the location of element with id matching $location.hash(). If
$location.hash() is blank or the id does not exist, it will scroll to
the top.
2014-02-09 11:37:30 -05:00
Andy Joslin
dc67300547 test(angularOverrides): add tests from jqLite, pass jshint 2014-02-09 11:31:00 -05:00
Adam Bradley
84a8e79b21 create dom trace debug tool 2014-02-08 21:45:41 -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
7f9bfb5a94 feat(sideMenuContent): watch drag-content attribute 2014-02-07 17:00:14 -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
c41e5371e7 refactor(scroll): make refresher be detected after timeout 2014-02-07 12:07:41 -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
Adam Bradley
2eab747d47 feat(toggle): Disable toggle w/ ng-disabled, closes #541 2014-02-06 15:57:25 -06: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
01a456a4ad more tests for click 2014-02-06 13:58:53 -06:00
Andy Joslin
ea289b81c6 fix(ionicScrollDelegate): trigger resize before scrolling to top/bottom
Closes #522
2014-02-06 09:51:35 -05:00
Andy Joslin
0fe4486737 feat(ionicToggle): allow ngDisabled binding 2014-02-06 08:48:12 -05:00
Adam Bradley
aa93047a9e remove test from unused tabBar directive 2014-02-05 20:49:36 -06:00
Adam Bradley
2f6ac4a986 chore(release): v0.9.23 2014-02-05 12:07:01 -05:00
UniRing
bc927e57e7 feat(tabs): allow badges on tabbar via bound badge attr 2014-02-05 11:38:06 -05:00
Andy Joslin
40fcd01e9b fix(ionicView): erase saved scroll for a view on back 2014-02-05 10:42:14 -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
Adam Bradley
00f6b17b7f toggle/checkbox tap improvements 2014-02-01 00:15:10 -06:00
Adam Bradley
7352be9010 set major and minor platform versions in body css 2014-01-31 20:57:26 -06:00