RED-3800: Update common-ui, cleanup
This commit is contained in:
parent
e3f2889117
commit
648d3f84e3
@ -1,7 +1,7 @@
|
|||||||
:host {
|
:host {
|
||||||
height: calc(100vh - 61px);
|
height: calc(100vh - var(--iqser-top-bar-height));
|
||||||
|
|
||||||
&.dossier-templates {
|
&.dossier-templates {
|
||||||
height: calc(100vh - 111px);
|
height: calc(100vh - var(--iqser-top-bar-height) - 50px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
:host {
|
:host {
|
||||||
height: calc(100vh - 61px);
|
height: calc(100vh - var(--iqser-top-bar-height));
|
||||||
|
|
||||||
&.smaller {
|
&.smaller {
|
||||||
height: calc(100vh - 111px);
|
height: calc(100vh - var(--iqser-top-bar-height) - 50px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
:host {
|
:host {
|
||||||
--workload-width: 350px;
|
--workload-width: 350px;
|
||||||
--header-height: 111px;
|
--header-height: calc(var(--iqser-top-bar-height) + 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
div {
|
||||||
|
|||||||
@ -10,4 +10,3 @@ export * from './functions';
|
|||||||
export * from './global-error-handler.service';
|
export * from './global-error-handler.service';
|
||||||
export * from './missing-translations-handler';
|
export * from './missing-translations-handler';
|
||||||
export * from './page-stamper';
|
export * from './page-stamper';
|
||||||
export * from './pruning-translation-loader';
|
|
||||||
|
|||||||
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user