Commit Graph

584 Commits

Author SHA1 Message Date
Andy Joslin
5966dbf43e feat(ionTabs): add available tabs-item-hide class
Closes #395
2014-03-24 12:07:53 -06:00
Adam Bradley
60e4533313 fix(tap): Trigger clicks if touch/click held for more than 250ms, closes #791 2014-03-24 12:39:18 -05:00
Andy Joslin
dd2c0c776b refact(ionicBar): make tapScrollToTop work on navBar too
Closes #750
2014-03-24 07:57:52 -06:00
Adam Bradley
24160aa0bd fix(tabs): Renamed .tab-item active state from .active to .tab-item-active, closes #866 2014-03-24 08:20:31 -05:00
PatrickJS
fa7d3a651a chore($LocationDecorator): out of global scope
Closes #867
2014-03-22 09:57:19 -05:00
Andy Joslin
57d71ed6c3 feat($ionicLoading): implement backdrop class
Closes #837.
2014-03-21 16:00:38 -05:00
Adam Bradley
5afcc8a3bd remove body.popup-open w/ timeout 2014-03-21 15:49:04 -05:00
Andy Joslin
e04efcc11b docs(ionicLoading): add setContent to documentation 2014-03-21 12:41:48 -05:00
Andy Joslin
cd3d932367 docs(ionicBar, ionicNavBar): add ng-click to usage example 2014-03-21 11:38:43 -05:00
Andy Joslin
4dd952a54d refact(ionScroll): add $onScroll binding
Closes #865
2014-03-21 10:08:09 -05:00
Andy Joslin
f594f653d5 refactor(controllers): only assign to parent scope when needed 2014-03-21 10:08:09 -05:00
Andy Joslin
38acea337a refactor(controllers): assign to parent scope if possible 2014-03-21 10:08:09 -05:00
Andy Joslin
f083eaf7f7 refactor(ionNavButtons): compile in the correct context 2014-03-21 09:15:51 -05:00
Andy Joslin
6d403efb48 refactor(ionHeaderBar): make sure tapScrollToTop works even on rootScope 2014-03-21 09:15:51 -05:00
Andy Joslin
c653e83cec fix(ionList): only stop side menu drag if canSwipe
Closes #709
2014-03-21 07:08:26 -05:00
Adam Bradley
fe44a7d98b rename .item-drag to .item-reorder, further standardize item editing 2014-03-20 16:02:50 -05:00
Adam Bradley
0027bf7612 Merge branch 'master' of https://github.com/driftyco/ionic
Conflicts:
	js/ext/angular/test/list.html
2014-03-20 14:21:54 -05:00
Adam Bradley
07c824db8d fix(item): Restructure item editing css for added reusability and organization 2014-03-20 14:18:12 -05:00
Max Lynch
dc2b24ed6a feat(popup): Support for programatically closing popup. Fixes #854 2014-03-20 12:01:53 -05:00
Max Lynch
7510777156 fix(listView): send index on delete. Fixes #849 2014-03-20 09:48:15 -05:00
Andy Joslin
4e1140702b ionicScrollController: do not try to remember scorll if no viewId 2014-03-19 16:51:34 -06:00
Max Lynch
73b750fb37 fix(listView): only allow one swipeable item open. Fixes #763 2014-03-19 17:44:37 -05:00
Andy Joslin
b70543b78d refactor(ionNavBackButton): only set scope variable when needed 2014-03-19 16:42:10 -06:00
Andy Joslin
e94d400648 feat(content): automatically add/remove has-* classes to content
Also, do manual transclusion on items that would be 'deep' directives -
to fix a problem with transcluding & requiring parent elements.

