diff --git a/angular.json b/angular.json
index f3a7abdae..95d3aa1c3 100644
--- a/angular.json
+++ b/angular.json
@@ -1,5 +1,4 @@
{
- "$schema": "node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"defaultCollection": "@nrwl/angular",
@@ -9,12 +8,15 @@
"defaultProject": "red-ui",
"schematics": {
"@nrwl/angular:application": {
+ "linter": "eslint",
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
},
"@nrwl/angular:library": {
+ "linter": "eslint",
"unitTestRunner": "jest"
- }
+ },
+ "@nrwl/angular:component": {}
},
"projects": {
"red-ui": {
@@ -186,6 +188,28 @@
"style": "scss"
}
}
+ },
+ "common-ui": {
+ "projectType": "library",
+ "root": "libs/common-ui",
+ "sourceRoot": "libs/common-ui/src",
+ "prefix": "redaction",
+ "architect": {
+ "test": {
+ "builder": "@nrwl/jest:jest",
+ "outputs": ["coverage/libs/common-ui"],
+ "options": {
+ "jestConfig": "libs/common-ui/jest.config.js",
+ "passWithNoTests": true
+ }
+ },
+ "lint": {
+ "builder": "@nrwl/linter:eslint",
+ "options": {
+ "lintFilePatterns": ["libs/common-ui/src/**/*.ts", "libs/common-ui/src/**/*.html"]
+ }
+ }
+ }
}
}
}
diff --git a/apps/red-ui/src/app/app.component.html b/apps/red-ui/src/app/app.component.html
index 3ac47a12a..dbdf8372d 100644
--- a/apps/red-ui/src/app/app.component.html
+++ b/apps/red-ui/src/app/app.component.html
@@ -1,4 +1,2 @@
-
+
diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts
index e6788e007..b61e28269 100644
--- a/apps/red-ui/src/app/app.module.ts
+++ b/apps/red-ui/src/app/app.module.ts
@@ -32,6 +32,7 @@ import { GlobalErrorHandler } from '@utils/global-error-handler.service';
import { REDMissingTranslationHandler } from '@utils/missing-translations-handler';
import { configurationInitializer } from '@app-config/configuration.initializer';
import { AppConfigService } from '@app-config/app-config.service';
+import { SpotlightSearchComponent } from '@components/spotlight-search/spotlight-search.component';
export function httpLoaderFactory(httpClient: HttpClient) {
return new TranslateHttpLoader(httpClient, '/assets/i18n/', '.json');
@@ -49,7 +50,15 @@ function cleanupBaseUrl(baseUrl: string) {
const screens = [BaseScreenComponent, DownloadsListScreenComponent, UserProfileScreenComponent];
-const components = [AppComponent, LogoComponent, AuthErrorComponent, ToastComponent, NotificationsComponent, ...screens];
+const components = [
+ AppComponent,
+ LogoComponent,
+ AuthErrorComponent,
+ ToastComponent,
+ NotificationsComponent,
+ SpotlightSearchComponent,
+ ...screens
+];
@NgModule({
declarations: [...components],
diff --git a/apps/red-ui/src/app/components/base-screen/base-screen.component.html b/apps/red-ui/src/app/components/base-screen/base-screen.component.html
index a4e3893fd..8a5dbedc2 100644
--- a/apps/red-ui/src/app/components/base-screen/base-screen.component.html
+++ b/apps/red-ui/src/app/components/base-screen/base-screen.component.html
@@ -6,11 +6,7 @@
-
+
-
diff --git a/apps/red-ui/src/app/modules/shared/components/input-with-action/input-with-action.component.ts b/apps/red-ui/src/app/modules/shared/components/input-with-action/input-with-action.component.ts
index 10e87ca2b..cc00278b3 100644
--- a/apps/red-ui/src/app/modules/shared/components/input-with-action/input-with-action.component.ts
+++ b/apps/red-ui/src/app/modules/shared/components/input-with-action/input-with-action.component.ts
@@ -29,7 +29,7 @@ export class InputWithActionComponent {
}
clearContent() {
- this.form.patchValue({ query: '' });
+ this.form.patchValue({ query: '' }, { emitEvent: true });
}
executeAction($event?: MouseEvent) {
diff --git a/apps/red-ui/src/app/modules/shared/components/page-header/page-header.component.html b/apps/red-ui/src/app/modules/shared/components/page-header/page-header.component.html
index 1c9ef9031..7f6fa8bb4 100644
--- a/apps/red-ui/src/app/modules/shared/components/page-header/page-header.component.html
+++ b/apps/red-ui/src/app/modules/shared/components/page-header/page-header.component.html
@@ -1,7 +1,7 @@