Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lists #530

Merged
merged 146 commits into from
Aug 1, 2018
Merged
Show file tree
Hide file tree
Changes from 143 commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
05027ba
feat(list): add list components
yggg Jun 21, 2018
fe70051
feat(infinite-list): add infinite-list component
yggg Jun 21, 2018
2b3291c
feat(infinite-scroll): remove default threshold
yggg Jun 21, 2018
7ed8963
fix(infinite-scroll): add missing styles
yggg Jun 21, 2018
0704c79
fix(scroll-threshold): check threshold using full width of element
yggg Jun 21, 2018
a2a9d9f
style(scroll-threshold): remove unused imports
yggg Jun 21, 2018
7c19955
style(scroll-directive): consistent event handlers names
yggg Jun 24, 2018
0f17002
feat(scroll-directive): add unit tests
yggg Jun 25, 2018
4aba965
feat(nb-list): add docs
yggg Jun 25, 2018
8bce7da
feat(infinite-list): add docs and showcase
yggg Jun 25, 2018
32ca889
fix(scroll-directive.spec): move component declaration to top
yggg Jun 27, 2018
d59ee1a
feat(unit-tests): suppress output for skipped tests
yggg Jun 27, 2018
f7a21e9
feat(infinite-list): app paging in url
yggg Jun 28, 2018
0063177
feat(infinite-list): handle start from any page
yggg Jun 28, 2018
5ba3791
fix(infinite-scroll): update page only when element is fully visible
yggg Jun 28, 2018
c5ad391
refactor(infinite-scroll): remove paging
yggg Jun 29, 2018
602bfa1
feat(card): ability to pass arbitrary content directly into card
yggg Jun 29, 2018
9b1e755
feat(nb-list): add basic styles
yggg Jun 29, 2018
c80be9e
feat(nb-list): better example
yggg Jun 30, 2018
73d78bd
fix(nb-list docs): update route to match file name
yggg Jun 30, 2018
fafc8cf
style(nb-list docs): better example text
yggg Jun 30, 2018
b7af60e
fix(playground): remove unused import
yggg Jun 30, 2018
616822d
fix(playground): remove usage of deleted component
yggg Jun 30, 2018
1a6cd6f
docs(nb-list): add users list example
yggg Jun 30, 2018
a1a6cc9
refactor(playground): move infinite list in a separate directory
yggg Jun 30, 2018
0c7de99
refactor(infinite-list): simplify styles for element scroll mode
yggg Jun 30, 2018
1b544fc
fix(infinite-list-docs): correct example path
yggg Jun 30, 2018
35b1144
refactor(scroll-directive): use single event for document and layout …
yggg Jul 4, 2018
79e267a
docs(nb-card): document ability to pass content directly to card
yggg Jul 4, 2018
d4a275c
feat(nb-list): use tabs separator color
yggg Jul 4, 2018
9ffe7bb
refactor(nb-list): remove unnecessary flex
yggg Jul 4, 2018
f4b9ea3
feat(nb-lists): add components icons
yggg Jul 4, 2018
b6eb5e1
style(infinite-list): remove unused imports
yggg Jul 4, 2018
79c24df
style(nb-infinite-list): remove unnecessary colon
yggg Jul 4, 2018
9672633
refactor(infinite list examples): extract common code into base class
yggg Jul 4, 2018
5561317
fix(infinite scroll): use auto load button only when available, chang…
yggg Jul 4, 2018
19473f7
feat(infinite-list): add load more button directive
yggg Jul 4, 2018
bb2275a
style(infinite-list example): remove unnucessary bindings
yggg Jul 4, 2018
69b6927
fix(infinite-list): trigger change detection after changing button state
yggg Jul 5, 2018
40557e3
feat(nb-list): make list block level
yggg Jul 5, 2018
6e635eb
fix(nb-infinite-list): nb-list occupy all remaining space
yggg Jul 5, 2018
9798dd5
style(nb-infinite-list): add buttons to examples
yggg Jul 5, 2018
1f78aa9
feat(lists): add exports of list components
yggg Jul 5, 2018
730cfb2
feat(nb-infinite-list): hide auto load button when auto loading enabled
yggg Jul 5, 2018
a4888c3
fix(nb-infinite-list): resubscribe to clicks if buttons was changed
yggg Jul 5, 2018
3385428
docs(infinite-list): document public api
yggg Jul 5, 2018
6f53ccd
docs(infinite-list): add images list
yggg Jul 6, 2018
e74843d
fix(image-list): remove unused method
yggg Jul 6, 2018
8689321
docs(infinite-list): initial news list example
yggg Jul 6, 2018
a61894e
docs(infinite-list): add paging
yggg Jul 6, 2018
96a2cba
refactor(id-with-post): convert isLoading to getter
yggg Jul 7, 2018
53b666b
style(infinite-list): add semicolon
yggg Jul 9, 2018
4b1e274
docs(card): change spelling
yggg Jul 9, 2018
4cd4784
refactor(scroll-directive): dispatch scroll event on window
yggg Jul 9, 2018
3283305
docs(nb-list): add styles section
yggg Jul 9, 2018
a8bee45
feat(nb-scroll): emit events only if scrolled in according direction
yggg Jul 9, 2018
a65e875
docs(news-infinite-list): add news page component
yggg Jul 9, 2018
8cec130
docs(nb-infinite-list): simplify news example
yggg Jul 10, 2018
4fcb9e6
docs(infinite-list): extract news post components into own file
yggg Jul 10, 2018
7edc26f
fix(nb-layout): listen scroll on proper component
yggg Jul 11, 2018
3db0a51
feat(nbListPager): add list pager directive
yggg Jul 11, 2018
7b43f57
fix(docs): remove deleted component
yggg Jul 12, 2018
87b70b0
fix(nb-layout): read scroll info from proper component
yggg Jul 12, 2018
b7bd231
fix(news-example): page update after prepending items
yggg Jul 12, 2018
0fa5f07
fix(scroll-directive): take into account viewport height
yggg Jul 12, 2018
27b3744
docs(news-example): make news posts smaller
yggg Jul 12, 2018
9a1dba6
feat(list-pager): add start page input
yggg Jul 12, 2018
367d222
Merge branch 'master' into feature/lists
yggg Jul 20, 2018
299eddc
Merge branch 'master' into feature/lists
yggg Jul 20, 2018
0ed0578
refactor(scroll directive): use scroll service
yggg Jul 23, 2018
e599dfc
Merge branch 'master' into feature/lists
nnixaa Jul 23, 2018
5ba615e
test(scroll threshold): add layout scroll tests, refactor
yggg Jul 23, 2018
0a286c6
fix(scroll threshold): simplify direction check
yggg Jul 23, 2018
fdcc169
test(scroll threshold): check that position checked only when needed
yggg Jul 23, 2018
37c4d59
Merge branch 'feature/lists' of https://github.com/yggg/nebular into …
yggg Jul 23, 2018
cee0099
refactor(infinite list): remove buttons
yggg Jul 23, 2018
c631d65
style: remove unused import
yggg Jul 24, 2018
59ee76e
Merge branch 'master' into feature/lists
yggg Jul 24, 2018
a71c79c
feat(list pager): add intersection observer polyfill
yggg Jul 25, 2018
7614679
docs(infinite list): restore scroll position after prepending
yggg Jul 25, 2018
0793133
docs(infinite scroll): use news list as showcase, remove basic example
yggg Jul 25, 2018
76b310a
feat(list pager): include intersection observer in lock file
yggg Jul 25, 2018
df50a73
style(infinite list): remove unnecessary styles
yggg Jul 25, 2018
5755b98
style(list pager): change event name
yggg Jul 25, 2018
a277f38
docs(infinite list): extract card example in separate component
yggg Jul 25, 2018
011e67f
refactor(list pager): lock observer package version
yggg Jul 25, 2018
9e86607
refactor(infinite list): remove component, leave infinite list directive
yggg Jul 25, 2018
e9e055e
style: remove unused import
yggg Jul 25, 2018
7b90f7e
fix(infinite list): delete export of remove component
yggg Jul 25, 2018
1d1a8ba
refactor(infinite list): move infintie directive in list module
yggg Jul 25, 2018
60e3b01
fix(infinite list): remove import of deleted module
yggg Jul 25, 2018
1b5da6a
test(infinite list): use updated directive
yggg Jul 25, 2018
b1af6cb
docs(infinite list): update examples to use new directive
yggg Jul 25, 2018
bc8e142
Merge branch 'master' into feature/lists
yggg Jul 25, 2018
76166c5
Merge branch 'master' into feature/lists
yggg Jul 25, 2018
a44a5f2
feat(list items group): remove group component
yggg Jul 25, 2018
fae4c3b
docs(infinite list): add more news
yggg Jul 26, 2018
d9a4522
docs(infinite list): fix paging in news examples
yggg Jul 26, 2018
770bd0f
Merge branch 'feature/lists' of https://github.com/yggg/nebular into …
yggg Jul 26, 2018
b60b1a0
docs(infinite list): decrease news loading delay
yggg Jul 26, 2018
14069b2
fix(list pager): check if element already removed
yggg Jul 26, 2018
3e86825
docs(infinite list): pass page size to news service
yggg Jul 26, 2018
c1276bd
feat(infinite list): add init and list items change checks
yggg Jul 26, 2018
4844b3b
docs(infinite list): do not erase query parameters
yggg Jul 26, 2018
49363b7
docs(infintie list): set placeholders to average height
yggg Jul 26, 2018
9a7528b
build: add intersection observer polyfill to rollup config
yggg Jul 26, 2018
c4321d1
fix(infinite list): export class used in public method
yggg Jul 26, 2018
eddefda
Merge branch 'master' into feature/lists
yggg Jul 26, 2018
28c4cd3
test(infinite scroll): use fakeAsync for outputs tests
yggg Jul 26, 2018
11a4a39
feat(infinite list): add directive module exports
yggg Jul 26, 2018
d88a76a
test: change imports paths
yggg Jul 27, 2018
55b95bf
test(list pager): add pager tests
yggg Jul 27, 2018
3e3e137
Merge branch 'master' into feature/lists
yggg Jul 27, 2018
7d7e3f0
docs(infinite list): remove images example
yggg Jul 27, 2018
18c4754
docs(infinite list): style tweaks
yggg Jul 27, 2018
58f17c7
Merge branch 'feature/lists' of https://github.com/yggg/nebular into …
yggg Jul 27, 2018
81c0279
docs(infinite list): limit examples height
yggg Jul 28, 2018
0a3b850
Merge branch 'master' into feature/lists
nnixaa Jul 28, 2018
b0732de
docs(infinite list): restore initial scroll restoration
yggg Jul 28, 2018
0fc12d7
test(infinite list): add more initial page tests
yggg Jul 28, 2018
63edbc8
docs(infinite list): set height only on card without size
yggg Jul 28, 2018
203d4d7
test(infinite list): turn auto change detection on
yggg Jul 28, 2018
0b1cb83
test(infinite list): start page tests, refactoring
yggg Jul 28, 2018
77f4e21
Merge branch 'feature/lists' of https://github.com/yggg/nebular into …
yggg Jul 28, 2018
97b69ee
refactor(list): use flex
yggg Jul 30, 2018
eed76cd
docs(infinite list): fix styles overlapping
yggg Jul 30, 2018
ecb7f37
docs(infinite list): add additional window check
yggg Jul 30, 2018
ccf6256
docs(infinite list): update examples styles
yggg Jul 30, 2018
848400c
feat(spinner): add export of spinner directive
yggg Jul 30, 2018
f91cc69
docs(infinite list): refactor examples
yggg Jul 30, 2018
7a70eda
Merge branch 'master' into feature/lists
yggg Jul 30, 2018
dd35a30
fix(card): remove redundant ng-content
yggg Jul 30, 2018
4ccde5c
docs(infinite list): refactor examples, add to docs
yggg Jul 30, 2018
def66be
Merge branch 'master' into feature/lists
yggg Jul 30, 2018
984b543
fix(list): disable list items shrinking
yggg Jul 30, 2018
80d3c00
refactor(list pager): rename
yggg Jul 31, 2018
ab51ba5
docs(infinite list): move service to components
yggg Jul 31, 2018
50c99b6
docs(infinite list): use theme vars for backgroundˆ
yggg Jul 31, 2018
20d3ae5
style(infinite list): more obvious import
yggg Jul 31, 2018
1a4473d
docs(infinite list): add code example and scroll restoration note
yggg Jul 31, 2018
31bf759
style(playground): remove unused importˆ
yggg Jul 31, 2018
837342c
docs(infinite list): rephrase
yggg Jul 31, 2018
54e8923
Merge branch 'master' into feature/lists
yggg Jul 31, 2018
098fbf4
docs(infinite list): add link to example
yggg Aug 1, 2018
26b420f
Merge branch 'feature/lists' of https://github.com/yggg/nebular into …
yggg Aug 1, 2018
1753def
Merge branch 'master' into feature/lists
yggg Aug 1, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
352 changes: 352 additions & 0 deletions docs/assets/data/news.json

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/assets/images/components/infinite-scroll.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions docs/assets/images/components/list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion docs/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,23 @@ export const structure = [
'NbAccordionItemBodyComponent',
],
},
{
type: 'tabs',
name: 'List',
icon: 'list.svg',
source: [ 'NbListComponent', 'NbListItemComponent' ],
},
{
type: 'tabs',
name: 'Infinite List',
icon: 'infinite-scroll.svg',
source: [ 'NbInfiniteListDirective', 'NbListPageTrackerDirective' ],
},
{
type: 'tabs',
name: 'Input',
icon: 'input.svg',
source: ['NbInputDirective'],
source: [ 'NbInputDirective' ],
},
],
},
Expand Down
3 changes: 3 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ module.exports = function (config) {
environment: 'dev'
},
reporters: ['spec', 'kjhtml'],
specReporter: {
suppressSkipped: true,
},
port: 9876,
browserNoActivityTimeout : 60000,
colors: true,
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"docsearch.js": "^2.5.2",
"gulp-bump": "2.7.0",
"highlight.js": "9.12.0",
"intersection-observer": "0.5.0",
"ionicons": "2.0.1",
"jasmine-fail-fast": "2.0.0",
"leaflet": "1.0.3",
Expand Down
1 change: 1 addition & 0 deletions scripts/gulp/tasks/bundle/rollup-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const ROLLUP_GLOBALS = {
'rxjs/operators': 'Rx.operators',

// 3rd party dependencies
'intersection-observer': 'intersection-observer',

// @nebular dependencies
'@nebular/theme': 'nb.theme',
Expand Down
Loading