Closes #619
2014-03-19 16:32:24 -06:00
Andy Joslin
b6a73f0807 test(ionicScrollController): fix PhantomJS weirdness 2014-03-19 13:25:35 -06:00
Andy Joslin
abe9e65c6f docs(ionicScrollController): make rememberScrollPosition example clearer 2014-03-19 13:06:35 -06:00
Andy Joslin
0b69ac549a refact(scroll): remove high priority 2014-03-19 12:49:14 -06:00
Andy Joslin
245e2199c6 docs(ionicScrollController): write docs 2014-03-19 12:21:18 -06:00
Andy Joslin
dbe4e3901d feat(ionic): remove all delegates
BREAKING CHANGE: $ionicScrollDelegate, $ionicSlideBoxDelegate, and
$ionicSideMenuDelegate have been removed.

  - $ionicScrollDelegate has been changed to $ionicScrollController.
    Documentation:
    [ionContent](
    http://ajoslin.github.io/docs/nightly/api/directive/ionContent),
    [ionScroll](
    http://ajoslin.github.io/docs/nightly/api/directive/ionScroll)

    Change your code from this:

    ```html
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope, $ionicScrollDelegate) {
      $scope.scrollBottom = function() {
        $ionicScrollDelegate.scrollBottom();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see docs -->
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.scrollBottom = function() {
        $scope.$ionicScrollController.scrollBottom();
      };
    }
    ```

  - $ionicSideMenuDelegate has been changed to
    $ionicSideMenusController. Documentation:
    [ionSideMenus](http://ajoslin.github.io/docs/nightly/api/directive/ionSideMenus)

    Change your code from this:

    ```html
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope, $ionicSideMenuDelegate) {
      $scope.toggleLeftMenu = function() {
        $ionicSideMenuDelegate.toggleLeft();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see documentation -->
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.toggleLeftMenu = function() {
        $scope.$ionicSideMenuController.toggleLeft();
      };
    }
    ```

  - $ionicSlideBoxDelegate has been removed and upgraded to
    $ionicSlideBoxController. It had only one method that
    was unneeded.  [Documentation](
    http://ajoslin.github.io/docs/nightly/api/directive/ionSlideBox)
2014-03-19 11:51:07 -06:00
Adam Bradley
6ebfe776bc fix(popup): Ensure popup is usable on top of a modal, closes #838 2014-03-19 10:55:54 -05:00
Adam Bradley
f744d9ebcf feat(navclear): Ability to disable the next view transition and back button 2014-03-18 21:51:32 -05:00
Adam Bradley
ad86651531 created menuClose and navClear directives 2014-03-18 21:44:59 -05:00
Andy Joslin
532d473e35 feat(ion-content): watch padding attribute 2014-03-18 15:03:42 -06:00
Andy Joslin
ae57b2b81a test($ionicScrollDelegate): remove xdescribe 2014-03-18 14:58:13 -06:00
Andy Joslin
83f4776f53 chore: remove animation & type attributes, standard controller names 2014-03-18 14:54:21 -06:00
Andy Joslin
5117d5673a refactor(ionContent): remove has-* classes
BREAKING CHANGE: ion-content's has-header/footer/tabs attributes
no longer work.

Use the classes 'has-header', 'has-subheader', 'has-footer', and
'has-tabs' to modify the positioning of the ion-content relative
to surrounding elements.

Before: `<ion-content has-header="true">`

After: `<ion-content class="has-header">`
2014-03-18 14:49:12 -06:00
Andy Joslin
7b410eaa61 refactor(ionicBar): fix controller being assigned to parent scope 2014-03-18 14:49:12 -06:00
Adam Bradley
85b69fd2c4 sideMenu menuNav directive to stop next view animation and close side-menu 2014-03-17 23:06:46 -05:00
Max Lynch
25f8829949 Cleanup whitespace 2014-03-17 19:43:38 -05:00
Max Lynch
dddc34d8d2 fix(popup): focus popup. Fixes #820 2014-03-17 19:41:36 -05:00
Andy Joslin
b630214fdf refactor(ionTabBar): remove tab.shown and tab.hidden events
Instead, use `on-select` and `on-deselect` attribute callbacks.

Alternatively, listen for $scope.$on('$destroy') in a controller inside
your tab.
2014-03-17 14:41:51 -06:00
Andy Joslin
e9bf43a813 docs: sort by groups by default 2014-03-17 14:22:16 -06:00
Andy Joslin
cdcbea3860 refactor(ionNavButtons): remove elements from bar on scope destroy 2014-03-17 12:18:08 -06:00
Andy Joslin
6662f6effd docs: simplify apis where possible 2014-03-17 11:56:21 -06:00
Andy Joslin
bd66fc8b28 docs(): remove group tag 2014-03-17 10:24:28 -06:00
Andy Joslin
5a0efecef6 feat($ionicScrollDelegate): rememberScrollPosition, scrollToRememberedPosition
/**
 * @ngdoc method
 * @name $ionicScrollDelegate#rememberScrollPosition
 * @description
 *
 * When this scroll area is destroyed, its last scroll position will be
 * saved using the given id.
 *
 * @param {string} id The identifier for this saved scroll position.
 */

/**
 * @ngdoc method
 * @name $ionicScrollDelegate#scrollToRememberedPosition
 * @description
 *
 * If a scroll position was remembered using the given id, loads the
 * remembered scroll position and scrolls there.
 *
 * @param {string} id The identifier for this saved scroll position.
 * @param {boolean=} shouldAnimate Whether to animate the scroll.
 */
2014-03-17 08:39:23 -06:00
Andy Joslin
cc0a4ef775 test(sideMenu2): update test to reflect changes 2014-03-17 07:48:56 -06:00
Andy Joslin
4715a118e0 refactor($ionicScrollDelegate): make it a factory from current scope
BREAKING CHANGE: $ionicScrollDelegate no longer works globally; you must
create a new instance of each time you use it.  The actual methods on
each instance of $ionicScrollDelegate are the same, however.

Change your code from this:

```js
function MyController($scope, $ionicScrollDelegate) {
  $scope.scrollTop = function() {
    $ionicScrollDelegate.scrollTop();
  };
}
```

To this:

```js
function MyController($scope, $ionicScrollDelegate) {
  var delegate = $ionicScrollDelegate($scope);
  $scope.scrollTop = function() {
    delegate.scrollTop();
  };
}
```
2014-03-17 07:21:20 -06:00
Andy Joslin
aa30faf863 fix(ionTab): stop browser-tooltip from appearing due to title attr
Closes #804
2014-03-15 18:57:10 -06:00
Andy Joslin
af7515bdfe docs(ionNavBackButton): add previous title back button example 2014-03-15 13:42:10 -06:00