lp1187993: Replace dojo autocomplete with accessible autocomplete user/sandbergja/lp1187993-accessible-autocomplete
authorJane Sandberg <js7389@princeton.edu>
Thu, 23 Mar 2023 02:14:28 +0000 (19:14 -0700)
committerJane Sandberg <js7389@princeton.edu>
Tue, 18 Apr 2023 02:12:11 +0000 (19:12 -0700)
commit39cd247e46571e8893b917a8b18550570fb14c9f
tree95c88375eccc37743137a736aa82638f1e2c21d1
parent377158f2569e4987941c0e4a5f6958d3c247f1e3
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,
denoted by the .mjs extension.

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.

Signed-off-by: Jane Sandberg <js7389@princeton.edu>
18 files changed:
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.mjs [new file with mode: 0644]
Open-ILS/web/js/ui/default/opac/debouncer.mjs [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.mjs [new file with mode: 0644]
Open-ILS/web/opac/tests/debouncer.spec.mjs [new file with mode: 0644]
docs/TechRef/AutoSuggest/README
docs/modules/admin/pages/auto_suggest_search.adoc
docs/modules/installation/pages/server_installation.adoc