stable

Clone or download

Read-only

feat: have a LazyAutocompleter

part of story #35821 Pull request new home page - Filter on Authors This contribution introduces a new custom-element in @tuleap/lazybox. This new element aims to be a "light" version of Lazybox, without dropdown toggling, selection display, multiple values handling nor item creation. It will be used in @tuleap/plugin-pullrequests-selectors-dropdown to create filters. How to test: - Go to the tlp documentation --> There is a section "Lazy Autocompleter" --> It contains a live example of the LazyAutocompleter Change-Id: Ie26071f3e1461412928b78296bbfbc6bea6776e2

Modified Files

Name
M lib/frontend/lazybox/pnpm-lock.yaml +4 −4 Go to diff View file
A lib/frontend/lazybox/src/CreateLazyAutocompleter.test.ts +34 −0 Go to diff View file
A lib/frontend/lazybox/src/CreateLazyAutocompleter.ts +37 −0 Go to diff View file
A lib/frontend/lazybox/src/LazyAutocompleterElement.test.ts +99 −0 Go to diff View file
A lib/frontend/lazybox/src/LazyAutocompleterElement.ts +104 −0 Go to diff View file
M lib/frontend/lazybox/src/Options.ts +9 −0 Go to diff View file
A lib/frontend/lazybox/src/autocompleter/Selection.test.ts +52 −0 Go to diff View file
A lib/frontend/lazybox/src/autocompleter/Selection.ts +35 −0 Go to diff View file
M lib/frontend/lazybox/src/main.ts +1 −0 Go to diff View file
A lib/frontend/lazybox/tests/builders/OptionsAutocompleterBuilder.ts +55 −0 Go to diff View file
M lib/frontend/lazybox/themes/style.scss +10 −0 Go to diff View file
M src/scripts/tlp-doc/src/editors.js +5 −0 Go to diff View file
A src/scripts/tlp-doc/src/lazy-autocompleter.js +92 −0 Go to diff View file
A src/www/tlp-doc/resources/forms/lazy-autocompleter/doc.html +62 −0 Go to diff View file
A src/www/tlp-doc/resources/forms/lazy-autocompleter/example.html +45 −0 Go to diff View file
A src/www/tlp-doc/resources/forms/lazy-autocompleter/manifest.json +3 −0 Go to diff View file
M src/www/tlp-doc/resources/forms/manifest.json +1 −0 Go to diff View file