-
Notifications
You must be signed in to change notification settings - Fork 160
IgxTree Implementation #8945
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
Merged
Merged
IgxTree Implementation #8945
Changes from 37 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
0c07a75
feat(tree): add IgxTree, initial commit, #7475
ViktorSlavov 9e67bb8
chore(*): BiState implementation
a3e40e3
chore(tree): modify template to incorporate future Drag-drop requirem…
ViktorSlavov 4ccc506
chore(tree): tree styling, initial commit
1f7e793
chore(tree): cascade selection implementation
MonikaKirkova e65fe55
ci(azure): remove tree tests from `non-grid` test batch
ViktorSlavov 2e4477f
chore(tree): cleanup, add API docs, refactor common test functions
ViktorSlavov b1c0e66
chore(tree): revert treenode.children to querylist, add comment
ViktorSlavov 1eedbe4
chore(tree): fix failing tests by properly passing jasmine.createSpyO…
ViktorSlavov c55ccb4
chore(tree): add styling for disabled states, add indentation per node
ViktorSlavov a866f4b
chore(tree): fix lint, add expandedChange event
ViktorSlavov c35e51d
chore(tree): remove duplicate sass variable
ViktorSlavov c090034
chore(tree): initial navigation implementation
8f8ad0f
chore(tree): adding node styles, use focused class selector
513a600
chore(tree): use actual focus for navigation, add disabled handling
ViktorSlavov 324e16b
chore(tree): cleanup old styles, rename styles, update all themes
3ce31a9
refactor(tree): refactor tree nav, cleanup unused snippets
ViktorSlavov 73891c0
chore(tree): fix rebase conflicts
ViktorSlavov d491ad5
chore(tree): add display density, include tree resource string in output
ViktorSlavov 38db659
chore(tree): add loading input, add `load-on-demand` node in sample
ViktorSlavov f2ea450
refactor(theme): address issues, update control flow statement
desig9stein 8ad596d
chore(tree): road-to-100% coverage, WIP
ViktorSlavov 89cfceb
Merge remote-tracking branch 'remotes/origin/master' into vslavov/tre…
ViktorSlavov 2255ee9
chore(tree): fix typo in tree theme
ViktorSlavov d72fff6
chore(tree): keyboard navigation tests
teodosiah 7d58970
chore(tree): destroy services in unit test, add test for events
ViktorSlavov 09e30d2
chore(tree): update tree-node roles, add basic tests
ViktorSlavov a22283a
Merge pull request #9280 from IgniteUI/thristodorova/tree-navigation-…
ViktorSlavov 916d47b
chore(tree): api documentation refactoring
teodosiah e7d1024
chore(tree): handle node selection for add/delete nodes, prune public…
ViktorSlavov 377ef49
test(tree): rename public children property in mock generators
ViktorSlavov c6eb6a5
Merge branch 'master' into vslavov/tree-POC
simeonoff 5bbf8eb
test(tree): organize nav tests, add configureSuite to each, xit failing
ViktorSlavov 3a36b6e
docs(tree): add README, CHANGELOG entry, update product README table
ViktorSlavov 9e208d3
Merge branch 'master' into vslavov/tree-POC
simeonoff 6ee3cea
chore(tree): cleanup sample, re-export IgxTree interfaces
ViktorSlavov 580013e
Merge branch 'master' into vslavov/tree-POC
simeonoff 7949bb4
Merge branch 'master' into vslavov/tree-POC
Lipata a93282b
Merge branch 'master' into vslavov/tree-POC
kdinev 37f0298
Addressing review comment about changelog
kdinev cd08cd2
chore(tree): address review comments
ViktorSlavov 12dee65
test(tree): add missing `owner` properties in selection tests
ViktorSlavov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
projects/igniteui-angular/src/lib/core/i18n/tree-resources.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface ITreeResourceStrings { | ||
igx_expand?: string; | ||
igx_collapse?: string; | ||
} | ||
|
||
export const TreeResourceStringsEN: ITreeResourceStrings = { | ||
igx_expand: 'Expand', | ||
igx_collapse: 'Collapse', | ||
}; |
86 changes: 86 additions & 0 deletions
86
projects/igniteui-angular/src/lib/core/styles/components/tree/_tree-component.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
//// | ||
/// @group components | ||
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a> | ||
/// @requires {mixin} bem-block | ||
/// @requires {mixin} bem-elem | ||
/// @requires {mixin} bem-mod | ||
//// | ||
|
||
@include b(igx-tree) { | ||
@extend %tree-display !optional; | ||
} | ||
|
||
@include b(igx-tree-node) { | ||
$this: bem--selector-to-string(&); | ||
@include register-component(str-slice($this, 2, -1)); | ||
|
||
@extend %tree-node !optional; | ||
|
||
@include e(wrapper) { | ||
@extend %node-wrapper !optional; | ||
|
||
&:hover { | ||
&::after { | ||
@extend %indigo-opacity !optional; | ||
} | ||
} | ||
} | ||
|
||
@include e(wrapper, $m: cosy) { | ||
@extend %node-wrapper--cosy !optional; | ||
} | ||
|
||
@include e(wrapper, $m: compact) { | ||
@extend %node-wrapper--compact !optional; | ||
} | ||
|
||
// STATES START | ||
@include e(wrapper, $m: selected) { | ||
@extend %node-wrapper--selected !optional; | ||
} | ||
|
||
@include e(wrapper, $m: active) { | ||
@extend %node-wrapper--active !optional; | ||
} | ||
|
||
@include e(wrapper, $mods: (active, selected)) { | ||
@extend %node-wrapper--active-selected !optional; | ||
} | ||
|
||
@include e(wrapper, $m: focused) { | ||
@extend %node-wrapper--focused !optional; | ||
} | ||
|
||
@include e(wrapper, $m: disabled) { | ||
@extend %node-wrapper--disabled !optional; | ||
} | ||
// STATES END | ||
|
||
@include e(content) { | ||
@extend %node-content !optional; | ||
} | ||
|
||
@include e(spacer) { | ||
@extend %node-spacer !optional; | ||
} | ||
|
||
@include e(toggle-button) { | ||
@extend %node-toggle-button !optional; | ||
} | ||
|
||
@include e(toggle-button, $m: hidden) { | ||
@extend %node-toggle-button--hidden !optional; | ||
} | ||
|
||
@include e(drop-indicator) { | ||
@extend %node-drop-indicator !optional; | ||
} | ||
|
||
@include e(select) { | ||
@extend %node-select !optional; | ||
} | ||
|
||
@include e(group) { | ||
@extend %node-group !optional; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.