]> git.evergreen-ils.org Git - Evergreen.git/commit
lp1187993: Replace dojo autocomplete with accessible autocomplete
authorJane Sandberg <js7389@princeton.edu>
Thu, 23 Mar 2023 02:14:28 +0000 (19:14 -0700)
committerJane Sandberg <js7389@princeton.edu>
Fri, 10 Nov 2023 22:30:56 +0000 (14:30 -0800)
commit8d150e9c44dc5b850aaa51d7d77c623f07ac8b56
tree87a3395f013fb5be255a6d37c13e4ee19130589d
parente4288874c5ba6bbf6004f8fba038549d4d58d511
lp1187993: Replace dojo autocomplete with accessible autocomplete

This autocomplete uses vanilla javascript to implement
the Combobox With List Autocomplete pattern from the
Aria Authoring Practices. This commit uses ES modules.

It makes use of some bootstrap styles.  It should be
compatible with both bootsrap 4 and 5.  It theoretically
works on the non-bootstrap TPAC as well, but will
likely need some design work to be satisfying in that
interface.

Otherwise, this autocomplete JS uses the same APIs as
the previous interface did.

Also included is a small test suite and an eslint
configuration.

Use Nodejs 18.18.0

Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
21 files changed:
Open-ILS/src/extras/Makefile.install
Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2
Open-ILS/src/templates-bootstrap/opac/parts/js.tt2
Open-ILS/src/templates-bootstrap/opac/parts/searchbar.tt2
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/src/templates/opac/parts/searchbar.tt2
Open-ILS/web/js/dojo/openils/AutoSuggestStore.js [deleted file]
Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js [deleted file]
Open-ILS/web/js/ui/default/opac/.eslintrc.json [new file with mode: 0644]
Open-ILS/web/js/ui/default/opac/autosuggest.module.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/opac/debouncer.module.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/opac/package.json [new file with mode: 0644]
Open-ILS/web/opac/deps/package-lock.json
Open-ILS/web/opac/deps/package.json
Open-ILS/web/opac/tests/.eslintrc.json [new file with mode: 0644]
Open-ILS/web/opac/tests/autosuggest.spec.module.js [new file with mode: 0644]
Open-ILS/web/opac/tests/debouncer.spec.module.js [new file with mode: 0644]
Open-ILS/web/opac/tests/package.json [new file with mode: 0644]
docs/TechRef/AutoSuggest/README
docs/modules/admin/pages/auto_suggest_search.adoc
docs/modules/installation/pages/server_installation.adoc