Commit Graph

71 Commits

Author SHA1 Message Date
Adam Bradley
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
Brandy Carney
717cada8ed fix(input): only add padding right if it has clear input
fixes #9865
2017-01-04 13:28:25 -05:00
Justin Willis
22ba043c53 fix(input): remove click events from disabled inputs (#9676)
fixes #9070
2016-12-19 10:50:24 -05:00
Brandy Carney
877fcf178d fix(input): fix the text jumping for stacked/floating inputs on iOS
fixes #9605
2016-12-16 12:43:17 -05:00
Josep Sayol
e80f4cf88d fix(input): prevent exception when input components outside Content 2016-12-14 14:27:19 -06:00
Adam Bradley
eba2862e70 fix(input): apply transform css prefix 2016-12-06 10:00:09 -06:00
Adam Bradley
c377236dcb perf(scroll): efficient scroll events and properties 2016-12-05 16:50:05 -06:00
Ibrahim Hadeed
21ade93065 Fix typo 2016-11-26 00:24:27 -05:00
Adam Bradley
3b304974ec fix(input): improve scroll to input and focusing
Related #6228
2016-11-21 08:56:00 -06:00
Adam Bradley
fbe4a7b346 test(focus): update input focus e2e test 2016-11-21 08:40:19 -06:00
ramonornela
fa54a4e02d style(input): fix lints 2016-11-17 09:37:35 -02:00
Max Lynch
9469b4ff9a feat(input): clearOnEdit feature. Closes #9187 2016-11-16 16:42:48 -06:00
Manu Mtz.-Almeida
909293a735 fix(nav): fixes empty stack condition 2016-11-14 21:11:31 +01:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
Denny Biasiolli
faed85c6d3 docs(input): fix typo in documentation (#9103) 2016-11-10 18:53:07 -05:00
mhartington
b4b9adb7fc refactor(textarea): remove type input from textarea 2016-11-07 15:05:00 -05:00
mhartington
bc5cd7f03f docs(input): update input docs 2016-11-07 14:52:15 -05:00
Brandy Carney
eb0b05df88 fix(sass): remove usage of colors other than primary, improve error (#8907)
* fix(sass): remove usage of colors other than primary, improve error

fixes #8266

* refactor(sass): add variables to override all modes for fab and input

* refactor(fab): rename Sass variable from in-list to list-button

BREAKING CHANGE:

- `$fab-<mode>-in-list-background-color` ->
`$fab-<mode>-list-button-background-color`
- `$fab-<mode>-in-list-text-color` ->
`$fab-<mode>-list-button-text-color`
- `$fab-<mode>-in-list-background-color-activated` ->
`$fab-<mode>-list-button-background-color-activated`
2016-11-07 17:41:10 +01:00
Hugo Aguirre
c327955a75 docs(input): add sass variable descriptions 2016-10-28 21:32:34 -05:00
Manu Mtz.-Almeida
bdd8bd1e93 Revert "fix(input): wrong width of text-input for iOS"
This reverts commit 941e2d2896.
2016-10-25 00:00:04 +02:00
Manu Mtz.-Almeida
941e2d2896 fix(input): wrong width of text-input for iOS
fixes #7388
2016-10-24 23:54:04 +02:00
Manu Mtz.-Almeida
6de91fcc88 test(input): adds events test 2016-10-13 23:29:43 +02:00
Alan Agius
21fa5cd75e fix(input): text input width calculation (#8063) 2016-10-12 14:31:48 -04:00
mhartington
da62b63253 docs(): minor doc updates 2016-10-10 09:13:04 -04:00
Manu Mtz.-Almeida
f34d0c298e refactor(css): appearance mixin (#8212) 2016-10-06 16:18:00 -04:00
Manu Mtz.-Almeida
d02e14c50a fix(input): detect value when it is zero
thanks @keithdmoore

fixes #8019
2016-10-01 01:19:08 +02:00
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
Alex Muramoto
97b57f1b53 Update docs and fix typos (#7776)
* docs(input): fix typo

* docs(scroll): add note about required CSS for scrollY

* docs(config): add swipeBackEnabled to config properties list

* docs(component generator): fix broken link in template comment

* docs(directive generator): fix broken link in template comment
2016-08-18 15:20:25 -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
1bd5b59ee0 test(snapshot): update e2e tests that snapshot uses to be correct 2016-08-04 12:46:23 -04:00
Brandy Carney
b5b804725f refactor(select): rename the checked attribute to selected on option
BREAKING CHANGES:

The Option component’s `checked` attribute has been renamed to
`selected` in order to select an option. This is to the follow the MDN
spec for a select option:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option

If a `ngModel` is added to the Select component the value of the
`ngModel` will take precedence over the `selected` attribute.

references #7334
2016-08-03 11:38:41 -04:00
Bryan Walker
d17441459e docs(input): update input
Added additional item highlighting ability to make text area taller and include placeholder text.
2016-07-24 21:16:36 -05:00
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
Brandy Carney
324f2cb189 test(input): fix input test to update the user form
closes #7335
2016-07-19 12:39:08 -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
Adam Bradley
0a7d865975 refactor(nav): create NavControllerBase and public abstract class
Use NavController as the public API, and NavControllerBase as the
internal API. Refactored all app/nav/tabs unit tests and created
centralized mocking functions.
2016-07-15 15:54:56 -05:00
Brandy Carney
11a24b98aa fix(input): add input highlight for ios, fix the highlight size
The input highlight can now be enabled for ios. Fixed wp’s
valid/invalid highlighting. The highlight bar now goes on top of the
item-inner border so it will resize if there is an icon to the left.

BREAKING CHANGES:

Fixed typos in the input highlight variables:

- `$text-input-md-hightlight-color-valid` ->
`$text-input-md-highlight-color-valid`
- `$text-input-wp-hightlight-color-valid` ->
`$text-input-wp-highlight-color-valid`

Modified variables to turn on/off the highlight:

ios (defaults to false for all):

```
$text-input-ios-show-focus-highlight:      false !default;
$text-input-ios-show-valid-highlight:
$text-input-ios-show-focus-highlight !default;
$text-input-ios-show-invalid-highlight:
$text-input-ios-show-focus-highlight !default;
```

md (defaults to true for all):

```
$text-input-md-show-focus-highlight:        true !default;
$text-input-md-show-valid-highlight:
$text-input-md-show-focus-highlight !default;
$text-input-md-show-invalid-highlight:
$text-input-md-show-focus-highlight !default;
```

wp (defaults to true for all):

```
$text-input-wp-show-focus-highlight:        true !default;
$text-input-wp-show-valid-highlight:
$text-input-wp-show-focus-highlight !default;
$text-input-wp-show-invalid-highlight:
$text-input-wp-show-focus-highlight !default;
```

fixes #6449
references #5052
2016-07-15 11:31:53 -04: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
1c882b31a5 style(input): update import syntax 2016-06-29 22:42:22 -05:00
Brandy Carney
e4cc672c0a fix(input): fix the clear input button to always be vertically aligned 2016-06-27 12:48:13 -04:00
Brandy Carney
d0b1930b25 fix(input): check if there is a value when setting value 2016-06-24 18:20:33 -04:00
Brandy Carney
ae86ab8b81 fix(input): allow button click when input has focus
only show clear input button when input has focus.

closes #6514 and closes #6944
2016-06-24 13:57:34 -04:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00