Commit Graph

250 Commits

Author SHA1 Message Date
Adam Bradley
da0ad75779 set onScroll when scrolling to text input, closes #1213 2014-04-28 10:04:24 -05:00
Andy Joslin
90da2da66f fix(ionList): make reorder position work if list is offset
Addresses #1202
2014-04-25 07:05:27 -06:00
Adam Bradley
ae3318a081 refactor(keyboard): Scroll to inputs hidden by keyboard 2014-04-24 20:22:16 -05:00
Andy Joslin
934158baf5 virtualScroll: non-full-featured version, to start testing 2014-04-23 17:52:51 -06:00
Max Lynch
b220f7b30d Bringing the interval down again 2014-04-19 16:49:53 -05:00
Max Lynch
1fb28347a5 Decreasing scroll event interval 2014-04-19 16:47:55 -05:00
Adam Bradley
aac1d1773f Merge branch 'tap-refactor' 2014-04-17 15:23:58 -05:00
Tim Lancina
49d1e200a3 don't show whitespace before keyboard shows 2014-04-17 14:43:04 -05:00
Max Lynch
f7b25aa9fa Fixed infinite scroll issues 2014-04-17 12:41:22 -05:00
Adam Bradley
ee1c8dc8b7 tap updates for select elements 2014-04-17 11:07:14 -05:00
Adam Bradley
43627f77c1 created containsOrIsTextInput 2014-04-17 09:49:08 -05:00
Adam Bradley
d0047cda44 refactor(tap): Refactor tap system for improved tap/click/keyboard/scroll/focus
Overhaul of the tap system so the keyboard does not cover up focused
inputs, correctly bring up the keyboard on text input focus, disabling
focus during scroll, disabling clicks after a hold then scroll,
removing 300ms delay without additional event handlers on each element,
etc. Refactored the tap/click/scroll/activator events for more
testability, along with adding more tests.
2014-04-17 08:26:25 -05:00
Andy Joslin
14a2790749 refactor(): reorganize source files 2014-04-14 10:47:27 -06:00
Adam Bradley
8af018b1fa fix(scroll): Allow scrolling when touchstart target is an input, #1078 2014-04-08 14:28:12 -05:00
Andy Joslin
d00aaa5945 fix(ionHeaderBar): make it align after elements properly load
Addresses #945.
2014-04-08 13:21:59 -06:00
Andy Joslin
986dbac893 refactor(ionList): more expressive, declarative (breaking change)
Closes #1024.

BREAKING CHANGE: ion-list syntax has changed in favor of simplicity &
flexibility.

