diff --git a/ui/ui-frontend-common/src/app/modules/components/header/select-language/index.ts b/ui/ui-frontend-common/src/app/modules/components/header/select-language/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..d723fa8280a83200e384a6590bc1d131e4324168 --- /dev/null +++ b/ui/ui-frontend-common/src/app/modules/components/header/select-language/index.ts @@ -0,0 +1,38 @@ +/* + * Copyright French Prime minister Office/SGMAP/DINSIC/Vitam Program (2019-2020) + * and the signatories of the "VITAM - Accord du Contributeur" agreement. + * + * contact@programmevitam.fr + * + * This software is a computer program whose purpose is to implement + * implement a digital archiving front-office system for the secure and + * efficient high volumetry VITAM solution. + * + * This software is governed by the CeCILL-C license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL-C + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL-C license and that you accept its terms. + */ +export * from './select-language.component'; +export * from './select-language.module'; \ No newline at end of file diff --git a/ui/ui-frontend-common/src/app/modules/index.ts b/ui/ui-frontend-common/src/app/modules/index.ts index 643013245ebfe6860dd509adf5a042693f0797af..953113c6e88827b666cc8bf6b7403c5714206b9b 100644 --- a/ui/ui-frontend-common/src/app/modules/index.ts +++ b/ui/ui-frontend-common/src/app/modules/index.ts @@ -71,6 +71,7 @@ export * from './tenant-selection.guard'; export * from './theme.service'; export * from './utils/index'; +export * from './components/header/select-language/index'; export * from './components/application-select-content/index'; export * from './components/blank/blank.component'; export * from './components/collapse/collapse.module'; diff --git a/ui/ui-frontend-common/ui-frontend-common-2.0.0.tgz b/ui/ui-frontend-common/ui-frontend-common-2.0.0.tgz index 18fd421c812d25dbfa5ecf3b11a01e2b862110e6..92204837204e9dd37e228f5b7b25b06c65af4949 100644 Binary files a/ui/ui-frontend-common/ui-frontend-common-2.0.0.tgz and b/ui/ui-frontend-common/ui-frontend-common-2.0.0.tgz differ diff --git a/ui/ui-frontend/package.json b/ui/ui-frontend/package.json index 96b75a9577f5f9e842805f7bd231b7ca504df80e..c37e12d5019a24efdd5d70cb450c7bdd00ad4d57 100644 --- a/ui/ui-frontend/package.json +++ b/ui/ui-frontend/package.json @@ -108,7 +108,7 @@ "@angular/cli": "^10.1.3", "@angular/compiler-cli": "10.1.3", "@angular/language-service": "10.1.3", - "@angular/localize": "^10.1.3", + "@angular/localize": "^10.2.3", "@biesbjerg/ngx-translate-extract": "^7.0.2", "@types/jasmine": "~3.3.0", "@types/jasminewd2": "^2.0.8", diff --git a/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-domain-input/editable-domain-input.component.ts b/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-domain-input/editable-domain-input.component.ts index 04b28de829b74c23d19029b33a5aa2eba422b651..460a31b6549d71d84c2c0e81150d5ff87872575a 100644 --- a/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-domain-input/editable-domain-input.component.ts +++ b/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-domain-input/editable-domain-input.component.ts @@ -68,6 +68,7 @@ export class EditableDomainInputComponent extends EditableFieldComponent { private domainInputClicked = false; + // @ts-ignore get canConfirm(): boolean { return this.editMode && !this.control.pending && this.control.valid && (this.control.dirty || (this.selected !== this.defaultDomain)); } diff --git a/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-keystore/editable-keystore.component.ts b/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-keystore/editable-keystore.component.ts index 780c381ef0e4677b140edc4f49be0671247ef08e..12362e4817584c56f404a07eb6348ce7326dea6c 100644 --- a/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-keystore/editable-keystore.component.ts +++ b/ui/ui-frontend/projects/identity/src/app/shared/editable-field/editable-keystore/editable-keystore.component.ts @@ -56,6 +56,7 @@ export class EditableKeystoreComponent extends EditableFieldComponent { @ViewChild('fileInput', { static: false }) fileInput: ElementRef; + // @ts-ignore get canConfirm() { return this.editMode && !!this.file && this.control.valid; } constructor(private identityProviderService: IdentityProviderService, elementRef: ElementRef) { diff --git a/ui/ui-frontend/projects/identity/tsconfig.app.json b/ui/ui-frontend/projects/identity/tsconfig.app.json index 9b53c7ef33d7c27bf2c5f1396839a78cc808b04c..1de283448967aa32aa32162b459c59171c1af4d4 100644 --- a/ui/ui-frontend/projects/identity/tsconfig.app.json +++ b/ui/ui-frontend/projects/identity/tsconfig.app.json @@ -5,11 +5,16 @@ "types": [] }, "include": [ - "src/**/*.ts" + // "src/**/*.ts" ], "exclude": [ "testing", "src/test.ts", "src/**/*.spec.ts" + ], + "files": [ + "src/main.ts", + "src/polyfills.ts", + "src/zone-flags.ts" ] } diff --git a/ui/ui-frontend/projects/starter-kit/src/app/app.module.ts b/ui/ui-frontend/projects/starter-kit/src/app/app.module.ts index 25666dcf08c3da41ea5f1d3f9bc59d1d449db9e0..f827c4448afe4dabd62f0c136aa48c154082cf8b 100644 --- a/ui/ui-frontend/projects/starter-kit/src/app/app.module.ts +++ b/ui/ui-frontend/projects/starter-kit/src/app/app.module.ts @@ -38,7 +38,9 @@ import { registerLocaleData } from '@angular/common'; import { HttpClient } from '@angular/common/http'; import { default as localeFr } from '@angular/common/locales/fr'; import { LOCALE_ID, NgModule } from '@angular/core'; -import { MatCardModule, MatListModule, MatSidenavModule } from '@angular/material'; +import { MatCardModule } from '@angular/material/card'; +import { MatListModule } from '@angular/material/list'; +import { MatSidenavModule } from '@angular/material/sidenav'; import { MatDialogModule } from '@angular/material/dialog'; import { MatSnackBarModule } from '@angular/material/snack-bar'; import { BrowserModule, Title } from '@angular/platform-browser'; diff --git a/ui/ui-frontend/projects/starter-kit/src/app/components/arrays/arrays.module.ts b/ui/ui-frontend/projects/starter-kit/src/app/components/arrays/arrays.module.ts index 4396026b9561c71f77f7a39b5e3941c94557ff63..4188b40d536764dc02103d6ec82cc133a174fbb6 100644 --- a/ui/ui-frontend/projects/starter-kit/src/app/components/arrays/arrays.module.ts +++ b/ui/ui-frontend/projects/starter-kit/src/app/components/arrays/arrays.module.ts @@ -1,7 +1,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; -import { MatButtonToggleModule } from '@angular/material'; +import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { VitamUICommonModule } from 'ui-frontend-common'; import { SharedModule } from '../../../../../identity/src/app/shared/shared.module'; import { ArraysComponent } from './arrays.component'; diff --git a/ui/ui-frontend/projects/starter-kit/src/app/components/buttons/buttons.module.ts b/ui/ui-frontend/projects/starter-kit/src/app/components/buttons/buttons.module.ts index 816e4a3adf507c3ac8a5d460181ea9d6e2f6ae59..1584083830032c1a319a00da2ccf1d8f10086d10 100644 --- a/ui/ui-frontend/projects/starter-kit/src/app/components/buttons/buttons.module.ts +++ b/ui/ui-frontend/projects/starter-kit/src/app/components/buttons/buttons.module.ts @@ -1,7 +1,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; -import { MatButtonToggleModule } from '@angular/material'; +import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { VitamUICommonModule } from 'ui-frontend-common'; import { ButtonsComponent } from './buttons.component'; diff --git a/ui/ui-frontend/projects/starter-kit/src/app/components/inputs/inputs.module.ts b/ui/ui-frontend/projects/starter-kit/src/app/components/inputs/inputs.module.ts index 72d5b4637ac9c4c51f75c0054eb743f99aa39bd5..7794b93cb1287b34d4194142905f7da026f3b7b6 100644 --- a/ui/ui-frontend/projects/starter-kit/src/app/components/inputs/inputs.module.ts +++ b/ui/ui-frontend/projects/starter-kit/src/app/components/inputs/inputs.module.ts @@ -1,7 +1,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; -import { MatButtonToggleModule } from '@angular/material'; +import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatSelectModule } from '@angular/material/select'; import { VitamUICommonModule } from 'ui-frontend-common'; import { InputsComponent } from './inputs.component'; diff --git a/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/miscellaneous.component.ts b/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/miscellaneous.component.ts index fab14c0bb01134de04233d7284c72490c3facf74..e25b177c1e8827764c79bbb03b3c408388140e8b 100644 --- a/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/miscellaneous.component.ts +++ b/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/miscellaneous.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { MatDialog } from '@angular/material'; +import { MatDialog } from '@angular/material/dialog'; import { SampleDialogComponent } from './sample-dialog/sample-dialog.component'; @Component({ diff --git a/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/sample-dialog/sample-dialog.component.ts b/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/sample-dialog/sample-dialog.component.ts index 82c71f48025a063d568f28fc272418356a6086a8..bfbaf601f8709d7efba7775bba311fb3e1e51919 100644 --- a/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/sample-dialog/sample-dialog.component.ts +++ b/ui/ui-frontend/projects/starter-kit/src/app/components/miscellaneous/sample-dialog/sample-dialog.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { MatDialogRef } from '@angular/material'; +import { MatDialogRef } from '@angular/material/dialog'; @Component({ selector: 'app-sample-dialog', diff --git a/ui/ui-frontend/projects/starter-kit/src/polyfills.ts b/ui/ui-frontend/projects/starter-kit/src/polyfills.ts index da2c7e6d2ed58f495639d23379ce97add506b9fd..3205474958b4b4b0eb018b8efc2bd743d8a376e0 100644 --- a/ui/ui-frontend/projects/starter-kit/src/polyfills.ts +++ b/ui/ui-frontend/projects/starter-kit/src/polyfills.ts @@ -94,6 +94,10 @@ import './zone-flags.ts'; */ import 'zone.js/dist/zone'; // Included with Angular CLI. +/*************************************************************************************************** + * localize is required for i18n since Angular 9. + */ +import '@angular/localize/init' /*************************************************************************************************** * APPLICATION IMPORTS