Commit Graph

78 Commits

Author SHA1 Message Date
Dan Bucholtz
a8ceee467b fix(navigation): reduce urls to minimum set of fields
* wip

* simple-nav, simple-tabs, simple-nav-then-tabs, simple-nested-navs all pass w00t w00t

* updates

* fix tests

* update test
2017-07-21 23:47:45 -05:00
Dan Bucholtz
efd54750bf chore(lint): fix all code that doesn't pass tslint
* chore(lint): update to work with newer tslint

* chore(lint): fix all code that doesnt pass tslint

fix all code that doesnt pass tslint
2017-07-05 16:21:55 -05:00
Dan Bucholtz
fce4422ab1 fix(navigation): navs can have n child navs instead of just one 2017-06-30 14:59:55 -05:00
Dan Bucholtz
486bff036d feat(navigation): support for named ion-nav/ion-tabs to improve url in the short term
support for named ion-nav/ion-tabs to improve url in the short term
2017-06-29 14:50:56 -05:00
Dan Bucholtz
016b90da47 fix(tabs): use segment if it exists even if component exists 2017-06-27 14:20:17 -05:00
Dan Bucholtz
0f5c47db15 feature(navigation): better browser back/forward button support
* test(nav): add third page to nav/simple-nav

* progress

* workin'

* updates

* updates
2017-06-27 07:16:49 -05:00
Dan Bucholtz
5cad96570f feature(navigation): modify urls to support multiple root level navs/tabs
* wip

* wip

* progress

* wippy skippy

* getting there

* all tests passing except goBack

* unit tests pass again boi

* goBack tests pass

* great success