Relevant documentation:
[ionList](http://ionicframework.com/docs/api/directive/ionList),
[ionItem](http://ionicframework.com/docs/api/directive/ionItem),
[ionOptionButton](http://ionicframework.com/docs/api/directive/ionOptionButton),
[ionReorderButton](http://ionicframework.com/docs/api/directive/ionReorderButton),
[ionDeleteButton](http://ionicframework.com/docs/api/directive/ionDeleteButton),
[$ionicListDelegate](http://ionicframework.com/docs/api/service/$ionicListDelegate).

To migrate, change your code from this:

```html
<ion-list option-buttons="[{text:'hello',type:'button-positive',onTap:tap()}]"
          on-delete="onDelete(el)"
          delete-icon="ion-minus-circled"
          can-delete="true"
          show-delete="shouldShowDelete"
          on-reorder="onReorder(el, startIndex, toIndex)"
          reorder-icon="ion-navicon"
          can-reorder="true"
          show-reorder="shouldShowReorder">
  <ion-item ng-repeat="item in items">
    {{item}}
  </ion-item>
</ion-list>
```

To this:

```html
<ion-list show-delete="shouldShowDelete"
          show-reorder="shouldShowReorder">
  <ion-item ng-repeat="item in items">
    {{item}}
    <ion-delete-button class="ion-minus-circled"
                       ng-click="onDelete(item)">
    </ion-delete-button>
    <ion-reorder-button class="ion-navicon"
                       ng-click="onReorder(item, $fromIndex, $toIndex)">
    </ion-reorder-button>
    <ion-option-button class="button-positive" ng-click="tap()">
      Hello
    </ion-option-button>
  </ion-item>
</ion-list>
```
2014-04-04 10:12:16 -06:00
Adam Bradley
66ecec7031 fix(scroll): Fix input focus when tapped, do not scroll when target is an input, closes #1020 2014-04-02 14:22:56 -05:00
Adam Bradley
e6f562377d fix(scroll): Do not ignore taps if the target was an input, #997 2014-04-01 17:10:31 -05:00
Adam Bradley
69920157e2 remove global regex variable 2014-03-31 13:54:23 -05:00
Adam Bradley
bfcf26507f fix(scroll): Fix scroll for devices w/out dataset support, closes #976 2014-03-31 09:31:55 -05:00
flmu
f847c20847 feat($ionicScrollDelegate): add scrollBy(left,top,animate) to delegate
Closes #987
2014-03-31 05:43:13 -06:00
Andy Joslin
5da74bb736 sliderView: deprecate prev, add previous 2014-03-24 21:05:32 -06:00
Andy Joslin
5567b08c4b delegates: add tabbar, update docs 2014-03-24 20:35:55 -06:00
Andy Joslin
ffeaab5adc ionSlideBox: add $ionicSlideBoxDelegate with new features 2014-03-24 19:40:10 -06:00
Adam Bradley
f1ed4b0084 fix(reorder): Prevent scroll w/ data-prevent-scroll attr on reorder btn, closes #848 2014-03-24 15:51:10 -05:00
Andy Joslin
be34825843 refactor($ionicSlideBoxController): add .update() method
Closed #835
2014-03-21 15:39:41 -05:00
tomkuk
cd27e1b792 fix(scrollView): browserify issue: undefined core
Closes #825

Initialize core object.

Running browserify script with required ionic raises an error: Uncaught ReferenceError: core is not defined.
2014-03-21 15:20:17 -05:00
Andy Joslin
366bd6866f feat(loadingView): add setContent method
Closes #732
2014-03-21 12:40:01 -05:00
Andy Joslin
e5cba05e90 feat(loadingView): add setContent method 2014-03-21 12:37:49 -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
Max Lynch
73b750fb37 fix(listView): only allow one swipeable item open. Fixes #763 2014-03-19 17:44:37 -05:00
Max Lynch
4e605979ec fix(listView): No slide drag if no hidden buttons. Fixes #847 2014-03-19 16:47:52 -05: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
8c55e280ba fix scrolling through list causes "active" class on items 2014-03-17 13:47:04 -05:00
Max Lynch
d5a695757a fix(scrollView): show bar with mouse wheel. Fixes #809 2014-03-16 21:39:40 -05:00
Max Lynch
cb686636cd fix(scrollView): don't show bars if not scrolling. Fixes #805 2014-03-16 21:24:52 -05:00
Andy Joslin
87a25a8bff feat(ionNavBar,ionHeaderBar): use declarative syntax
BREAKING CHANGE:

navBar is majorly different.  Manually write this when changelog is
released.  Add link to docs.
2014-03-15 11:49:49 -06:00
Andy Joslin
8619d5e8ec docs(): add groups by topic 2014-03-14 15:14:16 -06:00
Andy Joslin
bfcfae3747 feat(ionNavBar,ionHeaderBar): use declarative syntax
BREAKING CHANGE:

navBar is majorly different.  Manually write this when changelog is
released.  Add link to docs.
2014-03-14 13:06:10 -06:00
Max Lynch
a30b0b7d4f feat(popup): Added popup support 2014-03-13 14:57:48 -05:00
Andy Joslin
e9625ded9d docs: add services, utilities 2014-03-11 13:02:36 -06:00
Andy Joslin
f9766fcf16 docs(): Add docs for ionicViewState, polish other docs 2014-03-10 21:16:09 -06:00
Andy Joslin
68ddbdb439 docs(ionSlideView): add configurable model 2014-03-10 21:16:09 -06:00
Andy Joslin
1dd5527655 docs(ionicSlideBox): add documentation
Some methods were renamed solely to make the phrasing be the same across
the entire project (abbreviations versus not, and tabbar uses index
wording while this used position).

BREAKING CHANGE:

ionicSlideBox#getPos has been renamed to ionicSlideBox#currentIndex.

ionicSlideBox#numSlides has been renamed to ionicSlideBox#slidesCount.
2014-03-10 21:16:08 -06:00
Max Lynch
5d008a851e fix(listView) - fixed sticking and item drag: #722 and #761 2014-03-10 15:15:41 -05:00
Max Lynch
a51f30ea36 fix(sideMenuView) - bad logic #751 2014-03-09 16:57:48 -05:00
Andy Joslin
5faabb1847 test(ionBar): make tests instant 2014-03-08 13:10:54 -07:00
Adam Bradley
b593cf1be6 fix(modal): Improve slide-up/down animations, remove flickers 2014-03-04 16:44:24 -06:00
Max Lynch
1b2cd5c51c Removed console log 2014-03-04 13:36:35 -06:00