-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chips): chip templates + object list support + async loading sup…
…port. (closes #252) (closes #359) (closes #601) (#626) * feat(chips): ability to use object lists and set templates for both autocomplete and chips this will be the base to support contact chips. First we need to make sure it works fine with objects and strings, and add good a11y around this. * chore(chips): update demo with a better example * feat(chips): make children be centered and vertical aligned (including children in templates) * chore(chips): remove unused CSS rule for datalist * fx(chips): remove [Object] value when adding an object from the autocomplete in a11y mode * fix(chips): delete by index rather than by value * *BREAKING CHANGE* feat(chips): abstract the autocomplete filtering and add debounce input it makes more sense to have the filtering done outside of chips and provide examples on how to achieve it since this way chips are agnostic of local vs server side filtering + string vs object filtering * chore(chips): update README.md and codeblocks in inputs/outputs * feat(chips): add [td-autocomplete-header] to be able to add a loader or something on long filters * chore(chips): remove td-autocomplete-header and have it inject anything under chips * chore(chips): update demos and load README.md in docs * fix(): chips README.md not loading highlight correctly * fix(chips): prevent chip duplication when pressing enter super fast * fix(chips): check for undefined value from input * perf(chips): support OnPush change detection * fix(chips): make 4th demo work again * fix(chips): validate against use case where selection happened without requireMatch * chore(chips): fix unit tests and add unit tests for new behavior * fix(chips): underline stops working in beta.6 * perf(chips): remove usage of async in autocomplete and use simple array beta.6 has some nuances around autocomplete so its needed to have more control * fix(): unit tests * chore(chips): make underline animatate the same way as material * fix(chips): keep focused state as long as you keep clicking inside the chips context * fix(): ninja fix mat-color function * feat(chips): make focused state remain while inside the chip context * chore(chips): polish code and add code blocks * fix(chips): block click event when clicking on host or td-chips-wrapper * fix(chips): a11y left + right arrows * chore(chips): modify the demos for a better chips experience * fix(chips): check if value is part of the ngModel * chore(chips): added more unit tests
- Loading branch information
1 parent
98eaf28
commit 22d4342
Showing
10 changed files
with
1,090 additions
and
357 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.