* the good stuff
2017-06-19 16:29:55 -05:00
Manuel Mtz-Almeida
c10f72b1e2 fix(keyboard): big keyboard/input refactor
fixes #9699
fixes #11484
fixes #11389
fixes #11325
fixes #11291
fixes #10828
fixes #11291
fixes #10393
fixes #10257
fixes #9434
fixes #8933
fixes #7178
fixes #7047
fixes #10552
fixes #10393
fixes #10183
fixes #10187
fixes #10852
fixes #11578
2017-06-12 22:31:22 +02:00
Amit Moryossef
a40b872975 fix(rtl): add icon-start and icon-end attributes (#11737)
* feat(icon): add start/end

* fix(icon): add all relevant deprecations

* fix(deprecation): add deprecation to missing selector

* revert(tests): revert icon-start/end from tests
2017-06-02 14:00:18 -04:00
Dan Bucholtz
59eb9a328d refactor(): restructure components to loosen coupling, move overlay-portal, click-block, menu-controller and other app-level functionality to app directory. The motivation for this change is logical grouping, decoupling components from each other, and improving the ability to drop more unused components from bundle 2017-04-20 23:21:25 -05:00
Manuel Mtz-Almeida
356ccd9e1c docs(nav): .catch() is not longer needed 2017-04-18 23:42:49 +02:00
Brian Soumakian
e423e082b6 fix(tabs): invalid component comparison (#11084)
getComponent() returns a ViewController, so we must reference the
component property when checking against the active component
2017-04-17 11:46:11 -05:00
perry
41e34fc4ce chore(docs): moving docs from /docs/v2 to /docs 2017-03-29 11:00:52 -05:00
Manu Mtz.-Almeida
7272b5a42a refactor(all): color/mode inputs are not longer needed 2017-03-23 23:32:47 +01:00
Brandy Carney
042f698555 Merge branch 'master' into 3.0
# Conflicts:
#	src/components/action-sheet/test/basic/pages/page-one/page-one.ts
#	src/components/alert/alert.ts
#	src/components/content/content.ts
#	src/components/datetime/datetime.ts
#	src/components/datetime/test/datetime.spec.ts
#	src/components/loading/loading.ts
#	src/components/modal/test/basic/app.module.ts
#	src/components/picker/picker-component.ts
#	src/components/toast/toast.ts
#	src/components/toolbar/toolbar.ios.scss
#	src/components/toolbar/toolbar.md.scss
#	src/components/toolbar/toolbar.wp.scss
#	src/components/virtual-scroll/test/basic/app.module.ts
#	src/util/util.ts
2017-03-20 18:07:38 -04:00
Manu Mtz.-Almeida
c79bd5ab81 test(date time): datetime without max value 2017-03-16 19:19:31 +01:00
perry
396f891f33 chore(docs): updating dgeni typescript package 2017-03-14 14:50:31 -05:00
Manu Mtz.-Almeida
37c198414d Merge branch 'master' into 3.0 2017-03-07 21:28:18 +01:00
Manu Mtz.-Almeida
beed9989ed Merge branch 'simplify-bar-button' of https://github.com/manucorporat/ionic 2017-03-03 21:07:03 +01:00
Manu Mtz.-Almeida
6e1ae9710e refactor(Tabs): moves markup to TabButton component 2017-03-03 21:06:34 +01:00
Manu MA
9e4c3a6e3e feat(split-panel): split panel support for ion-nav and ion-menu (#10343)
* feat(split-panel): split panel support for ion-nav and ion-menu

Revert some changes

adds support split-panel support for tabs

Removes .orig

removes e2e.ts

Removes unneeded changes in menu.ts

improves stuff

* fix(split-panel): resize is called when menu wraps a ion-nav

* test(split-panel): improves split-panel/basic test

* feat(split-panel): ionChange is an ng2 @Output()

* fix(split-panel): fix tabs as side content

* fix(menu): forzedClose works as expected

* feat(split-panel): split-panel works with several menus

* chore(split-panel): renames to split-pane

* refactor(split-pane): splitPane can be injected

* fix(split-pane): it is a directive

* fix(slides): integration with split-panel

* Make gulp validate happy
2017-03-03 20:13:07 +01:00
Dan Bucholtz
a26b054a3f refactor(tabs): support async loading
support async loading
2017-03-02 15:01:42 -06:00
Manu Mtz.-Almeida
738515879b fix(tabs): popToRoot catches the rejected promise 2017-02-28 17:50:42 +01:00
Manu Mtz.-Almeida
8d9f374065 fix(all): memory leaks
fixes #10459
fixes #10416
fixes #10286
2017-02-28 17:50:42 +01:00
Manu Mtz.-Almeida
be0b6a8872 refactor(all): cosmetic changes + app.resize as event emitter 2017-02-28 17:34:12 +01:00
Manu Mtz.-Almeida
ac1a886158 fix(tabs): ionChange is emitted after the tab is selected
fixes #10538
2017-02-23 19:35:44 +01:00
Brandy Carney
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
Manu Mtz.-Almeida
e770a9ab23 Merge branch 'fix-previousTab' of https://github.com/manucorporat/ionic
# Conflicts:
#	src/components/tabs/tabs.ts
2017-01-18 14:23:45 +01:00
Manu Mtz.-Almeida
ba9e7b3e6b fix(tabs): ionChange event is dispatched after the switch 2017-01-17 21:33:50 +01:00
Jack Feng
eb96cba227 Fix url is not correct after selecting tabs
Update deeplinker's updateNav after tabSwitchEnd so deeplinker gets the
right active navchild.
2017-01-17 16:50:25 +08: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
Manu Mtz.-Almeida
cb65f79cbb fix(tabs): _touchActive() works when tab.root is a string 2016-12-06 01:25:52 +01:00
Manu Mtz.-Almeida
68eb1b7cb5 fix(viewcontroller): onDidDismiss() is always called
fixes #8223
2016-12-05 14:53:24 -06:00
Manu Mtz.-Almeida
907191bbc2 perf(tabs): improve tab switching response 2016-11-28 09:00:41 -06:00
Michael
d6f959b3e2 docs(tabs): update docs
closes #9268
2016-11-21 14:15:38 -05:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
Manu Mtz.-Almeida
4f6a9b143c feat(tabs): tabsHideOnSubPages can be modified per tab
references #8970
2016-11-01 02:21:28 +01:00
Alex Muramoto
a49bdf0c8b docs(tabs): add steps to switch tabs from child component (#8829)
* 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

* docs(tabs): add steps to switch tabs from child component
2016-10-22 00:17:48 +02:00
Manu Mtz.-Almeida
ba557acb4f fix(nav): ion-nav inside ion-content work properly 2016-10-15 02:59:57 +02:00
Manu Mtz.-Almeida
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
mhartington
58beb4173f docs(): update links 2016-10-12 14:17:35 -04:00
Alan Agius
888443ce7f fix(tabs) ion-badge not being given the proper color (#8399) 2016-10-11 15:48:37 -04:00
mhartington
17fdfa80ec docs(): fix broken links 2016-10-10 17:35:07 -04:00
Manu Mtz.-Almeida
db72a7d26b fix(menu): menu's content is resized properly
fixes #8504
2016-10-10 08:45:22 -05:00
Max Lynch
5156917d78 fix(tabs): remove from parent nav when destroyed 2016-10-06 19:23:38 -05: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
ed221eff1d refactor(nav): queue based transitions 2016-09-13 17:13:43 -05:00
Brandy Carney
29758e6705 docs(nav/tabs): update links to use correct URLs
closes driftyco/ionic-site#768
2016-08-24 12:02:15 -04: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
Adam Bradley
61a86253a8 fix(nav): register child nav when created from modal 2016-08-04 11:49:21 -05:00