131 Commits

Author SHA1 Message Date
4a8975cb8b refactor(slides): warn about the deprecated slide events always
References #5508
2016-04-20 10:56:22 -04:00
a54361cf2e feat(slides): add method to get previous index
Slides added method wrapper: `getPreviousIndex()`

references #5508
2016-04-20 10:56:22 -04:00
ee4869abb9 docs(slides): update API docs for slides with usage information
also updated the test for controller.

references #5508 closes driftyco/ionic-site#458
2016-04-19 19:49:45 -04:00
46544047be refactor(slides): update slide methods and API docs
add to docs including how to use the slides and rename methods.

BREAKING CHANGE:

The Slides component has been refactored. Many methods and events were
renamed.

The following events have been renamed:

- `slideChangeStart` has been renamed `willChange`
- `change` has been renamed `didChange`

The following methods have been renamed:

`next()` has been renamed to `slideNext()`
`prev()` has been renamed to `slidePrev()`
`getIndex()` has been renamed to `getActiveIndex()`
`getNumSlides()` has been renamed to `length()`
`isAtEnd()` has been renamed to `isEnd()`
`isAtBeginning()` has been renamed to `isBeginning()`
`getSliderWidget()` has been renamed to `getSlider()`

The following method was added: `slideTo()`

All methods have been documented in the API docs:
http://ionicframework.com/docs/v2/api/components/slides/Slides/

references #5508, references driftyco/ionic-site#458
2016-04-19 17:45:59 -04:00
381a650f8e test(slides): update slides tests with new API and add new one
references #5508
2016-04-19 17:34:51 -04:00
17f9465fa5 Merge pull request #5491 from teleaziz/slide-to-index
feat(slides): add ability to slide to specific index
2016-04-18 17:40:10 -04:00
7263728da1 fix(slides): add id to the slide component to grab the correct pagination
fixes #5745 references #5508
2016-04-18 13:43:53 -04:00
2295bd9264 test(slides): update to use @ViewChild 2016-04-16 23:09:13 -05:00
acc6321d0d chore: add ViewEncapsulation.None to components
Closes #5884
2016-04-10 20:38:04 -05:00
4e8ecae83c chore: add ChangeDetectionStrategy.OnPush strategy
Close #5885
2016-04-10 00:28:50 -05:00
a6091bd768 feat(slides): add ability to slide to specific index 2016-04-09 14:22:55 -07:00
6f3b9bef82 style(tslint): tslint updates 2016-04-06 21:28:52 -05:00
45647c4f49 lacks return-type annotation, implicitly has an 'any' return type
Fix for tsc with 'noImplicitAny' option
2016-03-16 10:14:48 +01:00
f7b52eeee1 chore(sass): update sass to match linter config
references #5797
2016-03-10 22:42:38 -05:00
f33a4530cd docs(slides): remove inputs from sildes
fixes #5714
2016-03-04 10:58:16 -05:00
c883a2ae91 chore(): update Ionic imports in tests 2016-02-22 17:45:17 -06:00
1cfca53f9d chore(npm): publish package as 'ionic-angular'
BREAKING CHANGE: imports from the framework were:
```
  import {Platform} from 'ionic-framework/ionic';
```
and are now:
```
  import {Platform} from 'ionic-angular';
```
2016-02-22 13:25:55 -06:00
26c616bc20 derp: the inputs still get read from the input property 2016-02-18 12:22:04 -05:00
ae392e2db3 test(slides): update slide tests to use options instead of attributes
references #5189
2016-02-18 12:18:13 -05:00
d21ae88018 refactor(slides): remove the attributes from the slider and use options to pass them instead
also commented out some attributes that aren’t working right now.

BREAKING CHANGES: Slider attributes have been removed in favor of
passing them in options

references #5189
2016-02-18 12:18:13 -05:00
148b3685f3 test(slides): add test for slides and remove the second parameter on the move event
references #5379
2016-02-17 15:34:28 -05:00
aee817c749 Merge branch '2.0' into pr/5379
# Conflicts:
#	ionic/components/slides/slides.ts
2016-02-17 15:30:13 -05:00
a997a4d118 test(slides): added the slideChangeStart event to the intro test
This will now change the navbar button text before the slide is shown.

References #5301
2016-02-13 14:14:30 -05:00
736140ccad feat(slides): add slideChangeStart event output
Didn’t add any event for `slideChangeEnd` because this already exists
as `change`.

closes #5301
2016-02-13 14:13:59 -05:00
ebeb940105 test(slides): add navigation to the intro test 2016-02-13 14:03:33 -05:00
5941042a98 chore() normalize types in docs 2016-02-12 15:51:28 -05:00
5f254f285f chore(e2e): make typescript and e2e friends 2016-02-12 11:37:39 -06:00
224382a10e Merge branch '2.0' of https://github.com/driftyco/ionic into ins_n_outs 2016-02-11 14:10:04 -05:00
6311e7e3f1 docs(slides): update inputs/outputs 2016-02-10 13:21:57 -05:00
ef1fc75203 test(slides): fix slides test to remove errors 2016-02-10 11:39:48 -06:00
7c10c4dd42 chore(): update modal tests 2016-02-10 01:56:51 -06:00
daceb9810c feat(slides): Added move event onSlideMove 2016-02-10 10:52:55 +11:00
5ac1cf9048 docs(demos): fix item sliding demo and add the slides demo to the slide doc
references driftyco/ionic-site#397
2016-02-05 19:54:42 -05:00
633c11a742 chore(slides): remove slideChanged deprecated warning 2016-02-04 09:49:00 -06:00
155a43d770 chore(): fix typescript error 2016-02-03 19:41:23 -06:00
7e06e6c563 docs(slides,page): update docs 2016-02-03 11:46:46 -05:00
de952e3cbb chore(): change source code console.log to console.debug 2016-02-02 16:41:35 -06:00
35cb112e85 docs(slides, slide): update doc 2016-02-02 14:51:23 -05:00
de9a986236 fix(slides): convert loop attribute to a boolean and index to a number before passing to slides
Not sure I like the index attribute though.

Fixes #5189
2016-01-25 18:00:44 -05:00
ee566ae387 chore(): remove debugger 2016-01-19 14:53:09 -06:00
5cdb93f224 chore(): create d.ts for Swiper 2016-01-19 14:45:51 -06:00
1b21be81aa Revert "chore(): fix Swiper types"
This reverts commit 2d10593dce04b11d92ae4155b6e18256f4c54418.
2016-01-19 14:45:51 -06:00
02644dc4d8 Merge pull request #5087 from 3dd13/add-timeout-before-init-swiper
fix(slides): wrap swiper init code in set timeout
2016-01-19 08:57:10 -06:00
07953672f5 add more types to function parameters and return type 2016-01-19 16:44:46 +08:00
2fc07375a7 wrap swiper init code in set timeout 2016-01-19 11:20:42 +08:00
2d10593dce chore(): fix Swiper types 2016-01-15 19:28:55 -06:00
b5d8a1de70 chore(): remove use of host: {inputs: []} 2016-01-14 21:14:23 -06:00
fdbd0f5f67 chore(): fix some Slides type errors 2016-01-12 16:59:07 -06:00
88aad3f880 refactor(decorators): remove ConfigComponent 2016-01-11 22:51:54 -06:00
344619d7d7 docs(demos/slides): link to api demos 2015-12-18 14:05:05 -06:00