Commit c8f78b9c authored by LAVENIER's avatar LAVENIER
Browse files

[fix] Update to ngx components v0.13.16

parent 00861049
Pipeline #12785 failed with stages
in 21 minutes and 23 seconds
......@@ -124,6 +124,30 @@
</mat-cell>
</ng-container>
<!-- Validity Status column
<ng-container matColumnDef="validityStatus">
<mat-header-cell *matHeaderCellDef mat-sort-header>
<span translate>REFERENTIAL.VALIDITY_STATUS</span>
</mat-header-cell>
<mat-cell *matCellDef="let row" [class.mat-form-field-disabled]="!row.editing">
<mat-form-field floatLabel="never">
<ion-icon matPrefix *ngIf="row.validator.controls.statusId.value &gt;=0" [name]="statusById[row.validator.controls.statusId.value]?.icon"></ion-icon>
<mat-select [formControl]="row.validator.controls.statusId" [placeholder]="'REFERENTIAL.STATUS'|translate">
<mat-select-trigger>
<span *ngIf="row.validator.controls.statusId.value &gt;=0">
{{ statusById[row.validator.controls.statusId.value]?.label | translate}}</span>
</mat-select-trigger>
<mat-option *ngFor="let item of statusList" [value]="item.id">
<ion-icon [name]="item.icon"></ion-icon>
{{ item.label |translate }}
</mat-option>
</mat-select>
<mat-error *ngIf="row.validator.controls.statusId.hasError('required')" translate>ERROR.FIELD_REQUIRED</mat-error>
</mat-form-field>
</mat-cell>
</ng-container> -->
<!-- Creation date column -->
<ng-container matColumnDef="updateDate">
<mat-header-cell *matHeaderCellDef mat-sort-header>
......@@ -168,22 +192,22 @@
<ng-container *ngIf="row.validator">
<!-- undo or delete -->
<button mat-icon-button small color="light" *ngIf="row.validator.invalid"
<button mat-icon-button color="light" *ngIf="row.validator.invalid"
[title]="(row.id !== -1 ? 'COMMON.BTN_UNDO': 'COMMON.BTN_DELETE')|translate"
(click)="cancelOrDelete($event, row)">
<mat-icon *ngIf="row.id !== -1">undo</mat-icon>
<mat-icon *ngIf="row.id === -1">delete_outline</mat-icon>
</button>
<!-- validate -->
<button mat-icon-button small color="light" *ngIf="row.validator.valid && row.id !== -1"
<button mat-icon-button color="light" *ngIf="row.validator.valid && row.id !== -1"
[title]="'COMMON.BTN_VALIDATE'|translate"
(click)="confirmEditCreate($event, row)">
<mat-icon>check</mat-icon>
</button>
<!-- add -->
<button mat-icon-button small color="light" *ngIf="row.validator.valid && row.id === -1"
<button mat-icon-button color="light" *ngIf="row.validator.valid && row.id === -1"
[title]="'COMMON.BTN_ADD'|translate"
(click)="confirmAndAddRow($event, row)">
(click)="confirmAndAdd($event, row)">
<mat-icon>add</mat-icon>
</button>
</ng-container>
......
......@@ -152,7 +152,11 @@
"HOME": {
"LOGO_LARGE": "Accueil > Logo (largeur max 400px)",
"PARTNER_DEPARTMENTS": "Accueil > Logo des partenaires",
"BACKGROUND_IMAGES": "Accueil > Images de fond"
"BACKGROUND_IMAGES": "Accueil > Images de fond",
"ENABLE_REGISTRATION": "Accueil > Autoriser les inscriptions ?"
},
"MENU": {
"ITEMS": "Menu > Entrées supplémentaire (JSON Array)"
},
"COLORS": {
"PRIMARY": "Thème > Couleur principale",
......@@ -181,21 +185,11 @@
"TAXONOMIC_LEVEL_FAMILY_ID": "Référentiel > Niveau taxinomique > Famille",
"TAXONOMIC_LEVEL_GENUS_ID": "Référentiel > Niveau taxinomique > Genre",
"TAXONOMIC_LEVEL_SPECIES_ID": "Référentiel > Niveau taxinomique > Espèce",
"TAXONOMIC_LEVEL_SUBSPECIES_ID": "Référentiel > Niveau taxinomique > Sous espèce",
"PMFM_MORSE_CODE_ID": "Référentiel > PSFM > Code Morse",
"PMFM_STRATEGY_LABEL_ID": "Référentiel > PSFM > Ligne de plan",
"PMFM_AGE_ID": "Référentiel > PSFM > Âge",
"PMFM_SEX_ID": "Référentiel > PSFM > Sexe",
"STRATEGY_PARAMETER_AGE_LABEL": "Stratégie > Paramètre > Code âge",
"STRATEGY_PARAMETER_SEX_LABEL": "Stratégie > Paramètre > Code sexe",
"STRATEGY_PARAMETER_WEIGHT_LABELS": "Stratégie > Paramètre > Codes poids",
"STRATEGY_PARAMETER_LENGTH_LABELS": "Stratégie > Paramètre > Codes longueur",
"STRATEGY_PARAMETER_MATURITY_LABELS": "Stratégie > Paramètre > Codes maturités"
"TAXONOMIC_LEVEL_SUBSPECIES_ID": "Référentiel > Niveau taxinomique > Sous espèce"
},
"TESTING": "Mode développeur ?",
"ENTITY_TRASH": "Activer la corbeille du pod ?",
"UPDATE_TECHNICAL_TABLES": "Mise à jour auto des tables techniques ?",
"ANALYTIC_REFERENCES_ENABLE": "Stratégie > Références analytiques : Activer ?",
"AUTH_TOKEN_TYPE_PLACEHOLDER": "Securité > Type d'authentification",
"AUTH_TOKEN_TYPE": {
"BASIC": "Basique",
......
......@@ -3,7 +3,7 @@ import {Environment} from '@sumaris-net/ngx-components';
const pkg = require('../../package.json');
/* eslint-disable */
export const environment: Environment = Object.freeze({
export const environment = Object.freeze(<Environment>{
name: (pkg.name as string),
version: (pkg.version as string),
production: true,
......
......@@ -7,7 +7,7 @@ import {Environment} from '@sumaris-net/ngx-components';
const pkg = require('../../package.json');
export const environment: Environment = Object.freeze({
export const environment = Object.freeze(<Environment>{
name: (pkg.name as string),
version: (pkg.version as string),
production: false,
......
......@@ -68,7 +68,7 @@ export const environment: Environment = Object.freeze({
},
// Default login user
development: {
defaultAuthValues: {
username: 'admin@sar.milieumarinfrance.fr',
password: 'admin'
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment