From 189e8209593ac7e31dbfecd34d9fb32ab131d2b1 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Wed, 11 Oct 2023 18:02:53 -0600 Subject: [PATCH] format --- angular-update.md | 113 +++++++++--------- ...licated-merged-confirmed.component.spec.ts | 5 +- ...s-duplicated-merged-confirmed.component.ts | 5 +- ...ns-duplicated-two-factor-auth.component.ts | 5 +- .../dialog-actions-duplicated.component.ts | 5 +- ...alternate-account-delete.component.spec.ts | 5 +- ...rity-alternate-account-delete.component.ts | 5 +- ...tings-actions-duplicated.component.spec.ts | 5 +- ...curity-alternate-sign-in.component.spec.ts | 5 +- .../settings-sharing.component.spec.ts | 5 +- ...dividuals-your-own-email.component.spec.ts | 5 +- ...ed-individuals-your-own-email.component.ts | 5 +- ...ialog-add-trusted-individuals.component.ts | 5 +- ...og-revoke-trusted-individuals.component.ts | 5 +- ...g-revoke-trusted-organization.component.ts | 5 +- ...usted-individuals-search.component.spec.ts | 5 +- ...gs-trusted-individuals-search.component.ts | 5 +- ...ings-trusted-individuals.component.spec.ts | 5 +- ...gs-trusted-organizations.component.spec.ts | 5 +- ...gs-users-that-thrust-you.component.spec.ts | 5 +- .../settings-panels.component.spec.ts | 5 +- .../cdk/is-this-you/is-this-you.component.ts | 5 +- .../panel-source.component.spec.ts | 5 +- .../cdk/panel/panel/panel.component.spec.ts | 5 +- .../cdk/panel/panels/panels.component.spec.ts | 5 +- .../cdk/platform-info/browserlist.regexp.ts | 3 +- .../modal-keyword/modal-keyword.component.ts | 5 +- .../snackbar/snackbar/snackbar.component.ts | 5 +- ...p-bar-verification-email.component.spec.ts | 5 +- .../visibility-selector.component.ts | 3 +- .../verification-email-modal.service.spec.ts | 5 +- .../client-secret-modal.component.spec.ts | 5 +- .../client-secret-modal.component.ts | 5 +- .../authenticated-no-delagator.guard.ts | 9 +- src/app/guards/authenticated.guard.ts | 9 +- src/app/guards/authorize.guard.ts | 9 +- src/app/guards/language.guard.ts | 2 +- src/app/guards/link-account.guard.ts | 9 +- src/app/guards/register.guard.ts | 9 +- src/app/guards/sign-in.guard.ts | 9 +- .../third-party-signin-completed.guard.ts | 9 +- src/app/guards/two-factor-signin.guard.ts | 9 +- ...odal-funding-search-link.component.spec.ts | 5 +- .../modal-funding.component.spec.ts | 5 +- .../modal-funding/modal-funding.component.ts | 5 +- ...esearch-resource-stacks-group.component.ts | 5 +- .../modal-biography.component.spec.ts | 5 +- .../modal-biography.component.ts | 5 +- .../modals/modal-name/modal-name.component.ts | 5 +- .../top-bar/top-bar.component.spec.ts | 5 +- ...ork-external-identifiers-edit.component.ts | 5 +- .../work-form/work-form.component.spec.ts | 5 +- .../work-form/work-form.component.ts | 5 +- .../work-modal/work-modal.component.ts | 5 +- .../work-external-id-modal.component.spec.ts | 5 +- .../work-stack-group.component.spec.ts | 5 +- .../work-stack-group.component.ts | 10 +- ...l-combine-works-with-selector.component.ts | 5 +- .../form-notifications.component.spec.ts | 5 +- .../pages/register/register.component.spec.ts | 5 +- .../search/pages/search/search.component.ts | 5 +- .../print-errors.component.spec.ts | 5 +- tsconfig.json | 9 +- 63 files changed, 321 insertions(+), 136 deletions(-) diff --git a/angular-update.md b/angular-update.md index 0499f20c69..f7de05f17e 100644 --- a/angular-update.md +++ b/angular-update.md @@ -1,5 +1,4 @@ -________________________________________________________________________________ - +--- ng update @angular/core@16 @angular/cli@16 The installed Angular CLI version is outdated. @@ -9,24 +8,24 @@ Using package manager: yarn Collecting installed dependencies... Found 92 dependencies. Fetching dependency metadata from registry... - Updating package.json with dependency @angular-devkit/build-angular @ "16.2.6" (was "15.2.10")... - Updating package.json with dependency @angular-devkit/schematics @ "16.2.6" (was "15.2.10")... - Updating package.json with dependency @angular/cli @ "16.2.6" (was "15.2.10")... - Updating package.json with dependency @angular/compiler-cli @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/language-service @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency typescript @ "5.1.6" (was "4.8.4")... - Updating package.json with dependency @angular-devkit/core @ "16.2.6" (was "15.2.10")... - Updating package.json with dependency @angular/animations @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/common @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/compiler @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/core @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/forms @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/localize @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/platform-browser @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/platform-browser-dynamic @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/router @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency @angular/service-worker @ "16.2.8" (was "15.2.10")... - Updating package.json with dependency zone.js @ "0.13.3" (was "0.11.8")... +Updating package.json with dependency @angular-devkit/build-angular @ "16.2.6" (was "15.2.10")... +Updating package.json with dependency @angular-devkit/schematics @ "16.2.6" (was "15.2.10")... +Updating package.json with dependency @angular/cli @ "16.2.6" (was "15.2.10")... +Updating package.json with dependency @angular/compiler-cli @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/language-service @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency typescript @ "5.1.6" (was "4.8.4")... +Updating package.json with dependency @angular-devkit/core @ "16.2.6" (was "15.2.10")... +Updating package.json with dependency @angular/animations @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/common @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/compiler @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/core @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/forms @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/localize @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/platform-browser @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/platform-browser-dynamic @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/router @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency @angular/service-worker @ "16.2.8" (was "15.2.10")... +Updating package.json with dependency zone.js @ "0.13.3" (was "0.11.8")... UPDATE package.json (6057 bytes) ⠙ Installing packages... ⠹ Installing packages... @@ -34,19 +33,19 @@ UPDATE package.json (6057 bytes) ** Executing migrations of package '@angular/cli' ** ❯ Remove 'defaultProject' option from workspace configuration. - The project to use will be determined from the current working directory. - Migration completed (No changes made). +The project to use will be determined from the current working directory. +Migration completed (No changes made). ❯ Replace removed 'defaultCollection' option in workspace configuration with 'schematicCollections'. - Migration completed (No changes made). +Migration completed (No changes made). ❯ Update the '@angular-devkit/build-angular:server' builder configuration to disable 'buildOptimizer' for non optimized builds. - Migration completed (No changes made). +Migration completed (No changes made). ** Executing migrations of package '@angular/core' ** ❯ In Angular version 15.2, the guard and resolver interfaces (CanActivate, Resolve, etc) were deprecated. - This migration removes imports and 'implements' clauses that contain them. +This migration removes imports and 'implements' clauses that contain them. UPDATE src/app/guards/authenticated.guard.ts (848 bytes) UPDATE src/app/guards/sign-in.guard.ts (2282 bytes) UPDATE src/app/guards/authorize.guard.ts (3661 bytes) @@ -56,14 +55,12 @@ UPDATE src/app/guards/language.guard.ts (4575 bytes) UPDATE src/app/guards/third-party-signin-completed.guard.ts (2312 bytes) UPDATE src/app/guards/two-factor-signin.guard.ts (1058 bytes) UPDATE src/app/guards/authenticated-no-delagator.guard.ts (1379 bytes) - Migration completed (9 files modified). +Migration completed (9 files modified). ❯ As of Angular v16, the `moduleId` property of `@Component` is deprecated as it no longer has any effect. - Migration completed (No changes made). - - -________________________________________________________________________________ +Migration completed (No changes made). +--- ng update @angular/core@15 @angular/cli@15 The installed Angular CLI version is outdated. @@ -73,53 +70,53 @@ Using package manager: yarn Collecting installed dependencies... Found 94 dependencies. Fetching dependency metadata from registry... - Updating package.json with dependency @angular-devkit/build-angular @ "15.2.10" (was "14.2.11")... - Updating package.json with dependency @angular-devkit/schematics @ "15.2.10" (was "14.2.11")... - Updating package.json with dependency @angular/cli @ "15.2.10" (was "14.2.11")... - Updating package.json with dependency @angular/compiler-cli @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/language-service @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular-devkit/core @ "15.2.10" (was "14.2.11")... - Updating package.json with dependency @angular/animations @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/common @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/compiler @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/core @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/forms @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/localize @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/platform-browser @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/platform-browser-dynamic @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/router @ "15.2.10" (was "14.3.0")... - Updating package.json with dependency @angular/service-worker @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular-devkit/build-angular @ "15.2.10" (was "14.2.11")... +Updating package.json with dependency @angular-devkit/schematics @ "15.2.10" (was "14.2.11")... +Updating package.json with dependency @angular/cli @ "15.2.10" (was "14.2.11")... +Updating package.json with dependency @angular/compiler-cli @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/language-service @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular-devkit/core @ "15.2.10" (was "14.2.11")... +Updating package.json with dependency @angular/animations @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/common @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/compiler @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/core @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/forms @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/localize @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/platform-browser @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/platform-browser-dynamic @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/router @ "15.2.10" (was "14.3.0")... +Updating package.json with dependency @angular/service-worker @ "15.2.10" (was "14.3.0")... UPDATE package.json (6129 bytes) ✔ Packages successfully installed. ** Executing migrations of package '@angular/cli' ** ❯ Remove Browserslist configuration files that matches the Angular CLI default configuration. - Migration completed (No changes made). +Migration completed (No changes made). ❯ Remove exported `@angular/platform-server` `renderModule` method. - The `renderModule` method is now exported by the Angular CLI. - Migration completed (No changes made). +The `renderModule` method is now exported by the Angular CLI. +Migration completed (No changes made). ❯ Remove no longer needed require calls in Karma builder main file. UPDATE src/test.ts (507 bytes) - Migration completed (1 file modified). +Migration completed (1 file modified). ❯ Update TypeScript compiler `target` and set `useDefineForClassFields`. - These changes are for IDE purposes as TypeScript compiler options `target` and `useDefineForClassFields` are set to `ES2022` and `false` respectively by the Angular CLI. - To control ECMA version and features use the Browerslist configuration. +These changes are for IDE purposes as TypeScript compiler options `target` and `useDefineForClassFields` are set to `ES2022` and `false` respectively by the Angular CLI. +To control ECMA version and features use the Browerslist configuration. UPDATE tsconfig.json (630 bytes) - Migration completed (1 file modified). +Migration completed (1 file modified). ❯ Remove options from 'angular.json' that are no longer supported by the official builders. - Migration completed (No changes made). +Migration completed (No changes made). ** Executing migrations of package '@angular/core' ** ❯ In Angular version 15, the deprecated `relativeLinkResolution` config parameter of the Router is removed. - This migration removes all `relativeLinkResolution` fields from the Router config objects. +This migration removes all `relativeLinkResolution` fields from the Router config objects. UPDATE src/app/app-routing.module.ts (5473 bytes) - Migration completed (1 file modified). +Migration completed (1 file modified). ❯ Since Angular v15, the `RouterLink` contains the logic of the `RouterLinkWithHref` directive. - This migration replaces all `RouterLinkWithHref` references with `RouterLink`. - Migration completed (No changes made). \ No newline at end of file +This migration replaces all `RouterLinkWithHref` references with `RouterLink`. +Migration completed (No changes made). diff --git a/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.spec.ts b/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.spec.ts index f2730e176b..23b63a14f7 100644 --- a/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.spec.ts +++ b/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { DialogActionsDuplicatedMergedConfirmedComponent } from './dialog-actions-duplicated-merged-confirmed.component' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' describe('DialogActionsDuplicatedMergedConfirmedComponent', () => { let component: DialogActionsDuplicatedMergedConfirmedComponent diff --git a/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.ts b/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.ts index 792256ca5f..646f81021b 100644 --- a/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.ts +++ b/src/app/account-settings/components/dialog-actions-duplicated-merged-confirmed/dialog-actions-duplicated-merged-confirmed.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { DuplicateRemoveEndpoint } from 'src/app/types/account-actions-duplicated' import { environment } from 'src/environments/environment' diff --git a/src/app/account-settings/components/dialog-actions-duplicated-two-factor-auth/dialog-actions-duplicated-two-factor-auth.component.ts b/src/app/account-settings/components/dialog-actions-duplicated-two-factor-auth/dialog-actions-duplicated-two-factor-auth.component.ts index 117ab1404b..046eb84f71 100644 --- a/src/app/account-settings/components/dialog-actions-duplicated-two-factor-auth/dialog-actions-duplicated-two-factor-auth.component.ts +++ b/src/app/account-settings/components/dialog-actions-duplicated-two-factor-auth/dialog-actions-duplicated-two-factor-auth.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { OauthService } from 'src/app/core/oauth/oauth.service' import { DuplicateRemoveEndpoint } from 'src/app/types/account-actions-duplicated' diff --git a/src/app/account-settings/components/dialog-actions-duplicated/dialog-actions-duplicated.component.ts b/src/app/account-settings/components/dialog-actions-duplicated/dialog-actions-duplicated.component.ts index 10f2f066f3..d98c260617 100644 --- a/src/app/account-settings/components/dialog-actions-duplicated/dialog-actions-duplicated.component.ts +++ b/src/app/account-settings/components/dialog-actions-duplicated/dialog-actions-duplicated.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog' +import { + MatLegacyDialogRef as MatDialogRef, + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, +} from '@angular/material/legacy-dialog' import { PlatformInfoService } from 'src/app/cdk/platform-info' import { DuplicateRemoveEndpoint } from 'src/app/types/account-actions-duplicated' import { environment } from 'src/environments/environment' diff --git a/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.spec.ts b/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.spec.ts index c052ba2701..470bb6af72 100644 --- a/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.spec.ts +++ b/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { DialogSecurityAlternateAccountDeleteComponent } from './dialog-security-alternate-account-delete.component' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' describe('DialogSecurityAlternateAccountDeleteComponent', () => { let component: DialogSecurityAlternateAccountDeleteComponent diff --git a/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.ts b/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.ts index a17319a97e..f1d4cc6ed4 100644 --- a/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.ts +++ b/src/app/account-settings/components/dialog-security-alternate-account-delete/dialog-security-alternate-account-delete.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog' +import { + MatLegacyDialogRef as MatDialogRef, + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, +} from '@angular/material/legacy-dialog' import { SocialAccount } from 'src/app/types/account-alternate-sign-in.endpoint' @Component({ diff --git a/src/app/account-settings/components/settings-actions-duplicated/settings-actions-duplicated.component.spec.ts b/src/app/account-settings/components/settings-actions-duplicated/settings-actions-duplicated.component.spec.ts index 96944bcced..f3fb7fa6cb 100644 --- a/src/app/account-settings/components/settings-actions-duplicated/settings-actions-duplicated.component.spec.ts +++ b/src/app/account-settings/components/settings-actions-duplicated/settings-actions-duplicated.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsActionsDuplicatedComponent } from './settings-actions-duplicated.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { UntypedFormBuilder } from '@angular/forms' import { PlatformInfoService } from '../../../cdk/platform-info' diff --git a/src/app/account-settings/components/settings-security-alternate-sign-in/settings-security-alternate-sign-in.component.spec.ts b/src/app/account-settings/components/settings-security-alternate-sign-in/settings-security-alternate-sign-in.component.spec.ts index cbe186880c..3f02b4b7b1 100644 --- a/src/app/account-settings/components/settings-security-alternate-sign-in/settings-security-alternate-sign-in.component.spec.ts +++ b/src/app/account-settings/components/settings-security-alternate-sign-in/settings-security-alternate-sign-in.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsSecurityAlternateSignInComponent } from './settings-security-alternate-sign-in.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/account-settings/components/settings-sharing/settings-sharing.component.spec.ts b/src/app/account-settings/components/settings-sharing/settings-sharing.component.spec.ts index 18b398b72d..e2b3b7eb4f 100644 --- a/src/app/account-settings/components/settings-sharing/settings-sharing.component.spec.ts +++ b/src/app/account-settings/components/settings-sharing/settings-sharing.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsSharingComponent } from './settings-sharing.component' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' describe('SettingsSharingComponent', () => { diff --git a/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.spec.ts b/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.spec.ts index c59425f1f9..9d8a2e5cae 100644 --- a/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.spec.ts +++ b/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { DialogAddTrustedIndividualsYourOwnEmailComponent } from './dialog-add-trusted-individuals-your-own-email.component' import { HttpClientTestingModule } from '@angular/common/http/testing' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' describe('DialogAddTrustedIndividualsComponent', () => { let component: DialogAddTrustedIndividualsYourOwnEmailComponent diff --git a/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.ts b/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.ts index 8aa2d2eb70..54c57fa4da 100644 --- a/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.ts +++ b/src/app/account-trusted-parties/components/dialog-add-trusted-individuals-your-own-email/dialog-add-trusted-individuals-your-own-email.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { PlatformInfoService } from 'src/app/cdk/platform-info' import { ExpandedSearchResultsContent } from 'src/app/types' import { environment } from 'src/environments/environment' diff --git a/src/app/account-trusted-parties/components/dialog-add-trusted-individuals/dialog-add-trusted-individuals.component.ts b/src/app/account-trusted-parties/components/dialog-add-trusted-individuals/dialog-add-trusted-individuals.component.ts index b5b8ef4579..6ddfd04dfa 100644 --- a/src/app/account-trusted-parties/components/dialog-add-trusted-individuals/dialog-add-trusted-individuals.component.ts +++ b/src/app/account-trusted-parties/components/dialog-add-trusted-individuals/dialog-add-trusted-individuals.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { PlatformInfoService } from 'src/app/cdk/platform-info' import { ExpandedSearchResultsContent } from 'src/app/types' import { environment } from 'src/environments/environment' diff --git a/src/app/account-trusted-parties/components/dialog-revoke-trusted-individuals/dialog-revoke-trusted-individuals.component.ts b/src/app/account-trusted-parties/components/dialog-revoke-trusted-individuals/dialog-revoke-trusted-individuals.component.ts index 82e683c089..8aaecbdd02 100644 --- a/src/app/account-trusted-parties/components/dialog-revoke-trusted-individuals/dialog-revoke-trusted-individuals.component.ts +++ b/src/app/account-trusted-parties/components/dialog-revoke-trusted-individuals/dialog-revoke-trusted-individuals.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { PlatformInfoService } from 'src/app/cdk/platform-info' import { AccountTrustedIndividualsService } from 'src/app/core/account-trusted-individuals/account-trusted-individuals.service' import { AccountTrustedIndividual } from 'src/app/types/account-trusted-individuals' diff --git a/src/app/account-trusted-parties/components/dialog-revoke-trusted-organization/dialog-revoke-trusted-organization.component.ts b/src/app/account-trusted-parties/components/dialog-revoke-trusted-organization/dialog-revoke-trusted-organization.component.ts index eb7c5b6dad..a2fdc0a3b0 100644 --- a/src/app/account-trusted-parties/components/dialog-revoke-trusted-organization/dialog-revoke-trusted-organization.component.ts +++ b/src/app/account-trusted-parties/components/dialog-revoke-trusted-organization/dialog-revoke-trusted-organization.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { PlatformInfoService } from 'src/app/cdk/platform-info' import { AccountTrustedOrganization } from 'src/app/types/account-trusted-organizations' diff --git a/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.spec.ts b/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.spec.ts index a3597ee051..ba2f40aa68 100644 --- a/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.spec.ts +++ b/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsTrustedIndividualsSearchComponent } from './settings-trusted-individuals-search.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.ts b/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.ts index 58a5b6fd1a..2e4f423363 100644 --- a/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.ts +++ b/src/app/account-trusted-parties/components/settings-trusted-individuals-search/settings-trusted-individuals-search.component.ts @@ -1,7 +1,10 @@ import { LiveAnnouncer } from '@angular/cdk/a11y' import { Component, OnDestroy, OnInit } from '@angular/core' import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog' -import { MatLegacyPaginatorIntl as MatPaginatorIntl, LegacyPageEvent as PageEvent } from '@angular/material/legacy-paginator' +import { + MatLegacyPaginatorIntl as MatPaginatorIntl, + LegacyPageEvent as PageEvent, +} from '@angular/material/legacy-paginator' import { Observable, of, Subject } from 'rxjs' import { map, diff --git a/src/app/account-trusted-parties/components/settings-trusted-individuals/settings-trusted-individuals.component.spec.ts b/src/app/account-trusted-parties/components/settings-trusted-individuals/settings-trusted-individuals.component.spec.ts index 21b1d43c21..7b3eaee8f1 100644 --- a/src/app/account-trusted-parties/components/settings-trusted-individuals/settings-trusted-individuals.component.spec.ts +++ b/src/app/account-trusted-parties/components/settings-trusted-individuals/settings-trusted-individuals.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsTrustedIndividualsComponent } from './settings-trusted-individuals.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/account-trusted-parties/components/settings-trusted-organizations/settings-trusted-organizations.component.spec.ts b/src/app/account-trusted-parties/components/settings-trusted-organizations/settings-trusted-organizations.component.spec.ts index 296b029af1..d31c0c50a6 100644 --- a/src/app/account-trusted-parties/components/settings-trusted-organizations/settings-trusted-organizations.component.spec.ts +++ b/src/app/account-trusted-parties/components/settings-trusted-organizations/settings-trusted-organizations.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsTrustedOrganizationsComponent } from './settings-trusted-organizations.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/account-trusted-parties/components/settings-users-that-thrust-you/settings-users-that-thrust-you.component.spec.ts b/src/app/account-trusted-parties/components/settings-users-that-thrust-you/settings-users-that-thrust-you.component.spec.ts index 6ce5366b7c..063687d53f 100644 --- a/src/app/account-trusted-parties/components/settings-users-that-thrust-you/settings-users-that-thrust-you.component.spec.ts +++ b/src/app/account-trusted-parties/components/settings-users-that-thrust-you/settings-users-that-thrust-you.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { SettingsUsersThatThrustYouComponent } from './settings-users-that-thrust-you.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/cdk/account-panel/settings-panels/settings-panels.component.spec.ts b/src/app/cdk/account-panel/settings-panels/settings-panels.component.spec.ts index 5fa150ef9f..57886f24fd 100644 --- a/src/app/cdk/account-panel/settings-panels/settings-panels.component.spec.ts +++ b/src/app/cdk/account-panel/settings-panels/settings-panels.component.spec.ts @@ -2,7 +2,10 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing' import { SettingsPanelsComponent } from './settings-panels.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../window' import { PlatformInfoService } from '../../platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/cdk/is-this-you/is-this-you.component.ts b/src/app/cdk/is-this-you/is-this-you.component.ts index b6a60e4431..e5beabd1d1 100644 --- a/src/app/cdk/is-this-you/is-this-you.component.ts +++ b/src/app/cdk/is-this-you/is-this-you.component.ts @@ -1,6 +1,9 @@ import { Component, OnInit, HostBinding, Inject, Optional } from '@angular/core' import { PlatformInfoService } from '../platform-info/platform-info.service' -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog' +import { + MatLegacyDialogRef as MatDialogRef, + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, +} from '@angular/material/legacy-dialog' import { WINDOW } from '../window' @Component({ diff --git a/src/app/cdk/panel/panel-source/panel-source.component.spec.ts b/src/app/cdk/panel/panel-source/panel-source.component.spec.ts index 837bf87311..704b0584d8 100644 --- a/src/app/cdk/panel/panel-source/panel-source.component.spec.ts +++ b/src/app/cdk/panel/panel-source/panel-source.component.spec.ts @@ -8,7 +8,10 @@ import { PlatformInfoService } from '../../platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' import { SnackbarService } from '../../snackbar/snackbar.service' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { Overlay } from '@angular/cdk/overlay' import { VerificationEmailModalService } from '../../../core/verification-email-modal/verification-email-modal.service' import { AppPanelActivityActionAriaLabelPipe } from '../../../shared/pipes/app-panel-activity-action-aria-label/app-panel-activity-action-aria-label.pipe' diff --git a/src/app/cdk/panel/panel/panel.component.spec.ts b/src/app/cdk/panel/panel/panel.component.spec.ts index a6f58ee39e..42995ffa95 100644 --- a/src/app/cdk/panel/panel/panel.component.spec.ts +++ b/src/app/cdk/panel/panel/panel.component.spec.ts @@ -8,7 +8,10 @@ import { PlatformInfoService } from '../../platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' import { SnackbarService } from '../../snackbar/snackbar.service' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { Overlay } from '@angular/cdk/overlay' import { UserService } from '../../../core' import { RecordAffiliationService } from '../../../core/record-affiliations/record-affiliations.service' diff --git a/src/app/cdk/panel/panels/panels.component.spec.ts b/src/app/cdk/panel/panels/panels.component.spec.ts index f953cdecb9..170b530f2c 100644 --- a/src/app/cdk/panel/panels/panels.component.spec.ts +++ b/src/app/cdk/panel/panels/panels.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing' import { PanelsComponent } from './panels.component' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../window' import { RegisterService } from '../../../core/register/register.service' import { PlatformInfoService } from '../../platform-info' diff --git a/src/app/cdk/platform-info/browserlist.regexp.ts b/src/app/cdk/platform-info/browserlist.regexp.ts index 954be17405..dd011b22dc 100644 --- a/src/app/cdk/platform-info/browserlist.regexp.ts +++ b/src/app/cdk/platform-info/browserlist.regexp.ts @@ -1,2 +1,3 @@ // tslint:disable-next-line: max-line-length -export const BROWSERLIST_REGEXP = /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/ +export const BROWSERLIST_REGEXP = + /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/ diff --git a/src/app/cdk/side-bar/modals/modal-keyword/modal-keyword.component.ts b/src/app/cdk/side-bar/modals/modal-keyword/modal-keyword.component.ts index 3a9bf9aa2e..52e9d1e62f 100644 --- a/src/app/cdk/side-bar/modals/modal-keyword/modal-keyword.component.ts +++ b/src/app/cdk/side-bar/modals/modal-keyword/modal-keyword.component.ts @@ -14,7 +14,10 @@ import { UntypedFormGroup, Validators, } from '@angular/forms' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { cloneDeep } from 'lodash' import { Subject } from 'rxjs' import { first, takeUntil } from 'rxjs/operators' diff --git a/src/app/cdk/snackbar/snackbar/snackbar.component.ts b/src/app/cdk/snackbar/snackbar/snackbar.component.ts index c4cc8753e5..27e567445b 100644 --- a/src/app/cdk/snackbar/snackbar/snackbar.component.ts +++ b/src/app/cdk/snackbar/snackbar/snackbar.component.ts @@ -1,5 +1,8 @@ import { Component, OnInit, Inject, HostBinding } from '@angular/core' -import { MAT_LEGACY_SNACK_BAR_DATA as MAT_SNACK_BAR_DATA, MatLegacySnackBarRef as MatSnackBarRef } from '@angular/material/legacy-snack-bar' +import { + MAT_LEGACY_SNACK_BAR_DATA as MAT_SNACK_BAR_DATA, + MatLegacySnackBarRef as MatSnackBarRef, +} from '@angular/material/legacy-snack-bar' import { ScreenDirection, DisplayMessage } from 'src/app/types' import { PlatformInfoService } from '../../platform-info' import { take } from 'rxjs/operators' diff --git a/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.spec.ts b/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.spec.ts index 916de14377..fe2f3c8054 100644 --- a/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.spec.ts +++ b/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { TopBarVerificationEmailComponent } from './top-bar-verification-email.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' import { Overlay } from '@angular/cdk/overlay' diff --git a/src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.ts b/src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.ts index f8f6b9f707..bbf05b2bb3 100644 --- a/src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.ts +++ b/src/app/cdk/visibility-selector/visibility-selector/visibility-selector.component.ts @@ -87,8 +87,7 @@ export class VisibilitySelectorComponent registerOnTouched(fn: any): void { this.onTouched = fn } - setDisabledState?(isDisabled: boolean): void { - } + setDisabledState?(isDisabled: boolean): void {} navigate() { this.window.open( 'https://support.orcid.org/hc/en-us/articles/360006897614-Visibility-settings' diff --git a/src/app/core/verification-email-modal/verification-email-modal.service.spec.ts b/src/app/core/verification-email-modal/verification-email-modal.service.spec.ts index 53d5fb41f8..dd0574c824 100644 --- a/src/app/core/verification-email-modal/verification-email-modal.service.spec.ts +++ b/src/app/core/verification-email-modal/verification-email-modal.service.spec.ts @@ -3,7 +3,10 @@ import { TestBed } from '@angular/core/testing' import { VerificationEmailModalService } from './verification-email-modal.service' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../cdk/window' import { PlatformInfoService } from '../../cdk/platform-info' import { ErrorHandlerService } from '../error-handler/error-handler.service' diff --git a/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.spec.ts b/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.spec.ts index 5e6b5803fd..ba7e425e08 100644 --- a/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.spec.ts +++ b/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { ClientSecretModalComponent } from './client-secret-modal.component' -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog' +import { + MatLegacyDialogRef as MatDialogRef, + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, +} from '@angular/material/legacy-dialog' describe('ClientSecretModalComponent', () => { let component: ClientSecretModalComponent diff --git a/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.ts b/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.ts index 16654c1f1a..02983b2a86 100644 --- a/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.ts +++ b/src/app/developer-tools/components/client-secret-modal/client-secret-modal.component.ts @@ -1,6 +1,9 @@ import { DialogRef } from '@angular/cdk/dialog' import { Component, Inject, OnInit } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' @Component({ selector: 'app-client-secret-modal', diff --git a/src/app/guards/authenticated-no-delagator.guard.ts b/src/app/guards/authenticated-no-delagator.guard.ts index 56c457b247..5fc59f6c6e 100644 --- a/src/app/guards/authenticated-no-delagator.guard.ts +++ b/src/app/guards/authenticated-no-delagator.guard.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { combineLatest, Observable } from 'rxjs' import { map } from 'rxjs/operators' @@ -10,7 +15,7 @@ import { TogglzService } from '../core/togglz/togglz.service' @Injectable({ providedIn: 'root', }) -export class AuthenticatedNoDelegatorGuard { +export class AuthenticatedNoDelegatorGuard { constructor( private _userInfo: UserService, private _router: Router, diff --git a/src/app/guards/authenticated.guard.ts b/src/app/guards/authenticated.guard.ts index 278cd3039d..64d4352900 100644 --- a/src/app/guards/authenticated.guard.ts +++ b/src/app/guards/authenticated.guard.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { Observable } from 'rxjs' import { map } from 'rxjs/operators' @@ -9,7 +14,7 @@ import { UserService } from '../core' @Injectable({ providedIn: 'root', }) -export class AuthenticatedGuard { +export class AuthenticatedGuard { constructor(private _userInfo: UserService, private _router: Router) {} canActivateChild( next: ActivatedRouteSnapshot, diff --git a/src/app/guards/authorize.guard.ts b/src/app/guards/authorize.guard.ts index 1d7b6a18f4..6389f9df3c 100644 --- a/src/app/guards/authorize.guard.ts +++ b/src/app/guards/authorize.guard.ts @@ -1,5 +1,10 @@ import { Inject, Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { forkJoin, NEVER, Observable, of, throwError, timer } from 'rxjs' import { catchError, map, switchMap, take, tap, timeout } from 'rxjs/operators' @@ -14,7 +19,7 @@ import { GoogleTagManagerService } from '../core/google-tag-manager/google-tag-m @Injectable({ providedIn: 'root', }) -export class AuthorizeGuard { +export class AuthorizeGuard { lastRedirectUrl: string redirectTroughGtmWasCalled: boolean constructor( diff --git a/src/app/guards/language.guard.ts b/src/app/guards/language.guard.ts index 6c82e69f7f..a02abe324c 100644 --- a/src/app/guards/language.guard.ts +++ b/src/app/guards/language.guard.ts @@ -15,7 +15,7 @@ const GUARD_COOKIE_CHECK = 'lang_refresh' @Injectable({ providedIn: 'root', }) -export class LanguageGuard { +export class LanguageGuard { constructor( @Inject(LOCALE_ID) public locale: string, private _user: UserService, diff --git a/src/app/guards/link-account.guard.ts b/src/app/guards/link-account.guard.ts index 34811ea16b..8ecc4ce496 100644 --- a/src/app/guards/link-account.guard.ts +++ b/src/app/guards/link-account.guard.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { Observable, of } from 'rxjs' import { catchError, map, take } from 'rxjs/operators' @@ -10,7 +15,7 @@ import { OauthService } from '../core/oauth/oauth.service' @Injectable({ providedIn: 'root', }) -export class LinkAccountGuard { +export class LinkAccountGuard { constructor( private _userInfo: UserService, private _router: Router, diff --git a/src/app/guards/register.guard.ts b/src/app/guards/register.guard.ts index c1c7bd6093..3adace3eb9 100644 --- a/src/app/guards/register.guard.ts +++ b/src/app/guards/register.guard.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { Observable } from 'rxjs' import { map } from 'rxjs/operators' @@ -8,7 +13,7 @@ import { UserService } from '../core' @Injectable({ providedIn: 'root', }) -export class RegisterGuard { +export class RegisterGuard { constructor(private _user: UserService, private _router: Router) {} canActivateChild( diff --git a/src/app/guards/sign-in.guard.ts b/src/app/guards/sign-in.guard.ts index 6540a12f03..25ce22f870 100644 --- a/src/app/guards/sign-in.guard.ts +++ b/src/app/guards/sign-in.guard.ts @@ -1,5 +1,10 @@ import { Inject, Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { Observable } from 'rxjs' import { map, take } from 'rxjs/operators' @@ -11,7 +16,7 @@ import { ErrorHandlerService } from '../core/error-handler/error-handler.service @Injectable({ providedIn: 'root', }) -export class SignInGuard { +export class SignInGuard { constructor( private _user: UserService, private _router: Router, diff --git a/src/app/guards/third-party-signin-completed.guard.ts b/src/app/guards/third-party-signin-completed.guard.ts index bbaa6ba613..956fd6018c 100644 --- a/src/app/guards/third-party-signin-completed.guard.ts +++ b/src/app/guards/third-party-signin-completed.guard.ts @@ -1,5 +1,10 @@ import { Inject, Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { forkJoin, Observable } from 'rxjs' import { catchError, first, map } from 'rxjs/operators' @@ -13,7 +18,7 @@ import { ErrorHandlerService } from '../core/error-handler/error-handler.service @Injectable({ providedIn: 'root', }) -export class ThirdPartySigninCompletedGuard { +export class ThirdPartySigninCompletedGuard { constructor( private _router: Router, @Inject(WINDOW) private window: Window, diff --git a/src/app/guards/two-factor-signin.guard.ts b/src/app/guards/two-factor-signin.guard.ts index 0ca952be5a..8bea403f53 100644 --- a/src/app/guards/two-factor-signin.guard.ts +++ b/src/app/guards/two-factor-signin.guard.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router' +import { + ActivatedRouteSnapshot, + Router, + RouterStateSnapshot, + UrlTree, +} from '@angular/router' import { Observable } from 'rxjs' import { map, take } from 'rxjs/operators' import { UserService } from '../core' @@ -9,7 +14,7 @@ import { OauthService } from '../core/oauth/oauth.service' @Injectable({ providedIn: 'root', }) -export class TwoFactorSigninGuard { +export class TwoFactorSigninGuard { constructor( private _userInfo: UserService, private _router: Router, diff --git a/src/app/record/components/funding-stacks-groups/modals/modal-funding-search-link/modal-funding-search-link.component.spec.ts b/src/app/record/components/funding-stacks-groups/modals/modal-funding-search-link/modal-funding-search-link.component.spec.ts index d08ebb459f..c861730c02 100644 --- a/src/app/record/components/funding-stacks-groups/modals/modal-funding-search-link/modal-funding-search-link.component.spec.ts +++ b/src/app/record/components/funding-stacks-groups/modals/modal-funding-search-link/modal-funding-search-link.component.spec.ts @@ -9,7 +9,10 @@ import { PlatformInfoService } from '../../../../../cdk/platform-info' import { ErrorHandlerService } from '../../../../../core/error-handler/error-handler.service' import { SnackbarService } from '../../../../../cdk/snackbar/snackbar.service' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' -import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { Overlay } from '@angular/cdk/overlay' describe('ModalFundingSearchLinkComponent', () => { diff --git a/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.spec.ts b/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.spec.ts index c70742920c..9ef7c0f9fd 100644 --- a/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.spec.ts +++ b/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.spec.ts @@ -16,7 +16,10 @@ import { WINDOW_PROVIDERS } from '../../../../../cdk/window' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' import { Overlay } from '@angular/cdk/overlay' import { PlatformInfoService } from '../../../../../cdk/platform-info' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { ErrorHandlerService } from '../../../../../core/error-handler/error-handler.service' import { UserService } from '../../../../../core' import { SnackbarService } from '../../../../../cdk/snackbar/snackbar.service' diff --git a/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.ts b/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.ts index 9d1a3417ce..5a0bff9f47 100644 --- a/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.ts +++ b/src/app/record/components/funding-stacks-groups/modals/modal-funding/modal-funding.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, OnDestroy, OnInit, Input } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { ModalComponent } from '../../../../../cdk/modal/modal/modal.component' import { UntypedFormBuilder, diff --git a/src/app/record/components/research-resource-stacks-group/research-resource-stacks-group.component.ts b/src/app/record/components/research-resource-stacks-group/research-resource-stacks-group.component.ts index 6f274041dc..d4c55459c3 100644 --- a/src/app/record/components/research-resource-stacks-group/research-resource-stacks-group.component.ts +++ b/src/app/record/components/research-resource-stacks-group/research-resource-stacks-group.component.ts @@ -19,7 +19,10 @@ import { ResearchResourcesEndpoint, ResearchResourcesGroup, } from '../../../types/record-research-resources.endpoint' -import { MatLegacyPaginatorIntl as MatPaginatorIntl, LegacyPageEvent as PageEvent } from '@angular/material/legacy-paginator' +import { + MatLegacyPaginatorIntl as MatPaginatorIntl, + LegacyPageEvent as PageEvent, +} from '@angular/material/legacy-paginator' import { DEFAULT_PAGE_SIZE } from 'src/app/constants' import { LiveAnnouncer } from '@angular/cdk/a11y' import { AnnouncerService } from 'src/app/core/announcer/announcer.service' diff --git a/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.spec.ts b/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.spec.ts index 45e163a43d..4a359613d7 100644 --- a/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.spec.ts +++ b/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing' import { ModalBiographyComponent } from './modal-biography.component' import { RouterTestingModule } from '@angular/router/testing' import { HttpClientTestingModule } from '@angular/common/http/testing' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../../../cdk/window' import { PlatformInfoService } from '../../../../../cdk/platform-info' import { SnackbarService } from '../../../../../cdk/snackbar/snackbar.service' diff --git a/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.ts b/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.ts index ed3b14a15b..867cac9501 100644 --- a/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.ts +++ b/src/app/record/components/top-bar/modals/modal-biography/modal-biography.component.ts @@ -5,7 +5,10 @@ import { OnDestroy, OnInit, } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { ModalComponent } from '../../../../../cdk/modal/modal/modal.component' import { UntypedFormControl, UntypedFormGroup } from '@angular/forms' import { UserRecord } from '../../../../../types/record.local' diff --git a/src/app/record/components/top-bar/modals/modal-name/modal-name.component.ts b/src/app/record/components/top-bar/modals/modal-name/modal-name.component.ts index a2f6a6b2cf..b8031852a1 100644 --- a/src/app/record/components/top-bar/modals/modal-name/modal-name.component.ts +++ b/src/app/record/components/top-bar/modals/modal-name/modal-name.component.ts @@ -14,7 +14,10 @@ import { UntypedFormGroup, Validators, } from '@angular/forms' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { cloneDeep } from 'lodash' import { Subject } from 'rxjs' import { first, switchMap, take, takeUntil } from 'rxjs/operators' diff --git a/src/app/record/components/top-bar/top-bar.component.spec.ts b/src/app/record/components/top-bar/top-bar.component.spec.ts index 57dc932572..3fc2774313 100644 --- a/src/app/record/components/top-bar/top-bar.component.spec.ts +++ b/src/app/record/components/top-bar/top-bar.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { TopBarComponent } from './top-bar.component' import { HttpClientTestingModule } from '@angular/common/http/testing' import { RouterTestingModule } from '@angular/router/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/record/components/work-external-identifiers-edit/work-external-identifiers-edit.component.ts b/src/app/record/components/work-external-identifiers-edit/work-external-identifiers-edit.component.ts index 5ebc3ebf53..6cc8a7a107 100644 --- a/src/app/record/components/work-external-identifiers-edit/work-external-identifiers-edit.component.ts +++ b/src/app/record/components/work-external-identifiers-edit/work-external-identifiers-edit.component.ts @@ -10,7 +10,10 @@ import { } from '@angular/core' import { UntypedFormControl, UntypedFormGroup } from '@angular/forms' import { ErrorStateMatcher } from '@angular/material/core' -import { MatLegacySelect as MatSelect, MatLegacySelectChange as MatSelectChange } from '@angular/material/legacy-select' +import { + MatLegacySelect as MatSelect, + MatLegacySelectChange as MatSelectChange, +} from '@angular/material/legacy-select' import { WorkIdType, WorkRelationships } from 'src/app/types/works.endpoint' @Component({ diff --git a/src/app/record/components/work-form/work-form/work-form.component.spec.ts b/src/app/record/components/work-form/work-form/work-form.component.spec.ts index 0256369a36..53f10179b2 100644 --- a/src/app/record/components/work-form/work-form/work-form.component.spec.ts +++ b/src/app/record/components/work-form/work-form/work-form.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { WorkFormComponent } from './work-form.component' import { RouterTestingModule } from '@angular/router/testing' import { HttpClientTestingModule } from '@angular/common/http/testing' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../../cdk/window' import { PlatformInfoService } from '../../../../cdk/platform-info' import { RecordWorksService } from '../../../../core/record-works/record-works.service' diff --git a/src/app/record/components/work-form/work-form/work-form.component.ts b/src/app/record/components/work-form/work-form/work-form.component.ts index efeba5ba7a..1f82019b78 100644 --- a/src/app/record/components/work-form/work-form/work-form.component.ts +++ b/src/app/record/components/work-form/work-form/work-form.component.ts @@ -26,7 +26,10 @@ import { WorkTypesTitle, } from '../../../../types/works.endpoint' import { RecordWorksService } from '../../../../core/record-works/record-works.service' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { ModalComponent } from '../../../../cdk/modal/modal/modal.component' import { RecordCountriesService } from '../../../../core/record-countries/record-countries.service' import { WINDOW } from '../../../../cdk/window' diff --git a/src/app/record/components/work-modal/work-modal.component.ts b/src/app/record/components/work-modal/work-modal.component.ts index a8bb191436..c6f95825a0 100644 --- a/src/app/record/components/work-modal/work-modal.component.ts +++ b/src/app/record/components/work-modal/work-modal.component.ts @@ -1,5 +1,8 @@ import { Component, Inject, Input, OnInit, ViewChild } from '@angular/core' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { Observable } from 'rxjs' import { ModalComponent } from 'src/app/cdk/modal/modal/modal.component' import { PlatformInfo } from 'src/app/cdk/platform-info' diff --git a/src/app/record/components/work-stack-group/modals/work-external-id-modal/work-external-id-modal.component.spec.ts b/src/app/record/components/work-stack-group/modals/work-external-id-modal/work-external-id-modal.component.spec.ts index 6b9abf6678..c1dc1857c8 100644 --- a/src/app/record/components/work-stack-group/modals/work-external-id-modal/work-external-id-modal.component.spec.ts +++ b/src/app/record/components/work-stack-group/modals/work-external-id-modal/work-external-id-modal.component.spec.ts @@ -8,7 +8,10 @@ import { PlatformInfoService } from '../../../../../cdk/platform-info' import { ErrorHandlerService } from '../../../../../core/error-handler/error-handler.service' import { SnackbarService } from '../../../../../cdk/snackbar/snackbar.service' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' -import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { Overlay } from '@angular/cdk/overlay' import { RecordWorksService } from '../../../../../core/record-works/record-works.service' import { UntypedFormBuilder } from '@angular/forms' diff --git a/src/app/record/components/work-stack-group/work-stack-group.component.spec.ts b/src/app/record/components/work-stack-group/work-stack-group.component.spec.ts index 953c130642..fba442cbd8 100644 --- a/src/app/record/components/work-stack-group/work-stack-group.component.spec.ts +++ b/src/app/record/components/work-stack-group/work-stack-group.component.spec.ts @@ -6,7 +6,10 @@ import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' import { SnackbarService } from '../../../cdk/snackbar/snackbar.service' import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { Overlay } from '@angular/cdk/overlay' import { RecordService } from '../../../core/record/record.service' import { RecordWorksService } from '../../../core/record-works/record-works.service' diff --git a/src/app/record/components/work-stack-group/work-stack-group.component.ts b/src/app/record/components/work-stack-group/work-stack-group.component.ts index 9383661af4..b6ea8b0e42 100644 --- a/src/app/record/components/work-stack-group/work-stack-group.component.ts +++ b/src/app/record/components/work-stack-group/work-stack-group.component.ts @@ -10,9 +10,15 @@ import { ViewChildren, } from '@angular/core' import { UntypedFormGroup } from '@angular/forms' -import { MatLegacyCheckbox as MatCheckbox, MatLegacyCheckboxChange as MatCheckboxChange } from '@angular/material/legacy-checkbox' +import { + MatLegacyCheckbox as MatCheckbox, + MatLegacyCheckboxChange as MatCheckboxChange, +} from '@angular/material/legacy-checkbox' import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog' -import { MatLegacyPaginatorIntl as MatPaginatorIntl, LegacyPageEvent as PageEvent } from '@angular/material/legacy-paginator' +import { + MatLegacyPaginatorIntl as MatPaginatorIntl, + LegacyPageEvent as PageEvent, +} from '@angular/material/legacy-paginator' import { isEmpty } from 'lodash' import { Observable, Subject } from 'rxjs' import { first, take } from 'rxjs/operators' diff --git a/src/app/record/components/work/modals/modal-combine-works-with-selector/modal-combine-works-with-selector.component.ts b/src/app/record/components/work/modals/modal-combine-works-with-selector/modal-combine-works-with-selector.component.ts index a1d0365c50..7b136a9459 100644 --- a/src/app/record/components/work/modals/modal-combine-works-with-selector/modal-combine-works-with-selector.component.ts +++ b/src/app/record/components/work/modals/modal-combine-works-with-selector/modal-combine-works-with-selector.component.ts @@ -1,7 +1,10 @@ import { Component, Inject, OnDestroy, OnInit } from '@angular/core' import { forkJoin, Subject } from 'rxjs' import { Work } from '../../../../../types/record-works.endpoint' -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog' +import { + MatLegacyDialogRef as MatDialogRef, + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, +} from '@angular/material/legacy-dialog' import { ModalComponent } from '../../../../../cdk/modal/modal/modal.component' import { RecordWorksService } from '../../../../../core/record-works/record-works.service' import { PlatformInfoService } from '../../../../../cdk/platform-info' diff --git a/src/app/register/components/form-notifications/form-notifications.component.spec.ts b/src/app/register/components/form-notifications/form-notifications.component.spec.ts index a0308a5825..74d5498538 100644 --- a/src/app/register/components/form-notifications/form-notifications.component.spec.ts +++ b/src/app/register/components/form-notifications/form-notifications.component.spec.ts @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { FormNotificationsComponent } from './form-notifications.component' import { RegisterService } from '../../../core/register/register.service' import { HttpClientTestingModule } from '@angular/common/http/testing' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { RouterTestingModule } from '@angular/router/testing' import { PlatformInfoService } from '../../../cdk/platform-info' import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service' diff --git a/src/app/register/pages/register/register.component.spec.ts b/src/app/register/pages/register/register.component.spec.ts index 3d18bc144f..1967801d07 100644 --- a/src/app/register/pages/register/register.component.spec.ts +++ b/src/app/register/pages/register/register.component.spec.ts @@ -10,7 +10,10 @@ import { RouterTestingModule } from '@angular/router/testing' import { HttpClientTestingModule } from '@angular/common/http/testing' import { WINDOW_PROVIDERS } from '../../../cdk/window' import { UntypedFormBuilder } from '@angular/forms' -import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog' +import { + MatLegacyDialog as MatDialog, + MatLegacyDialogModule as MatDialogModule, +} from '@angular/material/legacy-dialog' import { RegisterService } from '../../../core/register/register.service' import { UserService } from '../../../core' import { SearchService } from '../../../core/search/search.service' diff --git a/src/app/search/pages/search/search.component.ts b/src/app/search/pages/search/search.component.ts index 24ea15d529..b20fc7698f 100644 --- a/src/app/search/pages/search/search.component.ts +++ b/src/app/search/pages/search/search.component.ts @@ -2,7 +2,10 @@ import { Component, OnDestroy, OnInit, Optional } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' import { SearchService } from '../../../core/search/search.service' import { tap, switchMap, retry, catchError } from 'rxjs/operators' -import { MatLegacyPaginatorIntl as MatPaginatorIntl, LegacyPageEvent as PageEvent } from '@angular/material/legacy-paginator' +import { + MatLegacyPaginatorIntl as MatPaginatorIntl, + LegacyPageEvent as PageEvent, +} from '@angular/material/legacy-paginator' import { SearchResults } from 'src/app/types' import { SearchParameters } from 'src/app/types' import { Meta } from '@angular/platform-browser' diff --git a/src/app/sign-in/components/errors/print-errors/print-errors.component.spec.ts b/src/app/sign-in/components/errors/print-errors/print-errors.component.spec.ts index 498839e8ab..6844609228 100644 --- a/src/app/sign-in/components/errors/print-errors/print-errors.component.spec.ts +++ b/src/app/sign-in/components/errors/print-errors/print-errors.component.spec.ts @@ -1,7 +1,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { PrintErrorsComponent } from './print-errors.component' -import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog' +import { + MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, + MatLegacyDialogRef as MatDialogRef, +} from '@angular/material/legacy-dialog' import { WINDOW_PROVIDERS } from '../../../../cdk/window' describe('PrintErrorsComponent', () => { diff --git a/tsconfig.json b/tsconfig.json index 852fb0e728..073b3c84d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,13 +12,8 @@ "resolveJsonModule": true, "esModuleInterop": true, "target": "ES2022", - "typeRoots": [ - "node_modules/@types" - ], - "lib": [ - "es2017", - "dom" - ], + "typeRoots": ["node_modules/@types"], + "lib": ["es2017", "dom"], "skipLibCheck": true, "useDefineForClassFields": false },