Commit Graph

91 Commits

Author SHA1 Message Date
Manu Mtz.-Almeida
bee75f7d00 feat(overlay): method chaining pattern to configure overlays 2017-03-08 23:44:15 +01:00
Brandy Carney
c8c90572bc chore(scripts): update e2e prod build to work with ionic-app-scripts (#10083)
* chore(e2e): WIP to add files needed for app-scripts

* chore(e2e): WIP one e2e test building but with errors

* chore(e2e): move e2e.prod to working with app-scripts

move shared functions into util, add support for debug flag when
running e2e.prod / demos.prod which gets passed to app-scripts

* chore(build): fix app-scripts build for all e2e and demos

* chore(e2e): update ionic-angular import path

* chore(build): update dev paths to work with prod

* chore(e2e): get watch working with e2e prod

* docs(scripts): update README for running e2e and demos

closes #8411
closes #10023
2017-01-19 11:09:57 -05:00
Manu Mtz.-Almeida
fba159662e fix(modal): overlay-zindex is not changed in back direction
fixes #9409
2017-01-18 14:37:57 +01:00
Brandy Carney
d252fa49e5 chore(e2e): rename app-module.ts to app.module.ts for consistency
references #10023
2017-01-13 15:16:24 -05:00
Adam Bradley
8ca9797c0f fix(clickblock): add NavOptions.minClickBlockDuration
* feat(clickblock): ability to set a minimum duration for click block

* fix(clickblock): add NavOptions.minClickBlockDuration
2017-01-09 16:44:37 -06:00
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
e210448e63 docs(toolbar): update API docs and any tests to remove old toolbar attributes 2016-12-07 12:29:34 -05:00
Brandy Carney
660d53101f docs(sass): add documentation for the remaining sass variables
closes #8785
2016-12-05 10:16:40 -05:00
Manu Mtz.-Almeida
ccb6bf1390 fix(modal): using cross mode animations
fixes #9323
2016-11-30 13:30:28 +01:00
Manu Mtz.-Almeida
fa0579fe46 feat(button): strong decorator 2016-11-29 10:13:01 -06:00
Manu Mtz.-Almeida
84b3792254 test(toolbar): correct toolbar height with statusbar 2016-11-28 21:08:24 +01:00
Manu Mtz.-Almeida
5ad7fd1908 perf(rendering): add css containment 2016-11-23 11:08:45 -06:00
Manu Mtz.-Almeida
06938b64a5 fix(backdrop): remove click cursor when the backdrop is not tappable 2016-11-20 16:00:53 +01:00
Manu Mtz.-Almeida
9bb8e5ba5e test(modal): make sure enableBackdropDismiss works correctly
references #9185
2016-11-19 18:42:47 +01:00
Manu Mtz.-Almeida
11bb8ac587 style(modal): follows ios/md design spec in large screens 2016-11-19 18:25:46 +01:00
Manu Mtz.-Almeida
e46d8d6938 fix(modal): backdrop click catches navigation promise
A modal with canLeave = false, can lead to an unhandled exception when closing through a click in the backdrop
2016-11-19 18:15:26 +01:00
Manu Mtz.-Almeida
32ab817181 fix(gestures): gesture controller handled by components
* fix(gestures): gesture controller is handled by components

fixes #9046

* fix(gestures): adds hybrid disable scroll assistance

fixes #9130
fixes #9052
fixes #7444
2016-11-16 10:03:51 -06:00
Brandy Carney
e7ad038b4d test(modal): update modal test to add new buttons and move toast 2016-11-03 16:27:30 -04:00
Manu Mtz.-Almeida
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
Manu Mtz.-Almeida
033e1eae17 fix(nav): adds public willLoad lifecycle event
* fix(nav): adds public willLoad lifecycle event

* test(menu): adds more asserts
2016-11-01 13:12:29 -05:00
Hugo Aguirre
b0d393bc16 docs(modal): add sass variable descriptions 2016-10-29 18:29:25 -05:00
Manu Mtz.-Almeida
925be1533b test(modal): toast z-index issues
references #8597
2016-10-18 01:59:36 +02:00
Manu Mtz.-Almeida
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
Manu Mtz.-Almeida
2834cd87cd test(): improve e2e tests 2016-10-13 00:05:47 +02:00
Brandy Carney
2f8fbed0c4 test(e2e): update e2e tests to resolve snapshot issues 2016-10-12 17:29:28 -04:00
Manu Mtz.-Almeida
1300cbd7c0 test(modal): adds canLeave test 2016-10-12 22:47:31 +02:00
Manu Mtz.-Almeida
e2704a4a25 fix(modal): alerts do not trigger modal lifecycle events
fixes #8616
2016-10-12 19:58:38 +02:00
Manu Mtz.-Almeida
451ffe1133 fix(nav): ionViewDidLoad is called in modals
fixes #8449
2016-10-12 11:38:44 -05:00
Brandy Carney
2b7e83c1e1 test(modal): fix modal e2e test errors with forms 2016-10-12 11:43:43 -04:00
Manu Mtz.-Almeida
c9f4a4123f test(modal): adds e2e tests for open rc0 issues
references #8616
references #8597
references #8573
2016-10-10 19:15:05 +02:00
Alex Muramoto
45ea189fa2 docs(): update modal and searchbar docs
* 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

* docs(modal): add that modal is not reusable

* docs (searchbar): update description of debounce
2016-09-30 13:48:03 -04:00
Adam Bradley
d8ecf16feb refactor(nav): do not auto-add pascal case css class
Previously a css class generated from the JS class name, was
automatically being added to the page element. However, the JS class
name returned is not consistent among all browsers. Instead of
automatically applying a css classname, we now recommend adding a
`selector` to each page component.
2016-09-26 00:40:10 +01: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
7c05d0c0ba fix(di): update dependency injection and default configs 2016-09-16 00:49:09 -05:00
Brandy Carney
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
Adam Bradley
52ada1ca6d chore(components): ngmodule updates 2016-09-13 17:07:33 -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
Adam Bradley
a4e393b619 fix(nav): fire lifecycle events from app root portal 2016-08-04 22:47:36 -05:00
Adam Bradley
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
Adam Bradley
61a86253a8 fix(nav): register child nav when created from modal 2016-08-04 11:49:21 -05:00
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07: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
cac378f35b fix(menu): only one menu can be opened at a time
fixes #6826
2016-07-17 20:42:29 -05:00
Adam Bradley
0386476879 test(nav): clean up NavController tests 2016-07-15 15:55:49 -05:00
Adam Bradley
cca3309f4c chore(nav): create nav-interfaces file 2016-07-11 23:24:25 -05:00
Adam Bradley
da6215c08e test(modal): add provider tests
Related #7160
2016-07-01 20:30:28 -05:00