+
+
+
${msg("Search returned no results.")}
+
+
`;
+ }
+}
diff --git a/web/src/user/LibraryPage/ApplicationSearch.ts b/web/src/user/LibraryPage/ak-library-application-search.ts
similarity index 79%
rename from web/src/user/LibraryPage/ApplicationSearch.ts
rename to web/src/user/LibraryPage/ak-library-application-search.ts
index 7e6f40f53ad8..013c968ad70a 100644
--- a/web/src/user/LibraryPage/ApplicationSearch.ts
+++ b/web/src/user/LibraryPage/ak-library-application-search.ts
@@ -13,11 +13,30 @@ import PFDisplay from "@patternfly/patternfly/utilities/Display/display.css";
import type { Application } from "@goauthentik/api";
-import { SEARCH_ITEM_SELECTED, SEARCH_UPDATED } from "./constants";
-import { customEvent } from "./helpers";
-
-@customElement("ak-library-list-search")
-export class LibraryPageApplicationList extends AKElement {
+import {
+ LibraryPageSearchEmpty,
+ LibraryPageSearchReset,
+ LibraryPageSearchSelected,
+ LibraryPageSearchUpdated,
+} from "./events.js";
+
+/**
+ * @element ak-library-list-search
+ *
+ * @class LibraryPageApplicationSearch
+ *
+ * @classdesc
+ *
+ * The interface between our list of applications shown to the user, an input box, and the Fuse
+ * fuzzy search library.
+ *
+ * @fires LibraryPageSearchUpdated
+ * @fires LibraryPageSearchEmpty
+ * @fires LibraryPageSearchReset
+ *
+ */
+@customElement("ak-library-application-search")
+export class LibraryPageApplicationSearch extends AKElement {
static get styles() {
return [
PFBase,
@@ -75,11 +94,7 @@ export class LibraryPageApplicationList extends AKElement {
}
onSelected(apps: FuseResult