Commit Graph

47 Commits

Author SHA1 Message Date
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Brandy Carney
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
Brandy Carney
16df3a4aab refactor(css): update theme imports 2016-09-13 16:57:32 -05:00
Brandy Carney
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
Adam Bradley
d7be8a80c0 test(ngmodule): update to ngmodule 2016-09-13 15:44:02 -05:00
Brandy Carney
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
Brandy Carney
938864e8d0 refactor(button): add ion-button attribute and icon attributes to style buttons
BREAKING CHANGES:

- `<button>` becomes `<button ion-button>`
- `<a button>` becomes `<a ion-button>`
- `<button ion-item>` does not get the `ion-button` attribute
- Buttons inside of `<ion-item-options>` do get the `ion-button`
attribute
- Removed the `category` attribute, this should be passed in
`ion-button` instead.
- Button attributes added for icons in buttons: `icon-only`,
`icon-left`, and `icon-right`

closes #7466
2016-08-16 17:11:02 -04:00
Brandy Carney
7a2ad99029 fix(range): set ticks to an empty array to prevent errors 2016-08-03 17:42:52 -04:00
perry
4f52135c13 Revert "Revert "Merge branch 'master' of https://github.com/driftyco/ionic""
This reverts commit 4a6086c1f8.
2016-07-18 19:40:03 -05:00
perry
4a6086c1f8 Revert "Merge branch 'master' of https://github.com/driftyco/ionic"
This reverts commit 8945bf906d, reversing
changes made to f4fac225fa.
2016-07-18 19:24:56 -05:00
Manu Mtz.-Almeida
9f19023cb9 feat(gesture): Introducing new gesture controller 2016-07-13 22:11:38 +02:00
Manu Mtz.-Almeida
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
Brandy Carney
d675d39a62 fix(range): align the label in an item range to the center
fixes #7046
2016-07-08 15:01:21 -04:00
Manu Mtz.-Almeida
5a8fe82c3a fix(range): ion-label stacked with ion-range (#7050)
fixes #7046
2016-07-08 14:34:46 -04:00
Manu Mtz.-Almeida
01c7c1ada7 docs(range): fix debounce input
closes #7168
2016-07-02 14:27:09 +02:00
Adam Bradley
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
Adam Bradley
4d56219a4c refactor(forms): upgrade to @angular/forms 2016-06-30 21:54:48 -05:00
Adam Bradley
3cd31c3d17 fix(menu): fix content going under header
Closes #7084
2016-06-28 16:22:39 -05:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
Adam Bradley
060d064325 Merge branch '2.0' into layout-refactor
# Conflicts:
#	src/components/tabs/test/advanced/index.ts
2016-06-21 11:37:47 -05:00
Manu Mtz.-Almeida
1cef5a7084 refactor(range): uses new UIEventManager 2016-06-20 20:32:55 +02:00
Adam Bradley
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
Manu Mtz.-Almeida
55eccb3493 feat(range): add debounce input for ionChange event
Closes #6894
2016-06-16 12:34:46 -05:00
Manu Mtz.-Almeida
9b2e934a2f fix(range): stop sliding after releasing mouse outside the window
Closes #6802
2016-06-08 20:30:32 -05:00
Brandy Carney
f2a9f2dd43 fix(range): bar height for ios should be 1px, add disabled for wp 2016-06-08 13:27:18 -04:00
Dan Bucholtz
9425eeff94 chore(range): sass validates now (#6806)
sass validates now
2016-06-08 10:38:26 -05:00
Manu Mtz.-Almeida
ccd926b8ae feat(range): range can be disabled 2016-06-08 08:46:31 -05:00
Brandy Carney
5f35c043f2 test(menu): add e2e test to open right menu 2016-06-02 13:16:45 -04:00
Brandy Carney
c59c65647d feat(range): add styling for the range when knob is minimum md
references #5422
2016-06-02 10:31:47 -04:00
Adam Bradley
057b526612 chore(range): add range-knob-min/max css class 2016-06-01 20:27:00 -05:00
Brandy Carney
47174dfdaa feat(range): only increase knob size when pin doesn't exist 2016-06-01 21:22:52 -04:00
Brandy Carney
27fa22fe47 fix(range): update range left/right margin on ios 2016-06-01 20:23:07 -04:00
Brandy Carney
a25a552707 feat(popover): add styling for the md pin
references #5422
2016-06-01 19:11:30 -04:00
Brandy Carney
78ffe0e801 chore: fix linter errors 2016-06-01 17:27:06 -04:00
Adam Bradley
7e4b13daaf fix(range): prevent change detection exception 2016-06-01 16:11:47 -05:00
Brandy Carney
cffa84c97e feat(range): fix the knob on md so the transform isn't blurry
references #5422
2016-06-01 15:47:56 -04:00
Brandy Carney
21753a88fe feat(range): add styling for range-left/range-right md and wp
references #5422
2016-06-01 10:59:11 -04:00
Brandy Carney
484dfdb2f0 chore: fix linter errors 2016-06-01 10:44:14 -04:00
Adam Bradley
11448dcd0c chore(tslint): fix noImplicitAny errors 2016-05-31 21:07:17 -05:00
Brandy Carney
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
Brandy Carney
d7a6980112 chore: fix linter errororororors 2016-05-31 18:51:21 -04:00
Adam Bradley
b59e5afe22 chore(range): emit ionChange on range 2016-05-31 16:24:13 -05:00
Brandy Carney
f7cf378042 docs(range): add API docs for range
references #5422
2016-05-31 17:09:07 -04:00
Brandy Carney
061af93b3c fix(range): update the styling for all modes
references #5422
2016-05-31 16:11:47 -04:00
Brandy Carney
d24b080cb7 fix(range): fix styling on range, add demo
references #5422
2016-05-31 14:37:43 -04:00
Brandy Carney
af6d5e4be4 feat(range): add md and wp styling, tweak ios styling
references #5422
2016-05-27 18:37:32 -04:00
Adam Bradley
2c6e11b10d feat(range): create ion-range input 2016-05-27 13:20:36 -05:00