35 Commits

Author SHA1 Message Date
cc21f93b87 docs(API): update descriptions to be more clear
also update descriptions for the same properties to be more consistent,
and reword all events to start and end the same.

closes #10248 closes driftyco/ionic-site#613 closes
driftyco/ionic-site#899
2017-01-31 17:47:52 -05:00
ed8b6b57bb docs(range): correct input types
Closes #10184
corrected type of two input properties,  'snaps' and  'pin'. were marked as number but they're boolean.
2017-01-26 15:09:33 -05:00
8e64a28ed3 fix(range): set disabled state from FormControl 2017-01-12 17:02:47 -05:00
7000b1b173 refactor: improve tree shaking abilities
Internal refactor completed in order to improve tree shaking and dead
code removal. The public API, with an exception to ion-slides, has
stayed the same. However, internally many changes were required so
bundlers could better exclude modules which should not be bundled.
Ultimately most changes resorted to removing references to `window` or
`document`, or a module that referenced one of those.

BREAKING CHANGES

ion-slides was refactored to remove the external dependencies, and
rewritten in TypeScript/ES6 modules to again improve tree shaking
abilities.
2017-01-09 09:51:39 -06:00
a79678625f fix(all): boolean inputs
fixes #9391
2016-11-29 17:29:30 +01:00
d2ebac3d27 perf(range): generates inefficient JS 2016-11-28 01:40:51 +01:00
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
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
9895b86015 fix(range): fixes when step size is bigger than range
fixes #8830
fixes #8802
2016-10-21 17:21:23 +02:00
713e2a1a33 feat(haptic): add haptic/taptic support to toggle/range/picker 2016-10-05 20:49:55 -05:00
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
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
7a2ad99029 fix(range): set ticks to an empty array to prevent errors 2016-08-03 17:42:52 -04:00
4f52135c13 Revert "Revert "Merge branch 'master' of https://github.com/driftyco/ionic""
This reverts commit 4a6086c1f8e756b86460697f685af0c8f81e3019.
2016-07-18 19:40:03 -05:00
4a6086c1f8 Revert "Merge branch 'master' of https://github.com/driftyco/ionic"
This reverts commit 8945bf906d68d469e4653a9db2f564bc588eb0d6, reversing
changes made to f4fac225fa3a9151565a1e3c3ccb334405b6a57f.
2016-07-18 19:24:56 -05:00
9f19023cb9 feat(gesture): Introducing new gesture controller 2016-07-13 22:11:38 +02:00
d6f62bcb60 fix(sliding): much better UX + performance
- sliding should behave exactly like a native one
- much better performance

references #7049
references #7116
closes #6913
closes #6958
2016-07-12 15:30:19 +02:00
01c7c1ada7 docs(range): fix debounce input
closes #7168
2016-07-02 14:27:09 +02:00
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
4d56219a4c refactor(forms): upgrade to @angular/forms 2016-06-30 21:54:48 -05:00
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
1cef5a7084 refactor(range): uses new UIEventManager 2016-06-20 20:32:55 +02:00
55eccb3493 feat(range): add debounce input for ionChange event
Closes #6894
2016-06-16 12:34:46 -05:00
9b2e934a2f fix(range): stop sliding after releasing mouse outside the window
Closes #6802
2016-06-08 20:30:32 -05:00
ccd926b8ae feat(range): range can be disabled 2016-06-08 08:46:31 -05:00
057b526612 chore(range): add range-knob-min/max css class 2016-06-01 20:27:00 -05:00
7e4b13daaf fix(range): prevent change detection exception 2016-06-01 16:11:47 -05:00
11448dcd0c chore(tslint): fix noImplicitAny errors 2016-05-31 21:07:17 -05:00
fc819dd9c4 feat(range): add ability to add labels to the left/right of range
using `range-left` and `range-right` inside of `ion-range` will place
the element to the left or right of the range.

references #5422
2016-05-31 20:11:09 -04:00
b59e5afe22 chore(range): emit ionChange on range 2016-05-31 16:24:13 -05:00
f7cf378042 docs(range): add API docs for range
references #5422
2016-05-31 17:09:07 -04:00
061af93b3c fix(range): update the styling for all modes
references #5422
2016-05-31 16:11:47 -04:00
d24b080cb7 fix(range): fix styling on range, add demo
references #5422
2016-05-31 14:37:43 -04:00
2c6e11b10d feat(range): create ion-range input 2016-05-27 13:20:36 -05:00