RED-3800: Update common-ui, cleanup

This commit is contained in:
Adina Țeudan 2023-01-20 12:05:16 +02:00
parent e3f2889117
commit 648d3f84e3
6 changed files with 6 additions and 30 deletions

View File

@ -1,7 +1,7 @@
:host {
height: calc(100vh - 61px);
height: calc(100vh - var(--iqser-top-bar-height));
&.dossier-templates {
height: calc(100vh - 111px);
height: calc(100vh - var(--iqser-top-bar-height) - 50px);
}
}

View File

@ -1,7 +1,7 @@
:host {
height: calc(100vh - 61px);
height: calc(100vh - var(--iqser-top-bar-height));
&.smaller {
height: calc(100vh - 111px);
height: calc(100vh - var(--iqser-top-bar-height) - 50px);
}
}

View File

@ -1,6 +1,6 @@
:host {
--workload-width: 350px;
--header-height: 111px;
--header-height: calc(var(--iqser-top-bar-height) + 50px);
}
div {

View File

@ -10,4 +10,3 @@ export * from './functions';
export * from './global-error-handler.service';
export * from './missing-translations-handler';
export * from './page-stamper';
export * from './pruning-translation-loader';

View File

@ -1,23 +0,0 @@
import { HttpClient } from '@angular/common/http';
import { TranslateLoader } from '@ngx-translate/core';
import { map } from 'rxjs/operators';
export class PruningTranslationLoader implements TranslateLoader {
constructor(private _http: HttpClient, private _prefix: string, private _suffix: string) {}
getTranslation(lang: string): any {
return this._http.get(`${this._prefix}${lang}${this._suffix}`).pipe(map((result: object) => this._process(result)));
}
private _process(object: object) {
return (
Object.keys(object)
// eslint-disable-next-line no-prototype-builtins
.filter(key => object.hasOwnProperty(key) && object[key] !== '')
.reduce(
(result, key) => ((result[key] = typeof object[key] === 'object' ? this._process(object[key]) : object[key]), result),
{},
)
);
}
}

@ -1 +1 @@
Subproject commit ab8d16420560461ca88b6d5d6024febc36af147a
Subproject commit 5208063f48cab62f1c019c71683c575dd0b594c5