Commit Graph

33 Commits

Author SHA1 Message Date
Brandy Carney
3532a71c29 docs(sass): add documentation for sass variables
This adds documentation for loading, menu, picker, popover, radio,
refresher, select, and toast. Also removes unused variables.

References #8785
2016-12-01 18:39:52 -05:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
Brandy Carney
2eed5e24c2 fix(select): emit the ionSelect option when selecting an option 2016-10-21 19:11:02 -04:00
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Adam Bradley
52ada1ca6d chore(components): ngmodule updates 2016-09-13 17:07:33 -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
2805e654f6 docs(select): fix the links to alert and action sheet API docs 2016-08-23 20:47:51 -04:00
Brandy Carney
3e7cf299e5 docs(select): update API docs to describe selectOptions
references #7764
2016-08-23 20:37:25 -04:00
Brandy Carney
b8285b7ba8 refactor(select): rename alertOptions to selectOptions, add ability to pass them for action-sheet
BREAKING CHANGES:

Select’s `alertOptions` input has been renamed to `selectOptions`. It
now allows you to pass options for either the alert or action-sheet
interface. Refer to their documentation for the options each of them
accept.

http://ionicframework.com/docs/v2/api/components/action-sheet/ActionShee
tController/#create
http://ionicframework.com/docs/v2/api/components/alert/AlertController/#
create

fixes #7764
2016-08-23 20:15:49 -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
89f4f8408c Merge branch 'pr/7341'
# Conflicts:
#	src/components/select/test/single-value/index.ts
#	src/components/select/test/single-value/main.html
2016-08-03 12:37:24 -04:00
Brandy Carney
43d8bbdd12 test(select): add demo for the selected text
references #7341
2016-08-03 12:33:20 -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
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
xr0master
cc343d8ed2 Update select.ts
Added ability set selected text like md-selected-text
2016-07-16 14:52:47 +03:00
Brandy Carney
81ddd7f0a9 fix(select): add the cssClass passed by the user to the alert for a select
fixes #6835
2016-07-08 13:44:05 -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
Manu Mtz.-Almeida
ec99bfd019 feat(viewcontroller): add onWillDismiss callback
Fixed #6702
2016-06-30 08:06:19 -05:00
Víctor Oliva
76619cf4d0 feat(select): add disabled status in select options 2016-06-29 20:01:03 -05:00
Adam Bradley
215c6d846c refactor(overlays): inject overlay providers
BREAKING CHANGES:

- Overlay components, such as Alert or Modals, should now be created
using its injected provider.
- Overlays now have the `present()` method on the overlay’s instance,
rather than using `nav.present(overlayInstance)`.
- All overlays now present on top of all app content, to include menus.
- Below is an example of the change to `Alert`, but the pattern is the
same for all overlays: ActionSheet, Loading, Modal, Picker, Popover,
Toast

WAS:

```
import { NavController, Alert } from ‘ionic-angular’;

constructor(private nav: NavController) {
}

doAlert() {
  let alert = Alert.create({
    title: 'Alert',
  });
  this.nav.present(alert);
}
```

NOW:

```
import { AlertController } from ‘ionic-angular’;

constructor(private alertCtrl: AlertController) {
}

doAlert() {
  let alert = this.alertCtrl.create({
    title: 'Alert'
  });
  alert.present();
}
```
2016-06-28 15:18:09 -05:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
Adam Bradley
3a7addf7b0 feat(toolbar): control toolbar borders on top/bottom
Toolbars can be stacked up vertically in `<ion-header>`,
`<ion-content>`, and `<ion-footer>` elements. However, toolbars also
come with borders on both the top and bottom of the toolbar. To give
developers full control of the design, Ionic also includes the
`no-border-bottom` and `no-border-top` attributes. For example,
sometimes two vertically stacked toolbars may have different background
colors, in this case it might be best to leave a border between them.
However, if they have the same background color, the app may look best
without a border between them. The main point here is, it's entirely up
to the app's design to decide when and when not to show borders between
toolbars, and to do so then each toolbar can individually set
`no-border-bottom` and `no-border-top` attributes.
2016-06-20 12:01:21 -05:00
Adam Bradley
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
Brandy Carney
461ba11de9 feat(select): add placeholder as an input for select
closes #6862
2016-06-14 20:24:35 -04:00
Adam Bradley
11448dcd0c chore(tslint): fix noImplicitAny errors 2016-05-31 21:07:17 -05:00
Adam Bradley
8a920a24a5 Merge branch 'bootstrap-refactor' into 2.0 2016-05-31 15:50:21 -05:00
Adam Bradley
6e9087534d test(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:12 -05:00
Brandy Carney
d563aa65a3 refactor(events): rename all Ionic events to start with ion
BREAKING CHANGES:

Renamed all Ionic events to start with `ion`. The following events were
renamed:

- **Checkbox**
  - `change` -> `ionChange`
- **DateTime**
  - `change` -> `ionChange`
  - `cancel` -> `ionCancel`
- **InfiniteScroll**
  - `infinite` -> `ionInfinite`
- **Menu**
  - `opening` -> `ionDrag`
  - `opened` -> `ionOpen`
  - `closed` -> `ionClose`
- **Option**
  - `select` -> `ionSelect`
- **Picker**
  - `change` -> `ionChange`
- **RadioButton**
  - `select` -> `ionSelect`
- **RadioGroup**
  - `change` -> `ionChange`
- **Refresher**
  - `refresh` -> `ionRefresh`
  - `pulling` -> `ionPull`
  - `start` -> `ionStart`
- **Searchbar**
  - `input` -> `ionInput`
  - `blur` -> `ionBlur`
  - `focus` -> `ionFocus`
  - `cancel` -> `ionCancel`
  - `clear` -> `ionClear`
- **Segment**
  - `change` -> `ionChange`
  - `select` -> `ionSelect`
- **Select**
  - `change` -> `ionChange`
  - `cancel` -> `ionCancel`
- **Slides**
  - `willChange` -> `ionWillChange`
  - `didChange` -> `ionDidChange`
  - `move` -> `ionDrag`
- **TabButton**
  - `select` -> `ionSelect`
- **Tab**
  - `select` -> `ionSelect`
- **Tabs**
  - `change` -> `ionChange`
- **Toggle**
  - `change` -> `ionChange`

Closes #6568
2016-05-31 12:01:46 -04:00
Josh Thomas
2b836a930f chore(tests): correct components to use src path instead of ionic to ensure karma tests pass. 2016-05-19 16:58:08 -05:00
Josh Thomas
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00