42 Commits

Author SHA1 Message Date
5a20f84aa4 refactor(): minor updates for next stencil version (#20787) 2020-03-25 14:38:45 -04:00
48a27636c7 fix(all): component reusage (#18963)
Use new stencil APIs to allow ionic elements to be reused once removed from the DOM.

fixes #18843
fixes #17344
fixes #16453
fixes #15879
fixes #15788
fixes #15484
fixes #17890
fixes #16364
2019-08-27 16:29:37 +02:00
e82648bda2 refactor(all): update to one (part 3) (#18874) 2019-07-25 20:22:44 +02:00
00891119f7 feat(virtual-scroll): adds headerHeight and footerHeight (#18851)
Currently, if you have an ion-virtual-scroll with a list of items and a search bar for filtering them, when you change the list of items, the items disappear until rendered again, causing a flicker. This could be solved for the items using the itemHeight function to provide the exact height size and bypass some calculations and be more performant etc.

However, if you had a header or footer, they would still flicker. This commit adds two more optional functions named headerHeight and footerHeight that return the exact size of the header and footer respectively and resolve the flicker.
2019-07-24 18:29:16 +02:00
c91819c94f fix(virtual-scroll): rebuild cells on resizing (#18878) 2019-07-24 18:15:35 +02:00
b40f7d36d5 fix(): update to Stencil One 🎉🎊 2019-06-19 21:33:50 +02:00
adaaf89737 chore(): remove debug and log statements (#18245)
fixes #18190
2019-05-21 14:55:41 -04:00
464ec3b70a docs(components): update method and parameter descriptions (#18075) 2019-04-23 12:59:25 -04:00
a8a48a4ca4 fix(virtual-scroll): use correct item top calculation with header or footer function (#15948) (#17345)
- use the right index in updateVDom to update the top transition ()
- extend unit test to verify the top is also calculated right with a given headerFn and footerFn
- update the visibility of the node also if a given approxHeaderHeight/approxFooterHeight matches the calculated height

fixes #15948 fixes #17298
2019-03-26 16:17:03 -04:00
d1cecf142b fix(virtual-scroll): fixes dynamic changes 2018-12-19 00:27:04 +01:00
119e0c1fd2 refactor(all): avoid using export const enum (#16614)
* refactor(all): avoid using export const enum

fixes #16497

* add tslint
2018-12-06 21:19:49 +01:00
ecc2c55370 docs(all): possible values are extracted by stencil (#16190)
* docs(all): possible values are extracted by stencil

* add defaults

* remove all hardcoded defaults

* update stencil
2018-11-02 00:06:40 +01:00
a72fced6fe fix(all): docs for all missing props 2018-10-11 16:24:08 -05:00
c49d896e08 refactor(all): using ComponentInterface 2018-09-14 18:47:00 +02:00
6e5c035b39 chore(tslint): disable 'no-floating-promises' 2018-09-14 00:50:44 +02:00
4876df928d chore(): tslint checks 2018-09-06 21:49:35 +02:00
e7416435d8 refactor(all): additional tslint rules 2018-09-01 18:06:59 +02:00
ba2230510e refactor(all): strict boolean conditions 2018-09-01 17:23:03 +02:00
1d46973785 refactor(all): make all method return a promise 2018-08-28 22:20:10 +02:00
3d6caae13f chore(): update to latest stencil 2018-08-22 23:38:23 +02:00
78e13ac5c4 style(virtual-scroll): remove console.log message (#15247)
remove console.log message with the viewportOffset which is executed on every virtual scroll update
2018-08-22 11:54:25 -04:00
3adfb985e8 fix(virtual-scroll): update VS when items change 2018-08-17 15:29:13 +02:00
b7e741ab80 fix(virtual-scroll): fix viewportOffset calculation
fixes #14963
2018-08-12 01:42:49 +02:00
b53ce4b0e8 fix(virtual-scroll): use FunctionalComponent for JSX integration 2018-08-12 01:18:59 +02:00
997cda0667 refactor(scroll): merge into ion-content 2018-08-10 00:07:08 +02:00
c1b61d0fee chore(): update to ionic-rules/strict 2018-07-29 23:10:38 +02:00
92e21a8cf3 fix(all): updated tslint rules to latest 2018-07-29 13:03:47 +02:00
12d8174307 style(components): import statements should be one line 2018-07-18 10:20:34 -04:00
1d3eb3fabf fix(virtual-scroll): read viewport size for every scroll event 2018-07-11 20:17:01 +02:00
a7f1f4daa7 refactor(components): update to use shadow DOM and work with css variables
- updates components to use shadow DOM or scoped if they require css variables
- moves global styles to an external stylesheet that needs to be imported
- adds support for additional colors and removes the Sass loops to generate colors for each component
- several property renames, bug fixes, and test updates

Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com>
Co-authored-by: Adam Bradley <adambradley25@gmail.com>
Co-authored-by: Cam Wiegert <cam@camwiegert.com>
2018-07-09 12:57:21 -04:00
128ed60510 chore(package): update stencil 2018-05-30 12:01:44 -05:00
df8a4f79f2 fix(virtual-scroll): linting 2018-05-10 17:21:21 +02:00
012127dd7c fix(virtual-scroll): JSX can render headers and footers 2018-05-10 17:17:33 +02:00
8b1452c5c1 fix(lint): import order 2018-04-26 20:18:57 +02:00
053c375521 refactor(all): allow external imports 2018-04-24 16:12:02 +02:00
4ea8881f33 refactor(all): enable strictPropertyInitialization 2018-04-19 18:48:38 +02:00
78bd146ad2 fix(prerender): local references to window/document 2018-04-19 13:26:49 +02:00
2aa2e6f3ca docs(components): update grammar and docs 2018-04-18 11:58:21 -06:00
c1cbbc52d2 fix(virtual-scroll): queue.write 2018-04-14 11:45:08 +02:00
d623b3b71f feat(queue): use stencil's queue controller for dom read/writes 2018-04-11 15:24:49 -05:00
f39d3ad9dd feat(angular): ion-nav 2018-03-20 18:00:37 +01:00
d37623a2ca chore(packages): move the packages to root 2018-03-12 16:02:25 -04:00