VectorGOLEM/resources/skins.vector.search
Nicholas Ray 93745e4800 Add search to sticky header
Per T289724#7342741, server renders an anchor tag pointing to #p-search
into the "button-start" bucket of the sticky header.

In the future after T289718, this anchor will then acts as a button when
the search module is loaded and searchToggle executes.

* skins.vector.search was modified to accomodate instantiating multiple
search components (one in the main header and one in the sticky
header).

* searchToggle.js was modified to accept a searchToggle element as a
param which the caller can then instantiate when ideal. For the sticky
header toggle, this needs to happen *after* the search module loads.
Before then, the toggle will act as a link.

* Drops one jQuery usage from searchToggle so that it can be jQuery
free. Because the native .closest method is used, IE11 support is also
dropped. However, the script feature detects and returns early if the
API isn't available.

* Makes App.vue accept an `id` prop so that multiple instances of it can
be created.

Bug: T289724
Change-Id: I1c5e6eee75918a0d06562d07c31fdcbd5a4ed6d5
2021-09-14 16:58:07 -07:00
..
App.vue Add search to sticky header 2021-09-14 16:58:07 -07:00
config.json.d.ts Add Wvui Config to show/hide thumbnails and descriptions 2020-12-08 13:28:42 -08:00
instrumentation.js Silence eslint compat/compat for search performance instrumentation 2021-05-05 14:37:35 -06:00
skins.vector.search.js Add search to sticky header 2021-09-14 16:58:07 -07:00
types.js [search] Instrument Vue.js-based search widget 2020-12-08 23:41:19 +00:00